Gives Claude read-only access to your AgentLoopKit harness: task contracts, verification reports, handoff summaries, safety policies, and loop status. If you're running AgentLoopKit's acceptance layer for coding agents and want Claude to inspect what tasks are active, what verification evidence exists, or what the review-readiness score shows, this server surfaces that state without requiring manual file pastes. It reads from the `.agentloop/` directory structure that `agentloopkit init` creates. Useful when you want Claude to reason about task scope, gate compliance, or handoff artifacts while staying inside the same loop workflow your local CLI commands maintain. It's a companion to the NPX tool, not a replacement.
A drop-in engineering loop for coding agents.
An open-source Baseframe Labs developer tool.
Your coding agent can write code. AgentLoopKit helps you decide whether that code is reviewable, verifiable, and merge-ready.
It gives Codex, Claude Code, Cursor, OpenCode, Gemini CLI, GitHub Copilot CLI, and other coding agents a local acceptance layer: task contracts, safety rules, verification evidence, review-readiness scores, PR descriptions, and reviewer handoffs.
Vibe coding produces code. Agentic engineering produces auditable work.
The screenshots and terminal demo in this README are generated from committed sources in docs/assets/readme/ with Playwright and VHS.
AgentLoopKit is a repo-level toolkit for developers using Codex, Claude Code, Cursor, OpenCode, Gemini CLI, GitHub Copilot CLI, and other coding agents.
Keep your agent, IDE, and CLI. AgentLoopKit gives those tools a repeatable local workflow:
Run init inside an existing repository and AgentLoopKit creates:
.agentloop/ for tasks, reports, handoffs, gates, policies, templates, and agent instructionsAGENTS.md for agent-facing repo guidanceAGENTLOOP.md for the working loopagentloop.config.json for local command and path settingsGenerated AGENTS.md includes a specialist roster for product, CLI, template, verification, security, release, docs, compatibility, MCP, and repo-steward work. It helps future agent sessions split work without adding a background service.
Use it with npx from the repository you want to configure:
cd /path/to/your/repo
npx agentloopkit init --dry-run
npx agentloopkit init
init writes files into the current directory. --dry-run previews the same plan and writes nothing.
After setup, non-init commands search upward for the nearest agentloop.config.json and use that folder as the AgentLoop root. You can run agentloop status, agentloop verify, or agentloop handoff from a nested source folder and still write tasks, reports, and handoffs to the initialized repo root.
Do not run init from your home directory unless you intend to configure your home folder. If you want local agent guidance but do not want to commit the generated files, use local-only mode:
npx agentloopkit init --local-only
--local-only writes the harness, asks Git for this clone's metadata directory, then adds a marked block to that clone's info/exclude for .agentloop/, AGENTS.md, AGENTLOOP.md, and agentloop.config.json. It does not edit .gitignore, global Git config, shell profiles, or other project files.
Check the published package explicitly:
npx --yes agentloopkit@latest version
npx --yes agentloopkit@latest init
For repeatable CI or team setup, replace @latest with a vetted version.
Pinned team usage:
pnpm add -D agentloopkit
pnpm agentloop init
npx agentloopkit init
agentloop create-task --title "Fix login redirect bug" --type bugfix \
--acceptance "Password-reset login redirects to the requested page" \
--verification "npm test -- auth"
# Run Codex, Claude Code, Cursor, OpenCode, Gemini CLI, or another coding agent.
agentloop verify --task .agentloop/tasks/<task-file>.md --task-commands
agentloop ship --github-comment
agentloop prepare-pr
create-task sets the new contract as the active task. Use agentloop task set <path> only when you need to switch to another contract.
After verification and handoff, use agentloop task done to close the active task before starting unrelated work.
Use agentloop status or agentloop next when an agent needs the next local action without reading every file:
npx agentloopkit status
npx agentloopkit status --brief
npx agentloopkit next
The terminal demo is generated from committed VHS sources in this repository.
AgentLoopKit uses its own loop in this repo. Contributors can run the same local self-check:
npm run dogfood
That command checks task-folder hygiene, current loop status, review gates, artifact inventory, maintainer reviewability, agent review context, and ProjScan health. It does not publish packages, create tags, post comments, read tokens, read .env contents, or run verification commands.
Use the stricter gate before a release or final handoff:
npm run dogfood:strict
The package exposes two binaries:
agentloop init
agentloopkit init
| Command | Purpose |
|---|---|
agentloop init | Generate the repo harness and config |
agentloop doctor | Check setup health, commands, git state, and risk files |
agentloop create-task | Create a scoped task contract |
agentloop task ... | List, show, pin, update, archive, and inspect task state |
agentloop status | Show active task, latest report, latest run, dirty files, and next step |
agentloop next | Print only the next recommended loop action |
agentloop review-context | Show one read-only reviewability context snapshot |
agentloop verify | Run configured checks and write a verification report |
agentloop ship | Score review readiness, write a ship report, and optionally print a PR comment |
agentloop prepare-pr | Generate a PR title, grouped body, and optional GitHub comment |
agentloop summarize | Preview a deterministic reviewer summary |
agentloop handoff | Write a reviewer handoff summary |
agentloop check-gates | Check review evidence without running tests |
agentloop runs | List local ship, verify, and handoff run entries |
agentloop show-run <id> | Show one local run ledger entry |
agentloop intent <file> | Show which runs touched a file and why |
agentloop maintainer-check | Check whether an AI-assisted PR is reviewable |
agentloop artifacts | Inventory local task, report, handoff, and badge evidence |
agentloop report | Write a local static HTML evidence report |
agentloop badge | Write a local SVG evidence badge |
agentloop ci-summary | Summarize CI context and existing AgentLoop evidence |
agentloop release-notes | Draft local release notes from repo evidence |
agentloop release-check | Check local release readiness without publishing |
agentloop npm-status | Check npm registry status without publishing |
agentloop mcp-server | Start the read-only MCP stdio server |
agentloop policy ... | Read and compare local safety policies |
agentloop install-agent <name> | Add agent-specific instructions |
agentloop list-templates | List bundled templates |
agentloop completion <shell> | Print shell completion scripts |
agentloop version | Print the CLI version |
Clean up finished task contracts after verification and handoff:
agentloop task archive --status done --dry-run
agentloop task archive --status done
See docs/cli-reference.md for command examples, JSON modes, and safety notes.
Install instructions for the agent you use:
agentloop install-agent codex
agentloop install-agent claude-code
agentloop install-agent cursor
agentloop install-agent opencode
agentloop install-agent gemini-cli
agentloop install-agent github-copilot-cli
agentloop install-agent all
AgentLoopKit writes repo-local Markdown instructions. When exact third-party config conventions are uncertain, it keeps the output generic instead of pretending to own another tool's setup.
AgentLoopKit is intentionally boring:
.env contentsEnv files are reported by path only. Verification commands run only when you explicitly run agentloop verify.
agentloop ship reuses current verification evidence by default. Pass --run-verify when you want it to run verification as part of the readiness flow. Pass --github-comment when CI needs compact Markdown for a pull request comment. AgentLoopKit does not post the comment itself.
agentloop prepare-pr groups changed files by review area, including risk-sensitive paths, source, tests, AgentLoop evidence, docs, CI, config, and other files.
For narrower evidence history, agentloop verify --write-run and agentloop handoff --write-run can add their own local run records without changing the default command behavior.
agentloop status includes the newest local run ledger entry when .agentloop/runs/ exists, so agents can see the latest review-readiness or verification evidence without opening every report.
Run ledger output uses safe display paths: .agentloop/... for AgentLoopKit artifacts, repo-relative paths for repo files, and filenames for older outside absolute paths.
Use --redact-paths with status, check-gates, ship, or prepare-pr before pasting output into a public issue, PR, or CI log. That mode replaces the absolute Git root with [git-root].
agentloop review-context --json gives non-MCP agents one read-only local snapshot with status, gates, policies, artifacts, recent runs, latest ship evidence, and the next action.
See examples/ for sample generated harnesses and CI recipes:
See docs/stack-recipes.md for Next.js, React/Vite, Remix, SvelteKit, Node API, Django, FastAPI, Python, docs-only, empty-repo, and monorepo verification recipes.
AGENTS.md gives instructions. AgentLoopKit adds process artifacts: task contracts, gates, policies, verification reports, PR summaries, and rollback notes.
The result is easier to review because the work produces evidence, not only code.
Prompt collections help an agent respond better. AgentLoopKit gives the repository a standing workflow that compatible agents can read and follow.
Superpowers is a broader agent methodology and skills system. AgentLoopKit focuses on repo-level engineering loops, task contracts, verification evidence, and handoff artifacts.
They can be complementary. You can use AgentLoopKit alongside Superpowers. AgentLoopKit has no affiliation with Superpowers.
Contributor setup:
git clone https://github.com/abhiyoheswaran1/agentloopkit
cd agentloopkit
pnpm install
pnpm test
pnpm build
See CONTRIBUTING.md for local setup and PR expectations.
MIT.