Dev.to AI πŸ€– Ai πŸ‘ 2 πŸ“– 9 min read

Agentic workflows for your team: Linear, GitHub issues, CI and code review, step by step

Most teams that try coding agents start the same way. One person opens Claude Code or Codex in a terminal, asks for a fix, reviews the diff and pushes. It works, but it stays one person's habit. Nothing happens unless so

Agentic workflows for your team: Linear, GitHub issues, CI and code review, step by step

Most teams that try coding agents start the same way. One person opens Claude Code or Codex in a terminal, asks for a fix, reviews the diff and pushes. It works, but it stays one person's habit. Nothing happens unless someone is sitting at that terminal.

An agentic workflow turns that habit into team infrastructure. Events your team already produces (a labelled issue, a new Linear ticket, a red CI run, a review request) start agents on their own. The rules for what each agent may do live in a file in the repo, reviewed like any other code.

This is a hands-on tutorial. We'll build six workflows that teams actually ask for, using wisp, an open-source tool that runs Claude Code, Codex, opencode, Cursor and other coding agents from one place. Every YAML snippet below comes from one file that passes wisp validate. You can copy the whole thing at the end.

Events like issues, Linear tickets, CI failures and review requests flow into one YAML file, which starts agents that open PRs, comment, fix and review

What we're building

# When this happens An agent does this
1 A GitHub issue gets the agent label Builds it in its own worktree and opens a PR
2 A new Linear issue is created Triages it read-only: finds the code, sizes it, lists open questions
3 CI fails on that PR The same agent follows up and pushes a fix
4 You're asked to review a small PR A second agent, on a different model, reviews it first
5 Every weekday at 9 Labels yesterday's issues and flags urgent ones
6 You cut a release A graph of tasks: tests, fix if red, two audits, release notes

Then we'll move it off laptops onto a shared hub, so nothing depends on one machine being awake.

Setup (2 minutes)

npm install -g wisp-agents   # Node 18+
cd your-repo
wisp                         # opens the app; or keep using the CLI

wisp drives the agent CLIs you already have signed in (claude, codex, opencode, …). It doesn't add its own model or API key.

Everything for the team goes into .wisp/team.wisp.yml, committed to the repo. Start with who does the work:

wisp: 1

agents:
  builder:  { harness: claude, model: opus, mode: auto }
  reviewer: { harness: codex, effort: high, mode: plan }
  triager:  { harness: opencode, mode: plan }

crew:
  bob:
    role: builder
    agent: builder
    brief: "Turn labelled issues into small PRs with tests. Never merge."
  ada:
    role: reviewer
    agent: reviewer
    brief: "Review every PR the crew opens. Request changes, never merge."

An agent is a harness plus model plus mode. plan means read-only: it can look at the code and answer, but not edit. A crew member is a named agent with a standing brief. Giving the reviewer a different model than the builder is deliberate. A second model catches things the first one is blind to.

1. GitHub issue β†’ pull request

The most requested workflow. Someone files an issue, a human decides it's agent-sized by adding a label, and a PR shows up.

triggers:
  issue-to-pr:
    on: issue.labeled
    label: agent
    match: { assignees: me, trusted: true }
    crew: bob
    prompt: "Build {event.summary}. Open a PR that closes the issue."
    rate: 10/d
    budget: { perRun: 5, perDay: 40 }

Three lines in there matter more than they look:

  • assignees: me. Every teammate's wisp reads the same file. Without this, one labelled issue would start an agent on every laptop at once. With it, each wisp only takes issues assigned to the person signed in to gh on that machine.
  • trusted: true. The issue text becomes the agent's prompt. On a public repo, anyone can write that text. This only accepts issues from people who can push to the repo.
  • rate and budget. A trigger is a loop you no longer watch, so give it limits: at most 10 runs a day, $5 per run, $40 a day.

bob works in its own git worktree, so your checkout is never touched. When it finishes, the task shows the summary, the diff and the test run, with Ship to open the PR:

A finished wisp task: summary, steps, the diff and a green test run, with Ship and Done buttons

2. Linear ticket β†’ triage

Not every ticket should become code right away. Often the most useful thing is a fast first look: where in the code does this live, how big is it, and what's unclear?

settings:
  automations.webhookTriggers: true

triggers:
  linear-triage:
    on: webhook
    header: Linear-Signature
    secret: "${secret:LINEAR_WEBHOOK_SECRET}"
    match: { type: Issue, action: create }
    agent: triager
    prompt: "Triage this Linear issue: {event.summary}. Find the code it is about, guess the size, list open questions."

In Linear, go to Settings β†’ API β†’ Webhooks and paste this trigger's URL. Store the signing secret with wisp secret set LINEAR_WEBHOOK_SECRET. The YAML only names the secret, so its value never ends up in git.

