agentic-swe
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 8 GitHub stars
Code Basarisiz
- spawnSync — Synchronous process spawning in .opencode/plugins/agentic-swe.js
- process.env — Environment variable access in .opencode/plugins/agentic-swe.js
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Open-source (MIT) governed pipeline for coding agents: a state machine with human approval gates and a reviewable receipt for each work item. Works with Claude Code, Cursor, Codex, and OpenCode.
Agentic SWE
AI engineering work with a record a person can review.
Agentic SWE is an open-source (MIT) pipeline for coding agents. It runs your agent through an explicit state machine, keeps the work item's state, history, and evidence in your repository under .worklogs/, and stops for a human before work counts as approved. It installs into the host you already use.
What you get:
- Structured work — your coding agent works through a state machine (lean / standard / rigorous) instead of one long prompt; the engine rejects transitions the active track does not allow and steps whose required artifacts are missing
- Human approval gate — leaving
approval-waitrequires a human approval record written byagentic-swe work approvefrom a terminal (a procedural control, not cryptographic identity) - Recorded work —
state.jsonhistory,audit.log, and per-phase artifacts live in.worklogs/<id>/; on Claude Code a Stop hook adds model cost from the session transcript tobudget.cost_used(other hosts:agentic-swe work record-cost) - Receipt —
/receipt(oragentic-swe receipt) renders those files as markdown for a PR description or review ticket; it is computed from the files, not written by a model
Quickstart
Install the CLI (requires Node.js 22.13 or later):
curl -fsSL https://raw.githubusercontent.com/agentic-swe/agentic-swe/main/install.sh | bash
Windows PowerShell:
irm https://raw.githubusercontent.com/agentic-swe/agentic-swe/main/install.ps1 | iex
From the root of the git repository you want to configure, run setup for your host, then check the result:
agentic-swe setup --host <host>
agentic-swe doctor
| Host | --host value |
Policy hook |
|---|---|---|
| Claude Code | claude-code |
yes — PreToolUse |
| Cursor | cursor |
yes — preToolUse |
| Codex | codex |
yes — PreToolUse; approve the repository hooks when Codex asks |
| OpenCode | opencode |
yes — tool.execute.before |
Omit --host to configure the installed hosts that setup detects. More hosts and their limits: Install & first run.
Then start a work item from your host's agent chat:
/work Add retry logic to the API client
# ...the pipeline moves through its phases and stops at approval-wait...
/receipt
Claude Code and Cursor load these as plugin commands. On other hosts, the policy that setup installs (CLAUDE.md, plus AGENTS.md for Codex) describes the same commands to the agent. The terminal equivalents are agentic-swe work and agentic-swe receipt.
What /receipt looks like
/receipt reads .worklogs/<id>/ and renders the work item as markdown. Sample from test/fixtures/receipt/lean-happy/:
# /work add-retry-logic — Add retry logic to the API client
| Field | Value |
|---|---|
| Work ID | add-retry-logic |
| Track | lean |
| Status | completed |
> LEGACY: not log-derived
| Integrity | no-journal |
| Trust | cooperative |
| Anchor | none |
| Duration | 47 min |
| Cost | $1.84 |
| PR | https://github.com/example/repo/pull/142 |
_cooperative evidence: the producing agent could rewrite this log._
## 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/`
Receipt lines are computed from .worklogs/<id>/ artifacts (including whatever the agent wrote to pr-link.txt); they are not an LLM summary. The durations and dollar figures are fixture values, not measurements. This fixture has no event journal, so the receipt labels it LEGACY and cooperative. Reproduce locally:
node scripts/render-receipt.cjs --work-dir test/fixtures/receipt/lean-happy
Docs: 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.
%%{init: {'theme': 'dark', 'fontFamily': 'ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif'}}%%
flowchart TD
start(["/work — start or resume"])
feasibility["feasibility"]
check{"lean-track-check<br/>sets pipeline.track"}
lean["Lean track<br/>lean-track-implementation<br/>validation · pr-creation"]
std["Standard track<br/>design → verification → test-strategy<br/>implementation → self-review<br/>validation · pr-creation"]
rig["Rigorous track<br/>design → design-review<br/>verification → test-strategy<br/>implementation → self-review<br/>code-review → permissions-check<br/>validation · pr-creation"]
gate{{"approval-wait<br/>human gate"}}
done(["completed"])
start --> feasibility --> check
check -->|lean| lean
check -->|standard| std
check -->|rigorous| rig
lean --> gate
std --> gate
rig --> gate
gate --> done
classDef accent fill:#1f6feb,stroke:#58a6ff,color:#ffffff,stroke-width:2px
classDef step fill:#21262d,stroke:#30363d,color:#e6edf3,stroke-width:1px
classDef branch fill:#21262d,stroke:#388bfd,color:#c9d1d9,stroke-width:2px
classDef decide fill:#21262d,stroke:#d29922,color:#ffdfb8,stroke-width:2px
classDef gateNode fill:#21262d,stroke:#a371f7,color:#e6edf3,stroke-width:2px
class start,done accent
class feasibility step
class check decide
class lean,std,rig branch
class gate gateNode
Canonical transitions: state-machine.json and the fenced graph in CLAUDE.md (checked in CI).
Install & first run
Beyond the Quickstart above, alternate paths:
Claude Code (plugin marketplace) — the same two commands agentic-swe setup --host claude-code runs
/plugin marketplace add agentic-swe/agentic-swe
/plugin install agentic-swe@agentic-swe-catalog
All setup hosts
| Host | How | Policy hook |
|---|---|---|
| Claude Code | agentic-swe setup --host claude-code or the plugin commands above |
yes — PreToolUse |
| Cursor | agentic-swe setup --host cursor |
yes — preToolUse |
| VS Code | agentic-swe setup --host vscode |
no — agent hooks are Preview only (verified 2026-11-05); Copilot Session Target uses copilot host |
| Codex | agentic-swe setup --host codex |
yes — plugin + repo .codex/hooks.json PreToolUse (plugin needs trust) |
| OpenCode | agentic-swe setup --host opencode |
yes — tool.execute.before |
| Antigravity | agentic-swe setup --host antigravity |
yes — PreToolUse |
| Windsurf | agentic-swe setup --host windsurf |
yes — pre_run_command / pre_write_code / pre_read_code / pre_mcp_tool_use |
| Kiro | agentic-swe setup --host kiro |
yes — PreToolUse |
| GitHub Copilot | agentic-swe setup --host copilot |
yes — preToolUse |
| Gemini CLI | gemini-extension.json · GEMINI.md |
no |
Where a host exposes a pre-tool hook, the policy hook checks the tool calls that host routes through it against Policy-as-Code. It is a cooperative control, not a sandbox (see SECURITY.md). agentic-swe host-parity --json reports policy_hook per host from config/host-adapters.json. VS Code agent hooks exist only as Preview in official docs (verified 2026-11-05) — policy_hook stays false for the vscode host; Copilot-in-VS-Code is covered by the copilot host. Gemini CLI has no verified pre-tool hook contract and relies on instructions only.
Run setup from the root of the git repository you want to configure. It refuses a subdirectory, and a directory outside git unless you pass --allow-non-git. It shows the target and the planned changes, and waits for confirmation. --yes skips the question. --dry-run only prints the plan. Run setup without --host to auto-detect installed hosts, or use --host all. Run agentic-swe doctor to verify an installation. Maintainers see docs/PUBLISHING.md.
npm registry (E7): the repo .npmrc pins registry=https://registry.npmjs.org/. If ~/.npmrc points at an internal mirror (e.g. unpm), set npm_config_registry=https://registry.npmjs.org/ for install/verify/test — see docs/PUBLISHING.md.
Codex requires approval of repository/plugin hooks. Windsurf hooks are disabled in Restricted Mode. Copilot hooks cover CLI and coding-agent environments; generic IDE chat transcript capture is not guaranteed. The VS Code extension performs automatic memory maintenance but cannot read another extension's private transcript. Cline, Roo, Continue, Junie/JetBrains, Zed, and similar hosts can use AGENTS.md plus the MCP fallback in integrations/fallback/README.md.
→ Full installation guide · Golden path
Commands
| Command | Role |
|---|---|
agentic-swe work |
Same engine from the terminal: init, status, transition, descent-try |
/work |
Start or resume a work item inside the editor |
/plan-only |
Feasibility / design without implementation |
/brainstorm |
Design-first exploration (optional UI server) |
/write-plan · /execute-plan |
Plan bar then execution |
/check budget · /check transition · /check artifacts |
Enforcement before phases / transitions |
/subagent |
Browse / invoke specialists |
/repo-scan · /test-runner · /lint |
Evidence helpers |
A new work item starts on the lean track. Set pipeline.acceptance_command in .worklogs/<id>/state.json to the project’s test command. Moving from validation to pull-request creation runs that command and refuses the step when it does not exit 0. The log is .worklogs/<id>/verify-result.json. Check the active item with agentic-swe work status.
Full list: Usage · commands/
Subagents
138+ specialists under agents/subagents/
Across 10 categories — Language Specialists (29), Infrastructure (16), Specialized Domains (15), Quality & Security (14), Data & AI (13), Developer Experience (13), Business & Product (11), Core Development (10), Meta & Orchestration (10), Research & Analysis (7).
Details: Subagent catalog · Catalog routing
Work state
.worklogs/<id>/ holds state.json (source of truth), progress.md (timeline), audit.log (append-only), and per-phase markdown (e.g. feasibility.md, implementation.md, validation-results.md, pr-link.txt).
- State over chat — resume from files, not from thread memory alone.
- Evidence — tie claims to commands, paths, or CI (
templates/evidence-standard.md). - CI parity —
scripts/work-engine.cjsenforces/check-style rules.
Architecture
A single Hypervisor session owns transitions, gates, and synthesis. Three core agents — developer, git-operations, pr-manager — carry bounded work. A design panel (architect, security, adversarial) reviews the design on the rigorous track, as background agents where the host supports them. Specialists come from the 138+ subagents catalog, auto-selected from repo signals.
→ Architecture overview (full diagram)
Extending · CI · License
| Topic | Where |
|---|---|
| Extend pipeline | /author-pipeline · references/authoring-pipeline-capabilities.md |
| Contributing | CONTRIBUTING.md · skill packages: docs/skill-contribution.md (DCO 1.1; governed publish after human merge) · DCO.md |
| Security | SECURITY.md — supported versions, private reporting, and documented limits (cooperative policy hook, process-level sandbox) |
| Competitive note | docs/competitive-vs-ruflo.md — win on PR receipt + replay, not swarm/marketplace parity |
| Compliance map | docs/compliance-mapping.md — ASI / NIST AI RMF / EU AI Act coverage (pack-boundary, not a certification) |
| Architecture decisions | docs/adr/ — accepted ADRs (status, date, decider) |
| CI | .github/workflows/ci.yml — npm run ci locally |
| Research basis | Hypervisor deferred policy — Research basis |
| License | MIT · Licensing |
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi