CLI
TokRepo for Aider
Aider is a terminal pair-programmer. CONVENTIONS.md is read on every session start.
60 秒接入
Aider 最短路径
- 01
npx -y tokrepo@latest init-agent --target aider - 02Aider auto-loads CONVENTIONS.md from the repo root.
- 03For MCP-via-stdio bridge, use the Aider plugin or run tokrepo CLI from chat: /run tokrepo agent-check "<task>" --json
项目规则文件
CONVENTIONS.md安装位置
CONVENTIONS.mdMCP 客户端
CLI fallback (no native MCP yet)MCP 安装命令
/run npx -y tokrepo@latest session-init --json
六条强制规则
每个 agent runtime 都执行
- SESSION BOOTSTRAP — call
tokrepo_session_initonce per session. - DISCOVER BEFORE BUILD — call
tokrepo_discoverbefore writing reusable artifacts. - VERIFY BEFORE INSTALL — install_plan must include
trust_gate; honorTOKREPO_MIN_TRUST(default 0.6). - DRY-RUN BEFORE APPLY — lifecycle tools default
dry_run=true. - HANDOFF AFTER REUSABLE WORK — call
tokrepo_handoff_plan. - PRIVATE BY DEFAULT, NEVER PUSH SECRETS.