agentproto runs Claude Code, Codex, Hermes, opencode, Mastra, and any other
coding agent in the background, shows them all in one place, and checks each
one's work — with your tests or a reviewer model — before anything is
committed. No more babysitting terminal windows.
agentproto/mcp-runtime — AIP-32 MCP provider specialisation. Sugar over @agentproto/driver for Model Context Protocol servers (stdio/SSE/HTTP transports). v0.1 ships frontmatter-driven dispatch; full MCP client wraps @modelcontextprotocol/sdk in v0.2.
2026-11-15
星标
—
工具
—
可用率
—
Run them all the same way. Start, message, watch, and stop any agent
with the same commands. Fifteen agents under one lifecycle today.
Work checked before it lands. Attach a check — your tests, or a stronger
model reviewing the change — and it runs each time the agent finishes.
Commits wait for the check and your OK, even after you close your laptop.
Keep the tools you have. It drives the agent CLIs you already use —
nothing to rewrite. Agents can even run and check other agents.
And a full toolbox around them. Author tools as files and serve them,
import any MCP server and hand it to any agent, open tunnels, drive
browsers, schedule workflows and cron runs.
The daemon is the flagship surface of something bigger: agentproto is an
open agentic framework — the AIP specs define
every agent component (tools, skills, agents, knowledge, workflows, policies)
as a plain file with a declared contract, and this repo is the TypeScript
runtime that loads, runs, and projects them into any host (CLI, HTTP, MCP,
Mastra, Vercel AI SDK). Files with contracts is what lets any runtime load
them — and lets agents read, write, and improve their own components.
Status: 1.10.0. APIs are stabilising; expect minor breaking changes
between releases.
Quick start
Or bootstrap from zero in one line:
# macOS / linux
curl -fsSL https://raw.githubusercontent.com/agentproto/ts/main/scripts/bootstrap/install.sh | bash
# Windows 10/11 (PowerShell 5.1+)
irm https://raw.githubusercontent.com/agentproto/ts/main/scripts/bootstrap/install.ps1 | iex
Manual path:
npm i -g @agentproto/cli
agentproto install claude-code # auto-installs the adapter package too
agentproto serve # start the daemon (foreground)
agentproto sessions start claude-code --cwd . --prompt "refactor the payments module"
agentproto sessions --watch
Then gate it: attach a policy to any session's turn-end and stage the commit
behind a human ack. See agentproto.sh for the full
pitch, or jump straight to agentproto.sh/features
for the honest split below.
What's live vs. roadmap
This repo ships two very different things under one name:
Tier 1 — live, verified hands-on: the daemon, the CLI, fifteen agent
adapters (Claude Code, Claude SDK, Codex, Gemini, Grok CLI, Hermes, jcode, opencode, Mastra Code +
in-process, Mastra Agent, OpenClaw, browser-as-agent, Antigravity, pi), durable policy gates,
nested orchestration with role gating, fan-in monitoring, workflows/cron,
and an MCP surface (~175 tools) on the daemon itself.
Tier 2 — the wider AIP spec family: ~52 numbered specs live in
agentproto/agentproto. Most
reference-implementation packages beyond Tier 1 are 0.1.0-alpha
scaffolding — real schemas, real intent, not yet operational software.
Full breakdown: https://agentproto.sh/features. If you find a Tier 2 claim
anywhere that reads as shipped, please file an issue — that split is the
contract.
Contributing an adapter
The adapter contract is small: declare models[] and modes[] via an
AIP-45 manifest, implement the lifecycle verbs, and reuse the shared
provider-kit primitives (creds, catalog entry, setup/status tools). Obvious
gaps: Cursor (agent CLI, ACP-capable — not verified end to end), aider,
goose, cline, Continue. See adapters/claude-code
for a complete reference implementation, and look for good first issue
labels in the tracker.
VS Code extension
packages/vscode contains the private agentproto-vscode extension: local
operational views for daemon sessions and permissions, plus commands to manage
agents from the editor. Every Releases
asset is built in CI, never committed to the repo:
Dev builds — every push to main touching packages/vscode publishes
a prerelease VSIX tagged vscode-dev-<sha>, for grabbing the bleeding
edge.
Official releases — a "Version Packages" PR merge that included
vscode changes publishes a versioned VSIX tagged vscode-v<version>,
same cadence as every other package's release.
Install either through VS Code's Extensions: Install from VSIX...
command.
To build one yourself instead:
cd packages/vscode
pnpm package
unzip -t agentproto-vscode-*.vsix
The repo is organised into five layers, each a sibling subtree under
packages/ or adapters/.
1 — Runtime & daemon
@agentproto/runtime is the long-running gateway that turns a workspace into
a live AIP runtime: session management, an MCP server, an HTTP transport, the
HEARTBEAT autonomy loop, and append-only conversation persistence.
Spawn, drive, interrupt, and stop long-lived agent-CLI sessions
message_parent
Child session reports a result, progress update, or blocker up to its parent supervisor (resolved from the child's recorded parentSessionId; no session id argument)
Curate imported skills (a SKILL.md folder is copied into ~/.agentproto/skills/<id>/) for per-session delivery
permissions_list / permissions_respond
Held permission requests across permission-hold sessions
cron_create / cron_list / cron_delete / cron_run
Recurring daemon jobs (opt-in)
role_list
Enumerate spawn-time roles and delegation privileges
daemon_health
Cheap in-process liveness probe
agentproto_session_story / agentproto_terminal
Per-session story / live PTY MCP App panels
agentproto_sessions / agentproto_bureau_sessions
MCP App panel views
2 — Adapter families
packages/provider-kit/ @agentproto/provider-kit Shared catalog, creds, setup-ledger, MCP tool primitives
packages/provider-presets/ @agentproto/provider-presets Shared gateway preset registry (Anthropic, Moonshot, OpenRouter, Requesty, DeepSeek, xAI, xAI-Anthropic, LLM Endpoint)
adapters/claude-code/ @agentproto/adapter-claude-code AIP-45 adapter for Claude Code
adapters/claude-sdk/ @agentproto/adapter-claude-sdk AIP-45 adapter for Claude SDK (Anthropic/Moonshot/OpenRouter gateway modes)
adapters/codex/ @agentproto/adapter-codex AIP-45 adapter for Codex
adapters/gemini/ @agentproto/adapter-gemini AIP-45 adapter for Gemini
adapters/hermes/ @agentproto/adapter-hermes AIP-45 adapter for Hermes
adapters/opencode/ @agentproto/adapter-opencode AIP-45 adapter for OpenCode
adapters/openclaw/ @agentproto/adapter-openclaw AIP-45 adapter for Openclaw
adapters/antigravity/ @agentproto/adapter-antigravity AIP-45 adapter for Google Antigravity
adapters/mastra-agent/ @agentproto/adapter-mastra-agent First-party agent — AIP-42 AGENT.md run as a live Mastra agent behind ACP
adapters/browser/ @agentproto/adapter-browser Browser / CDP session adapter
All agent-CLI adapters share the provider-kit primitives: makeSetupTool
(single-field or multi-field creds), computeStatus, AdapterCatalogEntry, and
makeCredsStore. mastra-agent is the odd one out: every other adapter wraps
an external agent CLI, whereas mastra-agent is ours end to end — an
AGENT.md run as a live Mastra agent (our loop, our models), spawned by the
daemon like any arm or standalone via agentproto-mastra acp.
3 — Tool authoring
The original three-layer model for tools consumed inside the runtime or
projected into a host framework: contract → implementation → bundle.
packages/tool/ @agentproto/tool AIP-14 defineTool, ToolHandle, validators
packages/driver/ @agentproto/driver AIP-30 implementTool, defineDriver, runTool, resolver
packages/driver/cli/ @agentproto/driver-cli AIP-29 CLI/subprocess transport
packages/driver/http/ @agentproto/driver-http HTTP transport
packages/driver/mcp/ @agentproto/driver-mcp MCP server transport
packages/driver/sdk/ @agentproto/driver-sdk SDK / dynamic-import transport
packages/corpus/ @agentproto/corpus AIP-10/12/18 knowledge composition (pure, no I/O)
packages/corpus-cli/ @agentproto/corpus-cli `corpus` binary — validate, lint, operate a corpus workspace
packages/workflow-runtime/ @agentproto/workflow-runtime AIP-15 typed step-walker (tool/map/branch/loop/transform)
packages/agent-runtime/ @agentproto/agent-runtime MultiAgentRuntime kernel with swappable ports
@agentproto/corpus composes AIP-10 KNOWLEDGE, AIP-12 PLAYBOOK, AIP-18
COLLECTION, AIP-9 OPERATOR, AIP-15 WORKFLOW, and AIP-41 ROUTINE into an
autonomous knowledge-improvement system. Pure: zero runtime, zero filesystem,
zero HTTP — all I/O via injected ports.
5 — Platform: auth, sandbox, secrets, telemetry
packages/auth/ @agentproto/auth Pluggable CredentialStore + device-code (RFC 8628) auth flow
packages/sandbox/ @agentproto/sandbox agent_start.sandbox: boot/reconnect/pause an isolated box
packages/secrets/ @agentproto/secrets Broker-resolved provision auth headers, mcp-header exposure
packages/processor/ @agentproto/processor Dependency-free Redactor port for transcript/log scrubbing
packages/telemetry/ @agentproto/telemetry Telemetry port + OTel adapter
packages/eval/ @agentproto/eval Scorers + runEval, including an LLM-judge scorer
Apache-2.0 — see LICENSE. Copyright 2026 Jeremy André and agentproto contributors.
Contributing
Spec evolution happens at
agentproto/agentproto. This repo
tracks AIP progression — implementations follow as AIPs reach Review/Final
status. PRs welcome for runtime bugfixes, perf, and adapter coverage — see
"Contributing an adapter" above.