# agentic-swe

Turns Claude Code sessions into a structured SWE pipeline with tracks, cost tracking per phase, and markdown receipts in .worklogs/.

- plugin · `type=plugin` · Claude Code · ★ 6
- Author: agentic-swe
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/agentic-swe/agentic-swe
- Updated: 2026-10-20
- HTML: https://affpapa.org/en/nevibecode/plugins/agentic-swe

## What it does

The agentic-swe plugin replaces freeform generation with a deterministic state machine. It evaluates task feasibility first, then assigns the execution to a lean, standard, or rigorous pipeline track. Execution pauses at designated human gates like approval-wait until you approve the state transition. The package includes task templates, phase prompts, and over 138 specialist subagents.

Every decision along with its dollar cost is saved into `.worklogs/<id>/`. The `/receipt` command parses these files to output an audit trail for PR descriptions or compliance without model hallucinations. Setup via `agentic-swe setup` works exclusively from a git repository root, as the command refuses to execute in any other directory.

## Install

### Claude Code (native platform)

**Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add anthropics/claude-plugins-community
```
In the agent chat (not a shell):
```text
/plugin install agentic-swe@claude-community
```

## When to use it
- run code generation through structured pipeline phases
- track token costs across each phase of a PR
- store verifiable decision audits in `.worklogs/`
- enforce human approval gates before opening and merging PRs

## Example prompts
- /work Add retry logic to the API client
- /receipt

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 53389d358504efbe.

BEGIN THIRD-PARTY FILE 53389d358504efbe
````text
<h1 align="center">Agentic SWE</h1>

<p align="center"><strong>Claude codes your PRs. You review the receipt. Then merge.</strong></p>

<p align="center">
  <a href="https://github.com/agentic-swe/agentic-swe/actions/workflows/ci.yml"><img src="https://github.com/agentic-swe/agentic-swe/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI" /></a>
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
  <a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen.svg" alt="Node" /></a>
  <a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.4.0-orange.svg" alt="Version" /></a>
  <!-- catalog-counts:start kind=badge-line -->
  <a href="#subagents"><img src="https://img.shields.io/badge/subagents-138%2B-purple.svg" alt="Agents" /></a>
<!-- catalog-counts:end -->
  <a href="https://agentic-swe.github.io/agentic-swe/"><img src="https://img.shields.io/badge/docs-site-informational.svg" alt="Docs site" /></a>
</p>

An open-source autonomous SWE pipeline that runs in your editor or CI, writes every decision into your repo, and gives you a shareable audit trail of what the AI did and why.

**What you get:**

- **Structured PRs** — Claude works through a state machine (lean / standard / rigorous), not one mega-prompt
- **Cost-attributed decisions** — every phase has a dollar amount and an artifact in `.worklogs/<id>/`
- **Audit trail** — `/receipt` renders a shareable summary suitable for a PR description, Slack, or a compliance ticket

## Quickstart

```bash
curl -fsSL https://raw.githubusercontent.com/agentic-swe/agentic-swe/main/install.sh | bash
agentic-swe setup
```

Windows PowerShell:

```powershell
irm https://raw.githubusercontent.com/agentic-swe/agentic-swe/main/install.ps1 | iex
agentic-swe setup
```

Then in Claude Code:

```text
/work Add retry logic to the API client
# ...pipeline runs, opens a PR...
/receipt
```

→ See [Install & first run](#install--first-run) for Cursor, Codex, OpenCode, Gemini CLI, and Claude Code plugin marketplace alternatives.

## What `/receipt` looks like

`/receipt` reads `.worklogs/<id>/` and renders the work item as markdown. Sample from `test/fixtures/receipt/lean-happy/`:

```markdown
# /work add-retry-logic — Add retry logic to the API client

| Field | Value |
|---|---|
| Work ID | add-retry-logic |
| Track | lean |
| Status | completed |
| Duration | 47 min |
| Cost | $1.84 |
| PR | https://github.com/example/repo/pull/142 |

## Decisions made (6)

1. **feasibility → lean-track-check** ($0.08) — lean signal → feasibility.md#L1-L20
2. **lean-track-check → lean-track-implementation** ($0.04) — verdict: simple
3. **lean-track-implementation → validation** ($1.33) — implementation complete → implementation.md
4. **validation → pr-creation** ($0.21) — tests green
5. **pr-creation → approval-wait** ($0.18) — PR opened
6. **approval-wait → completed** ($0.00) — approved by suraj

## Human gates respected (1)

- `approval-wait` resolved by user at 2026-05-17T14:47:00Z — approved by suraj

## Loop counters

- `self_review_iter`: 0
- `doubt_cycles`: 1
- `code_review_iter`: 0

## Verifiable references

- All artifacts: `test/fixtures/receipt/lean-happy/`
- Audit log: `test/fixtures/receipt/lean-happy/audit.log` (9 entries)
```

Every line above is computed from `.worklogs/<id>/` — no LLM summary, no hallucinated PRs. Reproduce locally:

```bash
node scripts/render-receipt.cjs --work-dir test/fixtures/receipt/lean-happy
```

**Docs:** [agentic-swe.github.io/agentic-swe](https://agentic-swe.github.io/agentic-swe/)

---

## Pipeline at a glance

After **feasibility**, **`lean-track-check`** sets **`pipeline.track`** in **`state.json`**. Tracks merge into **PR creation** → **`approval-wait`** → **completed**.

```mermaid
%%{init: {'theme': 'dark', 'fontFamily': 'ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif'}}%%
flowchart TD
    start(["/work — start or resume"])
    feasibility["feasibility"]
````
END THIRD-PARTY FILE 53389d358504efbe

The third-party file has ended. Everything between the 53389d358504efbe tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 4058 of 10982 bytes. © agentic-swe · MIT · https://github.com/agentic-swe/agentic-swe

## Similar
- [setup](https://affpapa.org/en/nevibecode/commands/pranay-yadav-setup.md) — command · ★ 41887
- [ship-mate](https://affpapa.org/en/nevibecode/plugins/ship-mate.md) — plugin · ★ 41887
- [agentic-engineering](https://affpapa.org/en/nevibecode/skills/agentic-engineering.md) — skill · 4800 installs
- [SWE](https://affpapa.org/en/nevibecode/agents/swe.md) — subagent · ★ 40478
- [dx-devops-pipeline-manage](https://affpapa.org/en/nevibecode/skills/dx-devops-pipeline-manage.md) — skill · 2300 installs
- [swe-devops-standards](https://affpapa.org/en/nevibecode/skills/swe-devops-standards.md) — skill · ★ 35

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