The triager runs in plan mode, so it can't change anything. That makes it safe to point at every new ticket.

Prefer to start by hand? In the app, New task β†’ + β†’ Start from an issue… lists your Linear, Jira and GitHub issues. From the CLI: wisp "fix https://linear.app/acme/issue/ENG-42".

3. Red CI β†’ the same agent fixes it

This is where agent PRs usually stall. CI goes red, and someone has to read the log, rebuild context and push a fix.

  fix-red-ci:
    on: ci.failed
    followUp: true
    cooldown: 30m

followUp: true doesn't start a fresh agent. It sends a follow-up to the task that opened the PR, so bob keeps its conversation and its worktree and only has to read the failure. cooldown: 30m stops a flaky test from turning this into an infinite loop.

Issue labelled, bob builds, PR opened, CI fails, bob follows up and pushes a fix, ada reviews, you merge

4. Review requested β†’ a second agent goes first

Agents are good first reviewers when the PR is small and focused. Keep this one tight:

  small-reviews:
    on: pr.review_requested
    match:
      reviewer: me
      draft: false
      fork: false
      size: "<=400"
      paths: [src/**, "!**/*.md"]
    crew: ada
    prompt: "Review PR #{event.payload.number}: {event.payload.title}"

It runs only when you are asked to review, on non-draft PRs from the repo itself (no forks), under 400 changed lines, touching src/ and not just docs. ada reviews in plan mode, and her brief says she never merges. When you open the PR, the obvious problems have already been pointed out.

5. A weekday morning sweep

  morning-triage:
    on: schedule
    cron: "every weekday at 9"
    tz: Europe/Zurich
    mode: plan
    prompt: "Look at the issues opened since yesterday, label them, and flag anything that looks urgent."

Schedules take plain English or standard cron. Add when: { days: [mon, tue, wed, thu, fri], hours: "9-18" } to any trigger to keep it inside working hours.

6. A release as a workflow

Triggers react to one event. Some jobs are a graph: run the tests, fix only if they fail, have two different models audit the diff in parallel, then write release notes from both audits.

workflows:
  release-check:
    inputs:
      version: null
    concurrency: 2
    budget: { usd: 20 }
    tasks:
      tests:
        agent: builder
        prompt: "Run the test suite for ${{ inputs.version }} and report any failures."
      fix:
        needs: [tests]
        if: "${{ tasks.tests.output.failed > 0 }}"
        agent: builder
        retries: 1
        timeout: 15
        prompt: "Fix these failures: ${{ tasks.tests.output.failures }}"
      audit:
        needs: [tests]
        matrix: { agent: [claude, codex] }
        mode: plan
        prompt: "Audit the diff for ${{ inputs.version }}: security, breaking changes, missing tests."
      notes:
        needs: [fix, audit]
        agent: reviewer
        optional: true
        prompt: "Write release notes for ${{ inputs.version }} from: ${{ tasks.audit.output }}"

release-check: tests, then fix only if failures, and a matrix of two audits on claude and codex, then notes

Run it with wisp run release-check version=2.1.0. Each step is a normal task you can open, read and follow up. A step whose if is false is marked skipped, and the steps after it carry on. wisp validate rejects cycles and any step that reads the output of a step it doesn't depend on, before anything runs.

When one task needs a quality bar: factories

A workflow moves forward. Sometimes you want a single change to loop until it's good: a spec you approve, a build, real checks, a review, and back to build if anything fails.

factories:
  careful:
    stations:
      spec:   { agent: builder, approve: human }
      build:  { agents: [claude, codex] }
      checks: { run: [npm test, npm run lint], timeout: 15 }
      review: { agents: [reviewer], vote: all }
      ship:   { pr: true, merge: human }
    loop: { back_to: build, max: 3, then: ask }
    budget: { usd: 20 }

factory: spec, build, checks, review, ship; failed checks or review loop back to build at most 3 times

approve: human and merge: human keep the two decisions that matter with a person. Everything in between runs by itself.

Check it before it runs

Because it's a file, you can review it like code. wisp validate checks the schema and the graph. wisp plan shows what applying it would change, and warns about everything that will start on its own:

wisp validate reports 13 resources; wisp plan lists 13 additions and warns which triggers start agents by themselves

That output is from the real file in this post. Then wisp apply turns it on. Put the same check in CI so every change to the team's agents gets reviewed in a PR:

# .github/workflows/wisp.yml
on: pull_request
jobs:
  plan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: WispAgents/wisp/action@main
        with:
          check: plan   # posts validate + plan as a PR comment

The same action can also run an agent inside a CI job (prompt: Fix the failing test). It posts the report on the PR and fails the job if the agent didn't finish cleanly.

Moving it off laptops

On laptops, match: { assignees: me } splits the work so each teammate's wisp picks up their own issues. That's a fine start. But a closed laptop doesn't triage anything.

The next step is a team hub: the same YAML deployed to a wisp grid (wisp Cloud, or your own server). The hub has a public URL, so Linear and GitHub webhooks reach it directly. Secrets live on the grid, and a GitHub Action plans every PR to the hub's folder and deploys on merge.

Each teammate's wisp takes their own issues; a team hub on a grid runs the shared crew, deploys from GitHub Actions and keeps secrets

wisp grid init acme ops/hub   # writes the folder and the CI workflow
cd ops/hub && wisp grid plan
wisp grid deploy --yes

The team hubs guide walks through it, and includes a prompt you can paste into your own coding agent so it does the setup for you.

Guardrails worth copying, whatever tool you use

  1. A human picks the work, a human merges. Labels and assignments decide what agents take on. merge: human decides what ships.
  2. Read-only by default. Triage, review and audits run in plan mode. Only the builder edits code.
  3. Filter who can prompt your agents. Issue text is a prompt. Use trusted: true and fork: false on anything public.
  4. Budget every loop. rate, budget, cooldown and max rounds. A trigger nobody is watching needs a ceiling.
  5. Follow up, don't restart. Sending CI failures back to the task that wrote the code saves the most time.
  6. Config in git. The team's agents get reviewed, diffed and rolled back like everything else.

The whole file

wisp: 1

settings:
  automations.webhookTriggers: true

agents:
  builder:  { harness: claude, model: opus, mode: auto }
  reviewer: { harness: codex, effort: high, mode: plan }
  triager:  { harness: opencode, mode: plan }

crew:
  bob:
    role: builder
    agent: builder
    brief: "Turn labelled issues into small PRs with tests. Never merge."
  ada:
    role: reviewer
    agent: reviewer
    brief: "Review every PR the crew opens. Request changes, never merge."

triggers:
  issue-to-pr:
    on: issue.labeled
    label: agent
    match: { assignees: me, trusted: true }
    crew: bob
    prompt: "Build {event.summary}. Open a PR that closes the issue."
    rate: 10/d
    budget: { perRun: 5, perDay: 40 }

  linear-triage:
    on: webhook
    header: Linear-Signature
    secret: "${secret:LINEAR_WEBHOOK_SECRET}"
    match: { type: Issue, action: create }
    agent: triager
    prompt: "Triage this Linear issue: {event.summary}. Find the code it is about, guess the size, list open questions."

  fix-red-ci:
    on: ci.failed
    followUp: true
    cooldown: 30m

  small-reviews:
    on: pr.review_requested
    match: { reviewer: me, draft: false, fork: false, size: "<=400", paths: [src/**, "!**/*.md"] }
    crew: ada
    prompt: "Review PR #{event.payload.number}: {event.payload.title}"

  morning-triage:
    on: schedule
    cron: "every weekday at 9"
    tz: Europe/Zurich
    mode: plan
    prompt: "Look at the issues opened since yesterday, label them, and flag anything that looks urgent."

workflows:
  release-check:
    inputs: { version: null }
    concurrency: 2
    budget: { usd: 20 }
    tasks:
      tests:
        agent: builder
        prompt: "Run the test suite for ${{ inputs.version }} and report any failures."
      fix:
        needs: [tests]
        if: "${{ tasks.tests.output.failed > 0 }}"
        agent: builder
        retries: 1
        timeout: 15
        prompt: "Fix these failures: ${{ tasks.tests.output.failures }}"
      audit:
        needs: [tests]
        matrix: { agent: [claude, codex] }
        mode: plan
        prompt: "Audit the diff for ${{ inputs.version }}: security, breaking changes, missing tests."
      notes:
        needs: [fix, audit]
        agent: reviewer
        optional: true
        prompt: "Write release notes for ${{ inputs.version }} from: ${{ tasks.audit.output }}"

factories:
  careful:
    stations:
      spec:   { agent: builder, approve: human }
      build:  { agents: [claude, codex] }
      checks: { run: [npm test, npm run lint], timeout: 15 }
      review: { agents: [reviewer], vote: all }
      ship:   { pr: true, merge: human }
    loop: { back_to: build, max: 3, then: ask }
    budget: { usd: 20 }

Drop it in .wisp/team.wisp.yml, run wisp validate and wisp plan, then start with just one trigger. Issue β†’ PR is a good first one. Add the rest once your team trusts it.

wisp is open source: github.com/WispAgents/wisp. Docs: triggers, workflows, factories, Slack and Linear.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.