mia-code 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.miette/260321.md +1 -0
- package/.miette/260323.md +9 -0
- package/.miette/260331.md +2 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/2604020008--d3417f2c-df12-4f0f-8a1b-d88e7968f822/d3417f2c-df12-4f0f-8a1b-d88e7968f822.md +63 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/2604020008--e6c3fc5d-4a70-4523-ba7d-a3250da4c235/e6c3fc5d-4a70-4523-ba7d-a3250da4c235.md +72 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/2604020008--efeb00a2-b17a-4d32-b1f0-b90c37a8d24e/efeb00a2-b17a-4d32-b1f0-b90c37a8d24e.md +62 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/83a2d7f9-24a5-4cf4-98d5-036c82f872e8.json +302 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/83a2d7f9-24a5-4cf4-98d5-036c82f872e8.md +149 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/AGENTS.md +31 -0
- package/.pde/2604011511--83a2d7f9-24a5-4cf4-98d5-036c82f872e8/meta-decomposition-3-children.md +67 -0
- package/.pde/2604040129--61f9dd4d-7aa6-45e6-a58b-e480b1aa6737/61f9dd4d-7aa6-45e6-a58b-e480b1aa6737--from-mia-openclaw-workspace.md +125 -0
- package/.pde/2604040129--61f9dd4d-7aa6-45e6-a58b-e480b1aa6737/STATUS.md +1 -0
- package/.pde/4f02ba94-9f52-422e-9389-b16f9b37f358.json +177 -0
- package/.pde/4f02ba94-9f52-422e-9389-b16f9b37f358.md +77 -0
- package/.pde/6ad9244d-5340-490f-b76c-c86728b9de52.json +222 -0
- package/.pde/6ad9244d-5340-490f-b76c-c86728b9de52.md +99 -0
- package/.pde/8b566792-ed15-4606-96f9-2b6f593d7e6b.json +111 -0
- package/.pde/8b566792-ed15-4606-96f9-2b6f593d7e6b.md +67 -0
- package/.pde/c7f1e74b-05a5-40e2-9f01-4cc48d2528f7.json +349 -0
- package/.pde/c7f1e74b-05a5-40e2-9f01-4cc48d2528f7.md +147 -0
- package/.pde/dfc00a78-1da0-4c09-8a16-c6982644051b.json +118 -0
- package/.pde/dfc00a78-1da0-4c09-8a16-c6982644051b.md +64 -0
- package/GUILLAUME.md +8 -0
- package/KINSHIP.md +9 -0
- package/MIA_CODE_ARCHITECTURE_REPORT.md +718 -0
- package/contextual_research/260119-MIA-CODE--98090899-8aff-4e11-9dc3-8b99466d1.md +1101 -0
- package/contextual_research/MIA.md +38 -0
- package/contextual_research/MIAWAPASCONE.md +59 -0
- package/contextual_research/MIETTE.md +38 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/2504.00218v2.pdf +7483 -12
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/2505.00212v3.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/CONTENT.md +1014 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/DESIGN.gemini.md +242 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/INDEX.md +45 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/2504.00218v2.md +2025 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/2504.00218v2.pdf +7483 -12
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/2505.00212v3.md +1755 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/2505.00212v3.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_12_decomposed_prompting.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_19_hugginggpt_planning.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_1_coordination_challenges.md +766 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_1_coordination_challenges.pdf +3431 -4
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_28_guardrails_multi_agent.md +260 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_28_guardrails_multi_agent.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_2_navigating_complexity.md +558 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_2_navigating_complexity.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_34_hierarchical_multi_agent.pdf +0 -0
- package/contextual_research/PDE-generalization--caefee82-efb1-4dbb-8733-691b01581464--260130/sources/footnote_1_5_open_intent_extraction.pdf +0 -0
- package/contextual_research/PODCAST.md +109 -0
- package/contextual_research/langchain-principles-roadmap.md +157 -0
- package/contextual_research/persona-to-narrative-character-inquiry_260201.md +50 -0
- package/dist/cli.js +35 -11
- package/dist/geminiHeadless.js +8 -2
- package/dist/index.js +2 -1
- package/dist/mcp/miaco-server.js +10 -1
- package/dist/mcp/miatel-server.js +10 -1
- package/dist/mcp/miawa-server.js +10 -1
- package/dist/mcp/utils.d.ts +6 -1
- package/dist/mcp/utils.js +24 -3
- package/dist/sessionStore.d.ts +8 -2
- package/dist/sessionStore.js +39 -3
- package/dist/types.d.ts +1 -0
- package/miaco/README.md +124 -0
- package/miaco/dist/commands/chart.d.ts +6 -0
- package/miaco/dist/commands/chart.d.ts.map +1 -0
- package/miaco/dist/commands/chart.js +222 -0
- package/miaco/dist/commands/chart.js.map +1 -0
- package/miaco/dist/commands/decompose.d.ts +6 -0
- package/miaco/dist/commands/decompose.d.ts.map +1 -0
- package/miaco/dist/commands/decompose.js +98 -0
- package/miaco/dist/commands/decompose.js.map +1 -0
- package/miaco/dist/commands/schema.d.ts +6 -0
- package/miaco/dist/commands/schema.d.ts.map +1 -0
- package/miaco/dist/commands/schema.js +66 -0
- package/miaco/dist/commands/schema.js.map +1 -0
- package/miaco/dist/commands/stc.d.ts +11 -0
- package/miaco/dist/commands/stc.d.ts.map +1 -0
- package/miaco/dist/commands/stc.js +590 -0
- package/miaco/dist/commands/stc.js.map +1 -0
- package/miaco/dist/commands/trace.d.ts +6 -0
- package/miaco/dist/commands/trace.d.ts.map +1 -0
- package/miaco/dist/commands/trace.js +83 -0
- package/miaco/dist/commands/trace.js.map +1 -0
- package/miaco/dist/commands/validate.d.ts +6 -0
- package/miaco/dist/commands/validate.d.ts.map +1 -0
- package/miaco/dist/commands/validate.js +58 -0
- package/miaco/dist/commands/validate.js.map +1 -0
- package/miaco/dist/decompose.d.ts +93 -0
- package/miaco/dist/decompose.d.ts.map +1 -0
- package/miaco/dist/decompose.js +562 -0
- package/miaco/dist/decompose.js.map +1 -0
- package/miaco/dist/index.d.ts +18 -0
- package/miaco/dist/index.d.ts.map +1 -0
- package/miaco/dist/index.js +83 -0
- package/miaco/dist/index.js.map +1 -0
- package/miaco/dist/storage.d.ts +60 -0
- package/miaco/dist/storage.d.ts.map +1 -0
- package/miaco/dist/storage.js +100 -0
- package/miaco/dist/storage.js.map +1 -0
- package/miaco/package-lock.json +4103 -0
- package/miaco/package.json +40 -0
- package/miaco/tsconfig.json +18 -0
- package/miaco/version-patch-commit-and-publish.sh +1 -0
- package/miatel/MISSION_251231.md +3 -0
- package/miatel/README.md +107 -0
- package/miatel/dist/commands/analyze.d.ts +6 -0
- package/miatel/dist/commands/analyze.d.ts.map +1 -0
- package/miatel/dist/commands/analyze.js +100 -0
- package/miatel/dist/commands/analyze.js.map +1 -0
- package/miatel/dist/commands/arc.d.ts +6 -0
- package/miatel/dist/commands/arc.d.ts.map +1 -0
- package/miatel/dist/commands/arc.js +71 -0
- package/miatel/dist/commands/arc.js.map +1 -0
- package/miatel/dist/commands/beat.d.ts +6 -0
- package/miatel/dist/commands/beat.d.ts.map +1 -0
- package/miatel/dist/commands/beat.js +165 -0
- package/miatel/dist/commands/beat.js.map +1 -0
- package/miatel/dist/commands/theme.d.ts +6 -0
- package/miatel/dist/commands/theme.d.ts.map +1 -0
- package/miatel/dist/commands/theme.js +54 -0
- package/miatel/dist/commands/theme.js.map +1 -0
- package/miatel/dist/index.d.ts +18 -0
- package/miatel/dist/index.d.ts.map +1 -0
- package/miatel/dist/index.js +80 -0
- package/miatel/dist/index.js.map +1 -0
- package/miatel/dist/storage.d.ts +55 -0
- package/miatel/dist/storage.d.ts.map +1 -0
- package/miatel/dist/storage.js +100 -0
- package/miatel/dist/storage.js.map +1 -0
- package/miatel/package-lock.json +4103 -0
- package/miatel/package.json +35 -0
- package/miatel/src/commands/analyze.ts +109 -0
- package/miatel/src/commands/arc.ts +78 -0
- package/miatel/src/commands/beat.ts +176 -0
- package/miatel/src/commands/theme.ts +60 -0
- package/miatel/src/index.ts +94 -0
- package/miatel/src/storage.ts +156 -0
- package/miatel/tsconfig.json +18 -0
- package/miawa/MISSION_251231.md +144 -0
- package/miawa/README.md +133 -0
- package/miawa/dist/commands/beat.d.ts +6 -0
- package/miawa/dist/commands/beat.d.ts.map +1 -0
- package/miawa/dist/commands/beat.js +69 -0
- package/miawa/dist/commands/beat.js.map +1 -0
- package/miawa/dist/commands/ceremony.d.ts +6 -0
- package/miawa/dist/commands/ceremony.d.ts.map +1 -0
- package/miawa/dist/commands/ceremony.js +239 -0
- package/miawa/dist/commands/ceremony.js.map +1 -0
- package/miawa/dist/commands/circle.d.ts +6 -0
- package/miawa/dist/commands/circle.d.ts.map +1 -0
- package/miawa/dist/commands/circle.js +75 -0
- package/miawa/dist/commands/circle.js.map +1 -0
- package/miawa/dist/commands/eva.d.ts +6 -0
- package/miawa/dist/commands/eva.d.ts.map +1 -0
- package/miawa/dist/commands/eva.js +73 -0
- package/miawa/dist/commands/eva.js.map +1 -0
- package/miawa/dist/commands/wound.d.ts +6 -0
- package/miawa/dist/commands/wound.d.ts.map +1 -0
- package/miawa/dist/commands/wound.js +74 -0
- package/miawa/dist/commands/wound.js.map +1 -0
- package/miawa/dist/index.d.ts +19 -0
- package/miawa/dist/index.d.ts.map +1 -0
- package/miawa/dist/index.js +91 -0
- package/miawa/dist/index.js.map +1 -0
- package/miawa/dist/storage.d.ts +73 -0
- package/miawa/dist/storage.d.ts.map +1 -0
- package/miawa/dist/storage.js +100 -0
- package/miawa/dist/storage.js.map +1 -0
- package/miawa/package-lock.json +4103 -0
- package/miawa/package.json +36 -0
- package/miawa/src/commands/beat.ts +74 -0
- package/miawa/src/commands/ceremony.ts +256 -0
- package/miawa/src/commands/circle.ts +83 -0
- package/miawa/src/commands/eva.ts +84 -0
- package/miawa/src/commands/wound.ts +79 -0
- package/miawa/src/index.ts +108 -0
- package/miawa/src/storage.ts +179 -0
- package/miawa/tsconfig.json +18 -0
- package/package.json +7 -5
- package/references/acp/CLAUDE.md +7 -0
- package/references/acp/agent-plan.md +84 -0
- package/references/acp/clients.md +31 -0
- package/references/acp/extensibility.md +137 -0
- package/references/acp/initialization.md +225 -0
- package/references/acp/prompt-turn.md +321 -0
- package/references/acp/proxy-chains.md +562 -0
- package/references/acp/schema.md +3171 -0
- package/references/acp/session-list.md +334 -0
- package/references/acp/session-modes.md +170 -0
- package/references/acp/slash-commands.md +99 -0
- package/references/acp/terminals.md +281 -0
- package/references/acp/tool-calls.md +311 -0
- package/references/acp/typescript.md +29 -0
- package/references/claude/agent-teams.md +399 -0
- package/references/claude/chrome.md +231 -0
- package/references/claude/headless.md +158 -0
- package/references/claude/hooks-guide.md +708 -0
- package/references/claude/output-styles.md +112 -0
- package/references/claude/plugins.md +432 -0
- package/references/claude/skills.md +693 -0
- package/references/claude/sub-agents.md +816 -0
- package/references/copilot/acp/agents.md +32 -0
- package/references/copilot/acp/architecture.md +37 -0
- package/references/copilot/acp/clients.md +31 -0
- package/references/copilot/acp/introduction.md +42 -0
- package/references/copilot/acp/registry.md +339 -0
- package/references/copilot/acp-server.md +117 -0
- package/references/copilot/create-copilot-instructions.md +840 -0
- package/references/langchain/llms.txt +833 -0
- package/references/langchain/python/agents.md +677 -0
- package/references/langchain/python/context-engineering.md +1195 -0
- package/references/langchain/python/human-in-the-loop.md +326 -0
- package/references/langchain/python/long-term-memory.md +168 -0
- package/references/langchain/python/mcp.md +949 -0
- package/references/langchain/python/multi-agents/custom-workflow.md +187 -0
- package/references/langchain/python/multi-agents/handoffs.md +436 -0
- package/references/langchain/python/multi-agents/overview.md +295 -0
- package/references/langchain/python/multi-agents/router.md +150 -0
- package/references/langchain/python/multi-agents/skills.md +92 -0
- package/references/langchain/python/multi-agents/subagents.md +486 -0
- package/references/langchain/python/retrieval.md +320 -0
- package/references/langchain/python/runtime.md +141 -0
- package/references/langchain/python/short-term-memory.md +658 -0
- package/references/langchain/python/structured-output.md +712 -0
- package/references/langfuse/llms.txt +148 -0
- package/references/langgraph/javascript/llms.txt +275 -0
- package/references/skills/home.md +259 -0
- package/references/skills/integrate-skills.md +103 -0
- package/references/skills/specification.md +254 -0
- package/references/skills/what-are-skills.md +74 -0
- package/rispecs/README.md +164 -0
- package/rispecs/_sync_/miadi-code/SPEC.md +313 -0
- package/rispecs/_sync_/miadi-code/STATUS.md +177 -0
- package/rispecs/_sync_/miadi-code/dashboard/SPEC.md +465 -0
- package/rispecs/_sync_/miadi-code/dashboard/STATUS.md +212 -0
- package/rispecs/_sync_/miadi-code/multiline-input/SPEC.md +232 -0
- package/rispecs/_sync_/miadi-code/multiline-input/STATUS.md +108 -0
- package/rispecs/_sync_/miadi-code/pde/SPEC.md +253 -0
- package/rispecs/_sync_/miadi-code/pde/STATUS.md +56 -0
- package/rispecs/_sync_/miadi-code/stc/SPEC.md +397 -0
- package/rispecs/_sync_/miadi-code/stc/STATUS.md +70 -0
- package/rispecs/ava-langstack/inquiry-routing-upgrade.spec.md +119 -0
- package/rispecs/borrowed_from_opencode/001-client-server-architecture.rispec.md +98 -0
- package/rispecs/borrowed_from_opencode/002-event-bus-system.rispec.md +125 -0
- package/rispecs/borrowed_from_opencode/003-instance-state-pattern.rispec.md +136 -0
- package/rispecs/borrowed_from_opencode/004-namespace-module-pattern.rispec.md +151 -0
- package/rispecs/borrowed_from_opencode/005-zod-schema-validation.rispec.md +139 -0
- package/rispecs/borrowed_from_opencode/006-named-error-system.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/007-structured-logging.rispec.md +138 -0
- package/rispecs/borrowed_from_opencode/008-lazy-initialization.rispec.md +127 -0
- package/rispecs/borrowed_from_opencode/009-multi-agent-system.rispec.md +97 -0
- package/rispecs/borrowed_from_opencode/010-agent-definition-config.rispec.md +135 -0
- package/rispecs/borrowed_from_opencode/011-agent-permission-rulesets.rispec.md +151 -0
- package/rispecs/borrowed_from_opencode/012-agent-prompt-templates.rispec.md +141 -0
- package/rispecs/borrowed_from_opencode/013-agent-generation.rispec.md +142 -0
- package/rispecs/borrowed_from_opencode/014-plan-build-mode-toggle.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/015-subagent-task-delegation.rispec.md +146 -0
- package/rispecs/borrowed_from_opencode/016-agent-model-selection.rispec.md +151 -0
- package/rispecs/borrowed_from_opencode/017-compaction-agent.rispec.md +150 -0
- package/rispecs/borrowed_from_opencode/018-session-persistence.rispec.md +125 -0
- package/rispecs/borrowed_from_opencode/019-session-compaction.rispec.md +132 -0
- package/rispecs/borrowed_from_opencode/020-session-forking.rispec.md +134 -0
- package/rispecs/borrowed_from_opencode/021-session-revert-snapshot.rispec.md +135 -0
- package/rispecs/borrowed_from_opencode/022-session-sharing.rispec.md +165 -0
- package/rispecs/borrowed_from_opencode/023-session-summary-diffs.rispec.md +165 -0
- package/rispecs/borrowed_from_opencode/024-child-sessions.rispec.md +164 -0
- package/rispecs/borrowed_from_opencode/025-session-title-generation.rispec.md +162 -0
- package/rispecs/borrowed_from_opencode/026-message-parts-model.rispec.md +201 -0
- package/rispecs/borrowed_from_opencode/027-streaming-message-deltas.rispec.md +212 -0
- package/rispecs/borrowed_from_opencode/028-multi-provider-architecture.rispec.md +184 -0
- package/rispecs/borrowed_from_opencode/029-provider-authentication.rispec.md +225 -0
- package/rispecs/borrowed_from_opencode/030-model-registry.rispec.md +222 -0
- package/rispecs/borrowed_from_opencode/031-cost-tracking.rispec.md +243 -0
- package/rispecs/borrowed_from_opencode/032-provider-transform-pipeline.rispec.md +282 -0
- package/rispecs/borrowed_from_opencode/033-provider-sdk-abstraction.rispec.md +338 -0
- package/rispecs/borrowed_from_opencode/034-tool-registry.rispec.md +110 -0
- package/rispecs/borrowed_from_opencode/035-tool-context-injection.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/036-tool-output-truncation.rispec.md +138 -0
- package/rispecs/borrowed_from_opencode/037-batch-tool.rispec.md +129 -0
- package/rispecs/borrowed_from_opencode/038-multi-edit-tool.rispec.md +167 -0
- package/rispecs/borrowed_from_opencode/039-apply-patch-tool.rispec.md +161 -0
- package/rispecs/borrowed_from_opencode/040-code-search-tool.rispec.md +143 -0
- package/rispecs/borrowed_from_opencode/041-web-fetch-tool.rispec.md +131 -0
- package/rispecs/borrowed_from_opencode/042-web-search-tool.rispec.md +159 -0
- package/rispecs/borrowed_from_opencode/043-todo-tool.rispec.md +156 -0
- package/rispecs/borrowed_from_opencode/044-plan-mode-tool.rispec.md +139 -0
- package/rispecs/borrowed_from_opencode/045-task-tool.rispec.md +146 -0
- package/rispecs/borrowed_from_opencode/046-question-tool.rispec.md +170 -0
- package/rispecs/borrowed_from_opencode/047-external-directory-tool.rispec.md +166 -0
- package/rispecs/borrowed_from_opencode/048-file-read-write-tools.rispec.md +205 -0
- package/rispecs/borrowed_from_opencode/049-lsp-server-management.rispec.md +104 -0
- package/rispecs/borrowed_from_opencode/050-lsp-hover-completion.rispec.md +102 -0
- package/rispecs/borrowed_from_opencode/051-lsp-diagnostics.rispec.md +86 -0
- package/rispecs/borrowed_from_opencode/052-lsp-root-detection.rispec.md +109 -0
- package/rispecs/borrowed_from_opencode/053-remote-mcp-servers.rispec.md +119 -0
- package/rispecs/borrowed_from_opencode/054-mcp-oauth-flow.rispec.md +107 -0
- package/rispecs/borrowed_from_opencode/055-mcp-tool-conversion.rispec.md +118 -0
- package/rispecs/borrowed_from_opencode/056-mcp-connection-monitoring.rispec.md +106 -0
- package/rispecs/borrowed_from_opencode/057-local-mcp-servers.rispec.md +116 -0
- package/rispecs/borrowed_from_opencode/058-rich-tui.rispec.md +108 -0
- package/rispecs/borrowed_from_opencode/059-streaming-display.rispec.md +116 -0
- package/rispecs/borrowed_from_opencode/060-permission-prompts.rispec.md +130 -0
- package/rispecs/borrowed_from_opencode/061-session-navigation.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/062-syntax-highlighting.rispec.md +151 -0
- package/rispecs/borrowed_from_opencode/063-keybinding-system.rispec.md +181 -0
- package/rispecs/borrowed_from_opencode/064-multi-level-config.rispec.md +155 -0
- package/rispecs/borrowed_from_opencode/065-jsonc-config.rispec.md +190 -0
- package/rispecs/borrowed_from_opencode/066-config-env-variables.rispec.md +153 -0
- package/rispecs/borrowed_from_opencode/067-config-deep-merging.rispec.md +178 -0
- package/rispecs/borrowed_from_opencode/068-remote-org-config.rispec.md +183 -0
- package/rispecs/borrowed_from_opencode/069-config-markdown-frontmatter.rispec.md +206 -0
- package/rispecs/borrowed_from_opencode/070-managed-config-directory.rispec.md +232 -0
- package/rispecs/borrowed_from_opencode/071-plugin-architecture.rispec.md +104 -0
- package/rispecs/borrowed_from_opencode/072-plugin-hooks.rispec.md +123 -0
- package/rispecs/borrowed_from_opencode/073-plugin-auto-install.rispec.md +115 -0
- package/rispecs/borrowed_from_opencode/074-permission-system.rispec.md +133 -0
- package/rispecs/borrowed_from_opencode/075-git-worktree-management.rispec.md +126 -0
- package/rispecs/borrowed_from_opencode/076-snapshot-system.rispec.md +124 -0
- package/rispecs/borrowed_from_opencode/077-snapshot-diff.rispec.md +117 -0
- package/rispecs/borrowed_from_opencode/078-snapshot-restore.rispec.md +128 -0
- package/rispecs/borrowed_from_opencode/079-worktree-branch-naming.rispec.md +122 -0
- package/rispecs/borrowed_from_opencode/080-sqlite-storage.rispec.md +134 -0
- package/rispecs/borrowed_from_opencode/081-database-migrations.rispec.md +148 -0
- package/rispecs/borrowed_from_opencode/082-database-transactions.rispec.md +138 -0
- package/rispecs/borrowed_from_opencode/083-deferred-effects.rispec.md +148 -0
- package/rispecs/borrowed_from_opencode/084-permission-rules.rispec.md +123 -0
- package/rispecs/borrowed_from_opencode/085-permission-glob-patterns.rispec.md +113 -0
- package/rispecs/borrowed_from_opencode/086-permission-merging.rispec.md +134 -0
- package/rispecs/borrowed_from_opencode/087-permission-modes.rispec.md +145 -0
- package/rispecs/borrowed_from_opencode/088-http-api-server.rispec.md +165 -0
- package/rispecs/borrowed_from_opencode/089-openapi-spec-generation.rispec.md +164 -0
- package/rispecs/borrowed_from_opencode/090-websocket-support.rispec.md +136 -0
- package/rispecs/borrowed_from_opencode/091-sse-streaming.rispec.md +168 -0
- package/rispecs/borrowed_from_opencode/092-mdns-discovery.rispec.md +145 -0
- package/rispecs/borrowed_from_opencode/093-javascript-sdk.rispec.md +200 -0
- package/rispecs/borrowed_from_opencode/094-skill-system.rispec.md +187 -0
- package/rispecs/borrowed_from_opencode/095-skill-discovery.rispec.md +182 -0
- package/rispecs/borrowed_from_opencode/096-desktop-remote-driving.rispec.md +175 -0
- package/rispecs/borrowed_from_opencode/INDEX.md +255 -0
- package/rispecs/core.rispecs.md +261 -0
- package/rispecs/engines.rispecs.md +241 -0
- package/rispecs/formatting.rispecs.md +252 -0
- package/rispecs/living-specifications.rispecs.md +361 -0
- package/rispecs/mcp.rispecs.md +197 -0
- package/rispecs/pde.rispecs.md +399 -0
- package/rispecs/pi-mono-envisionning/ENVISIONING.md +366 -0
- package/rispecs/pi-mono-envisionning/storytelling-horizon.rispecs.md +76 -0
- package/rispecs/pi-mono-envisionning/widget.rispecs.md +2 -0
- package/rispecs/relation-to-mcp-structural-thinking.kin.md +72 -0
- package/rispecs/research-for-better-framework/CLAUDE.md +7 -0
- package/rispecs/research-for-better-framework/survey-pi-openclaw-opencode-openhands.md +210 -0
- package/rispecs/session.rispecs.md +277 -0
- package/rispecs/stc.rispecs.md +138 -0
- package/rispecs/unifier.rispecs.md +317 -0
- package/scripts/LAUNCH--mcp-mia-code--testing--2603141315--ac705a66-2c15-4a1c-a26d-9491018c5ba8.sh +2 -0
- package/scripts/RESUME--mia-code--mcps--260313--ac705a66-2c15-4a1c-a26d-9491018c5ba8.sh +1 -0
- package/scripts/install-widget-in-home-pi-agent-extensions.sh +4 -0
- package/scripts/sample-decompose--2604011535-prompt.sh +1 -0
- package/skills/deep-search/AGENTS.md +17 -0
- package/skills/deep-search/SKILL.md +281 -0
- package/skills/deep-search/agent-templates.md +224 -0
- package/skills/deep-search/orchestration-patterns.md +95 -0
- package/skills/miaco-pde-inquiry-routing-deep-search/AGENTS.md +13 -0
- package/skills/miaco-pde-inquiry-routing-deep-search/SKILL.md +136 -0
- package/skills/miaco-pde-inquiry-routing-internal-external-relationship/AGENTS.md +4 -0
- package/skills/miaco-pde-inquiry-routing-internal-external-relationship/SKILL.md +157 -0
- package/skills/miaco-pde-inquiry-routing-local-qmd/AGENTS.md +42 -0
- package/skills/miaco-pde-inquiry-routing-local-qmd/SKILL.md +135 -0
- package/skills/qmd/AGENTS.md +3 -0
- package/skills/qmd/SKILL.md +144 -0
- package/skills/qmd/references/mcp-setup.md +102 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/SKILL.md +234 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/agent-templates.md +436 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/orchestration-patterns.md +197 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/ceremonial-technology.md +102 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/creative-orientation.md +99 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/prompt-decomposition.md +73 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/rise-framework.md +74 -0
- package/skills/rise-pde-inquiry-session-multi-agents-v3/references/structural-tension.md +82 -0
- package/src/cli.ts +35 -11
- package/src/geminiHeadless.ts +7 -2
- package/src/index.ts +2 -1
- package/src/mcp/miaco-server.ts +13 -1
- package/src/mcp/miatel-server.ts +13 -1
- package/src/mcp/miawa-server.ts +13 -1
- package/src/mcp/utils.ts +41 -8
- package/src/sessionStore.ts +44 -4
- package/src/types.ts +2 -1
- package/widget/mia-ceremony/README.md +36 -0
- package/widget/mia-ceremony/index.ts +143 -0
- package/widget/mia-interceptor/README.md +39 -0
- package/widget/mia-interceptor/index.ts +221 -0
- package/widget/mia-tools/README.md +37 -0
- package/widget/mia-tools/index.ts +569 -0
- package/widget/miette-echo/README.md +44 -0
- package/widget/miette-echo/index.ts +164 -0
- package/.claude/settings.local.json +0 -9
- package/.hch/issue_.env +0 -4
- package/.hch/issue_add__2601211715.json +0 -77
- package/.hch/issue_add__2601211715.md +0 -4
- package/.hch/issue_add__2602242020.json +0 -78
- package/.hch/issue_add__2602242020.md +0 -7
- package/.hch/issues.json +0 -2312
- package/.hch/issues.md +0 -30
- package/WS__mia-code__260214__IAIP_PDE.code-workspace +0 -29
- package/WS__mia-code__src332__260122.code-workspace +0 -23
- package/samples/copilot/session-state/be76abaa-a27f-4725-b2a9-22fb45f7e0f7/checkpoints/index.md +0 -6
- package/samples/copilot/session-state/be76abaa-a27f-4725-b2a9-22fb45f7e0f7/events.jsonl +0 -213
- package/samples/copilot/session-state/be76abaa-a27f-4725-b2a9-22fb45f7e0f7/plan.md +0 -243
- package/samples/copilot/session-state/be76abaa-a27f-4725-b2a9-22fb45f7e0f7/workspace.yaml +0 -5
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
> ## Documentation Index
|
|
2
|
+
> Fetch the complete documentation index at: https://agentclientprotocol.com/llms.txt
|
|
3
|
+
> Use this file to discover all available pages before exploring further.
|
|
4
|
+
|
|
5
|
+
# Agent Extensions via ACP Proxies
|
|
6
|
+
|
|
7
|
+
Author(s): [nikomatsakis](https://github.com/nikomatsakis)
|
|
8
|
+
|
|
9
|
+
## Elevator pitch
|
|
10
|
+
|
|
11
|
+
> What are you proposing to change?
|
|
12
|
+
|
|
13
|
+
Enable a universal agent extension mechanism via ACP proxies, components that sit between a client and an agent. Proxies can intercept and transform messages, enabling composable architectures where techniques like context injection, tool coordination, and response filtering can be extracted into reusable components.
|
|
14
|
+
|
|
15
|
+
## Status quo
|
|
16
|
+
|
|
17
|
+
> How do things work today and what problems does this cause? Why would we change things?
|
|
18
|
+
|
|
19
|
+
The AI agent ecosystem has developed many extension mechanisms: AGENTS.md files, Claude Code plugins, rules files, hooks, MCP servers, etc. Of these, only MCP servers have achieved real standardization across the ecosystem.
|
|
20
|
+
|
|
21
|
+
However, MCP servers are fundamentally limited because they sit "behind" the agent. They can provide tools and respond to function calls, but they cannot:
|
|
22
|
+
|
|
23
|
+
* **Inject or modify prompts** before they reach the agent
|
|
24
|
+
* **Add global context** that persists across conversations
|
|
25
|
+
* **Transform responses** before they reach the user
|
|
26
|
+
* **Coordinate between multiple agents** or manage conversation flow
|
|
27
|
+
|
|
28
|
+
As a result, valuable techniques like context management and response processing remain locked within individual agent implementations, with no way to extract and reuse them across different agents.
|
|
29
|
+
|
|
30
|
+
## What we propose to do about it
|
|
31
|
+
|
|
32
|
+
> What are you proposing to improve the situation?
|
|
33
|
+
|
|
34
|
+
We propose implementing *agent extensions* via ACP *proxies*, a new kind of component that sits between the client and the agent, forwarding (and potentially altering or introducing) messages. Because proxies can do anything a client could do, they serve as a universal extension mechanism that can subsume AGENTS.md, hooks, MCP servers, etc.
|
|
35
|
+
|
|
36
|
+
Proxies are limited to the customizations exposed by ACP itself, so they would benefit from future ACP extensions like mechanisms to customize system prompts. However, they can already handle the majority of common extension use cases through message interception and transformation.
|
|
37
|
+
|
|
38
|
+
### Proxying in theory
|
|
39
|
+
|
|
40
|
+
Conceptually, proxies work like a chain where messages flow through each component:
|
|
41
|
+
|
|
42
|
+
```mermaid theme={null}
|
|
43
|
+
flowchart LR
|
|
44
|
+
Client[ACP Client] -->|messages| P1[Context Proxy]
|
|
45
|
+
P1 -->|enhanced| P2[Tool Filter Proxy]
|
|
46
|
+
P2 -->|filtered| A[Base Agent]
|
|
47
|
+
A -->|responses| P2
|
|
48
|
+
P2 -->|processed| P1
|
|
49
|
+
P1 -->|final| Client
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Proxying in practice: the role of the conductor
|
|
53
|
+
|
|
54
|
+
To allow for proxy isolation, our design does not have proxies communicate directly with their successor in the chain. Instead, there is a central *conductor* component that orchestrates messages moving between components.
|
|
55
|
+
|
|
56
|
+
```mermaid theme={null}
|
|
57
|
+
flowchart TB
|
|
58
|
+
Client[Client]
|
|
59
|
+
C[Conductor]
|
|
60
|
+
P1[Context Proxy]
|
|
61
|
+
P2[Tool Filter Proxy]
|
|
62
|
+
A[Agent]
|
|
63
|
+
|
|
64
|
+
Client <-->|ACP| C
|
|
65
|
+
C <-->|ACP| P1
|
|
66
|
+
C <-->|ACP| P2
|
|
67
|
+
C <-->|ACP| A
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
We add one ACP method for proxy communication:
|
|
71
|
+
|
|
72
|
+
* **`proxy/successor`**: Used bidirectionally - proxies send it to forward messages to their successor, and the conductor sends it to deliver messages from the successor back to the proxy
|
|
73
|
+
|
|
74
|
+
Here's how a single message flows through the system:
|
|
75
|
+
|
|
76
|
+
```mermaid theme={null}
|
|
77
|
+
sequenceDiagram
|
|
78
|
+
participant Client
|
|
79
|
+
participant Conductor
|
|
80
|
+
participant P1 as Context Proxy
|
|
81
|
+
participant P2 as Tool Filter Proxy
|
|
82
|
+
participant Agent
|
|
83
|
+
|
|
84
|
+
Client->>Conductor: prompt request
|
|
85
|
+
Conductor->>P1: prompt request
|
|
86
|
+
P1->>Conductor: proxy/successor (enhanced prompt)
|
|
87
|
+
Conductor->>P2: enhanced prompt
|
|
88
|
+
P2->>Conductor: proxy/successor (filtered prompt)
|
|
89
|
+
Conductor->>Agent: filtered prompt
|
|
90
|
+
Agent-->>Conductor: response
|
|
91
|
+
Conductor-->>P2: response
|
|
92
|
+
P2-->>Conductor: processed response
|
|
93
|
+
Conductor-->>P1: processed response
|
|
94
|
+
P1-->>Conductor: final response
|
|
95
|
+
Conductor-->>Client: final response
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Shiny future
|
|
99
|
+
|
|
100
|
+
> How will things play out once this feature exists?
|
|
101
|
+
|
|
102
|
+
### User experience and editor integration
|
|
103
|
+
|
|
104
|
+
We expect editors to expose the ability to install proxies in the same way they currently support adding MCP servers - in fact, the distinction probably doesn't matter to users. Both are "extensions" that add capabilities to their AI workflow.
|
|
105
|
+
|
|
106
|
+
When proxies are installed, editors would not start the agent directly, but instead invoke the conductor with the configured proxy chain. From the user's perspective, they're just getting enhanced agent capabilities - the proxy chain architecture remains transparent.
|
|
107
|
+
|
|
108
|
+
### Language-specific proxy ecosystems
|
|
109
|
+
|
|
110
|
+
The monolithic nature of agent development has meant that most of the "action" happens within agents. We wish to invert this, with agents trending towards simple agentic loops, and the creativity being pushed outwards into the broader ecosystem.
|
|
111
|
+
|
|
112
|
+
The Symposium project is one example exploring this concept, with a focus on Rust. The idea is to give Rust users an automatic set of extensions based on the dependencies they are using. These extensions would be packaged up as SACP proxies using WebAssembly for portability and sandboxing.
|
|
113
|
+
|
|
114
|
+
Symposium aims to become the standard "Rust ACP experience" by providing both core Rust tooling and a framework for Rust libraries to contribute their own proxy components.
|
|
115
|
+
|
|
116
|
+
```mermaid theme={null}
|
|
117
|
+
flowchart LR
|
|
118
|
+
Client[Client]
|
|
119
|
+
Conductor[Conductor]
|
|
120
|
+
Agent[Agent]
|
|
121
|
+
|
|
122
|
+
subgraph Symposium["symposium-acp proxy"]
|
|
123
|
+
RustTools[Rust Language Tools]
|
|
124
|
+
CrateA[tokio-acp proxy]
|
|
125
|
+
CrateB[serde-acp proxy]
|
|
126
|
+
CrateC[bevy-acp proxy]
|
|
127
|
+
|
|
128
|
+
RustTools --> CrateA
|
|
129
|
+
CrateA --> CrateB
|
|
130
|
+
CrateB --> CrateC
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
Client --> Conductor
|
|
134
|
+
Conductor --> Symposium
|
|
135
|
+
Symposium --> Agent
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Standardized IDE capabilities
|
|
139
|
+
|
|
140
|
+
Proxy infrastructure could also enable editors to expose standardized IDE capabilities (diagnostics, file system access, terminal APIs) to agents via MCP servers provided by proxies. This keeps the core ACP protocol focused on agent communication while allowing rich IDE integration through the proxy layer.
|
|
141
|
+
|
|
142
|
+
## Implementation details and plan
|
|
143
|
+
|
|
144
|
+
> Tell me more about your implementation. What is your detailed implementation plan?
|
|
145
|
+
|
|
146
|
+
### Component roles
|
|
147
|
+
|
|
148
|
+
Each ACP proxy chain forms a sequence of components:
|
|
149
|
+
|
|
150
|
+
```mermaid theme={null}
|
|
151
|
+
flowchart LR
|
|
152
|
+
Client --> Proxy0 --> Proxy1 --> ... --> ProxyN --> Agent
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
The **client** and **agent** are *terminal* roles - the client has only a successor (no predecessor), and the agent has only a predecessor (no successor). Proxies are *non-terminal* - they have both a predecessor and a successor, forwarding messages between them.
|
|
156
|
+
|
|
157
|
+
The **conductor** is a special component that orchestrates proxy chains. It spawns and manages proxy components, routes messages between them, and handles initialization. From the client's perspective, the conductor appears to be an ordinary agent:
|
|
158
|
+
|
|
159
|
+
```mermaid theme={null}
|
|
160
|
+
flowchart LR
|
|
161
|
+
Client -->|ACP| Conductor
|
|
162
|
+
|
|
163
|
+
subgraph Managed["Managed by Conductor"]
|
|
164
|
+
Proxy0 --> Proxy1 --> ... --> Agent
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
Conductor -.->|spawns & routes| Managed
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
We provide a canonical conductor implementation in Rust (`sacp-conductor`). Most editors would use this conductor directly to host proxies and agents, though they could also reimplement conductor functionality if needed.
|
|
171
|
+
|
|
172
|
+
ACP defines client and agent as superroles, each with two specializations:
|
|
173
|
+
|
|
174
|
+
```mermaid theme={null}
|
|
175
|
+
classDiagram
|
|
176
|
+
class Client {
|
|
177
|
+
<<abstract>>
|
|
178
|
+
+sends prompts
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
class Agent {
|
|
182
|
+
<<abstract>>
|
|
183
|
+
+responds to prompts
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
class TerminalClient {
|
|
187
|
+
+receives direction from user
|
|
188
|
+
+connects to terminal agent
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
class Conductor {
|
|
192
|
+
+manages proxy chain
|
|
193
|
+
+sends successor messages
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
class TerminalAgent {
|
|
197
|
+
+embodies the LLM
|
|
198
|
+
+final destination
|
|
199
|
+
+no successor
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
class Proxy {
|
|
203
|
+
+forwards to successor
|
|
204
|
+
+sends successor messages
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
Client <|-- TerminalClient
|
|
208
|
+
Client <|-- Conductor
|
|
209
|
+
Agent <|-- TerminalAgent
|
|
210
|
+
Agent <|-- Proxy
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**Example Architecture:**
|
|
214
|
+
|
|
215
|
+
```mermaid theme={null}
|
|
216
|
+
flowchart TB
|
|
217
|
+
TC[Terminal Client]
|
|
218
|
+
C[Conductor]
|
|
219
|
+
P1[Context Proxy]
|
|
220
|
+
P2[Tool Filter Proxy]
|
|
221
|
+
TA[Terminal Agent]
|
|
222
|
+
|
|
223
|
+
TC -->|terminal client| C
|
|
224
|
+
C -->|terminal agent| TC
|
|
225
|
+
C -->|conductor| P1
|
|
226
|
+
P1 -->|proxy| C
|
|
227
|
+
C -->|conductor| P2
|
|
228
|
+
P2 -->|proxy| C
|
|
229
|
+
C -->|terminal client| TA
|
|
230
|
+
TA -->|terminal agent| C
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### Proxy initialization protocol
|
|
234
|
+
|
|
235
|
+
Components discover their role from the initialization method they receive:
|
|
236
|
+
|
|
237
|
+
* **Proxies** receive `proxy/initialize` - they have a successor and should forward messages
|
|
238
|
+
* **Agents** receive `initialize` - they are terminal (no successor) and process messages directly
|
|
239
|
+
|
|
240
|
+
The `proxy/initialize` request has the same parameters as `initialize` and expects a standard `InitializeResponse`. The only difference is the method name, which signals to the component that it should operate as a proxy.
|
|
241
|
+
|
|
242
|
+
**Conductor behavior:**
|
|
243
|
+
|
|
244
|
+
* The conductor MUST send `proxy/initialize` to all proxy components
|
|
245
|
+
* The conductor MUST send `initialize` to the final agent component (if any)
|
|
246
|
+
* When a proxy forwards an `initialize` via `proxy/successor`, the conductor determines whether the successor is another proxy or the agent, and sends `proxy/initialize` or `initialize` respectively.
|
|
247
|
+
|
|
248
|
+
**Proxy behavior:**
|
|
249
|
+
|
|
250
|
+
* A proxy that receives `proxy/initialize` knows it has a successor
|
|
251
|
+
* The proxy SHOULD forward requests it does not understand
|
|
252
|
+
* The proxy SHOULD preserve metadata fields when forwarding messages
|
|
253
|
+
|
|
254
|
+
Note: A conductor can be configured to run in either terminal mode (expecting `initialize`) or proxy mode (expecting `proxy/initialize`), enabling nested proxy chains.
|
|
255
|
+
|
|
256
|
+
### MCP-over-ACP support
|
|
257
|
+
|
|
258
|
+
Proxies that provide MCP servers use the [MCP-over-ACP transport](./mcp-over-acp) mechanism. The conductor always advertises `mcpCapabilities.acp: true` to proxies and handles bridging for agents that don't support native ACP transport.
|
|
259
|
+
|
|
260
|
+
All proxies MUST respond to `proxy/initialize` with the MCP-over-ACP capability enabled. When the conductor sends `proxy/initialize`, proxies should be prepared to handle `mcp/connect`, `mcp/message`, and `mcp/disconnect` messages for any MCP servers they provide.
|
|
261
|
+
|
|
262
|
+
### Message reference
|
|
263
|
+
|
|
264
|
+
**Initialization:**
|
|
265
|
+
|
|
266
|
+
```json theme={null}
|
|
267
|
+
// Conductor initializes a proxy (proxy knows it has a successor)
|
|
268
|
+
{"method": "proxy/initialize", "params": <INITIALIZE_REQUEST_PARAMS>}
|
|
269
|
+
|
|
270
|
+
// Conductor initializes the agent (standard ACP)
|
|
271
|
+
{"method": "initialize", "params": <INITIALIZE_REQUEST_PARAMS>}
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
Both methods use the same parameters as the standard ACP `InitializeRequest` and expect a standard `InitializeResponse`.
|
|
275
|
+
|
|
276
|
+
**Proxy messages:**
|
|
277
|
+
|
|
278
|
+
```json theme={null}
|
|
279
|
+
// Proxy sends message to successor, or conductor delivers message from successor
|
|
280
|
+
// (same method, direction determined by sender)
|
|
281
|
+
{
|
|
282
|
+
"method": "proxy/successor",
|
|
283
|
+
"params": {
|
|
284
|
+
"method": "<INNER_METHOD>",
|
|
285
|
+
"params": <INNER_PARAMS>,
|
|
286
|
+
"meta": { ... } // optional metadata
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
The inner message fields (`method`, `params`) are flattened into the params object. Whether the wrapped message is a request or notification is determined by the presence of an `id` field in the outer JSON-RPC envelope, following JSON-RPC conventions.
|
|
292
|
+
|
|
293
|
+
### Examples (non-normative)
|
|
294
|
+
|
|
295
|
+
The following sequence diagrams illustrate common proxy chain scenarios for implementers.
|
|
296
|
+
|
|
297
|
+
#### Initialization of a 4-component proxy chain
|
|
298
|
+
|
|
299
|
+
This shows the initialization flow for: Terminal Client → Conductor → Context Proxy → Tool Filter Proxy → Terminal Agent
|
|
300
|
+
|
|
301
|
+
```mermaid theme={null}
|
|
302
|
+
sequenceDiagram
|
|
303
|
+
participant TC as Terminal Client
|
|
304
|
+
participant C as Conductor
|
|
305
|
+
participant P1 as Context Proxy
|
|
306
|
+
participant P2 as Tool Filter Proxy
|
|
307
|
+
participant TA as Terminal Agent
|
|
308
|
+
|
|
309
|
+
Note over TC,TA: === Initialization Phase ===
|
|
310
|
+
|
|
311
|
+
TC->>C: initialize
|
|
312
|
+
|
|
313
|
+
Note over C: Conductor spawns proxy components
|
|
314
|
+
C->>P1: proxy/initialize
|
|
315
|
+
|
|
316
|
+
Note over P1: Proxy forwards to successor
|
|
317
|
+
P1->>C: proxy/successor (initialize)
|
|
318
|
+
|
|
319
|
+
Note over C: Conductor sends proxy/initialize to next proxy
|
|
320
|
+
C->>P2: proxy/initialize
|
|
321
|
+
|
|
322
|
+
Note over P2: Proxy forwards to successor
|
|
323
|
+
P2->>C: proxy/successor (initialize)
|
|
324
|
+
|
|
325
|
+
Note over C: Conductor sends initialize to final agent
|
|
326
|
+
C->>TA: initialize
|
|
327
|
+
|
|
328
|
+
TA-->>C: InitializeResponse (mcpCapabilities.acp: true/false)
|
|
329
|
+
C-->>P2: proxy/successor (InitializeResponse)
|
|
330
|
+
|
|
331
|
+
P2-->>C: InitializeResponse
|
|
332
|
+
C-->>P1: proxy/successor (InitializeResponse)
|
|
333
|
+
|
|
334
|
+
P1-->>C: InitializeResponse
|
|
335
|
+
|
|
336
|
+
Note over C: Conductor acts as terminal agent to client
|
|
337
|
+
C-->>TC: InitializeResponse
|
|
338
|
+
|
|
339
|
+
Note over TC,TA: Proxy chain initialized and ready
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
#### Context-providing proxy with session notifications
|
|
343
|
+
|
|
344
|
+
This example shows how a proxy can handle initialization and forward session notifications. Sparkle (a collaborative AI framework) runs an embodiment sequence during session creation.
|
|
345
|
+
|
|
346
|
+
```mermaid theme={null}
|
|
347
|
+
sequenceDiagram
|
|
348
|
+
participant Client
|
|
349
|
+
participant Sparkle as Sparkle Proxy
|
|
350
|
+
participant Agent
|
|
351
|
+
|
|
352
|
+
Note over Client: Client creates new session
|
|
353
|
+
Client->>Sparkle: session/new
|
|
354
|
+
|
|
355
|
+
Note over Sparkle: Adds Sparkle MCP server
|
|
356
|
+
Sparkle->>Agent: session/new + sparkle tools
|
|
357
|
+
Agent-->>Sparkle: session created (sessionId: S1)
|
|
358
|
+
Sparkle-->>Client: session/new response (sessionId: S1)
|
|
359
|
+
|
|
360
|
+
Note over Client: Client sends first prompt (during embodiment)
|
|
361
|
+
Client->>Sparkle: prompt ('Hello, can you help me?')
|
|
362
|
+
activate Sparkle
|
|
363
|
+
|
|
364
|
+
Note over Sparkle: Delays client prompt, runs embodiment first
|
|
365
|
+
Sparkle->>Agent: prompt ('you are sparkle...')
|
|
366
|
+
|
|
367
|
+
Note over Agent: Processes embodiment, sends notifications
|
|
368
|
+
Agent->>Sparkle: session/update (S1: thinking...)
|
|
369
|
+
Sparkle->>Client: session/update (S1: thinking...)
|
|
370
|
+
|
|
371
|
+
Agent->>Sparkle: session/update (S1: embodiment complete)
|
|
372
|
+
Sparkle->>Client: session/update (S1: embodiment complete)
|
|
373
|
+
|
|
374
|
+
Agent-->>Sparkle: embodiment response
|
|
375
|
+
Note over Sparkle: Discards embodiment response, now processes delayed prompt
|
|
376
|
+
|
|
377
|
+
Sparkle->>Agent: prompt ('Hello, can you help me?')
|
|
378
|
+
deactivate Sparkle
|
|
379
|
+
Agent-->>Sparkle: response to client
|
|
380
|
+
Sparkle-->>Client: response to client
|
|
381
|
+
|
|
382
|
+
Note over Client,Agent: Session ready with Sparkle patterns active
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
This demonstrates how proxies can run initialization sequences during session creation while transparently forwarding all session notifications back to the client.
|
|
386
|
+
|
|
387
|
+
## Frequently asked questions
|
|
388
|
+
|
|
389
|
+
> What questions have arisen over the course of authoring this document or during subsequent discussions?
|
|
390
|
+
|
|
391
|
+
### Why use a separate `proxy/initialize` method instead of a capability?
|
|
392
|
+
|
|
393
|
+
Earlier designs used a `"proxy": true` capability in the `InitializeRequest` and required proxies to echo it back in the response. This felt awkward because it wasn't really a capability negotiation - it was more of a "you must operate as a proxy" directive.
|
|
394
|
+
|
|
395
|
+
Using a distinct method makes the contract clearer: if you receive `proxy/initialize`, you're a proxy with a successor; if you receive `initialize`, you're the terminal agent. There's no capability dance, no risk of misconfiguration, and components know their role immediately from the method name.
|
|
396
|
+
|
|
397
|
+
### How do proxies subsume existing agent extension mechanisms?
|
|
398
|
+
|
|
399
|
+
Because proxies sit between the client and agent, they can replicate the functionality of existing extension mechanisms:
|
|
400
|
+
|
|
401
|
+
* **AGENTS.md files**: Proxies can inject context and instructions into prompts before they reach the agent
|
|
402
|
+
* **Claude Code plugins/skills**: Proxies can add contextual data for available skills and provide MCP resources with detailed skill instructions that are provided on-demand when requested by the agent
|
|
403
|
+
* **MCP servers**: Proxies can provide tools via [MCP-over-ACP](./mcp-over-acp) and handle tool callbacks
|
|
404
|
+
* **Subagents**: Proxies can create "subagents" by initiating new sessions and coordinating between multiple agent instances
|
|
405
|
+
* **Hooks and steering files**: Proxies can modify conversation flow by intercepting requests and responses
|
|
406
|
+
* **System prompt customization**: Proxies can switch between predefined session modes or prepend system messages to prompts
|
|
407
|
+
|
|
408
|
+
The key advantage is that proxy-based extensions work with any ACP-compatible agent without requiring agent-specific integration or modification.
|
|
409
|
+
|
|
410
|
+
### How do proxies work with MCP servers?
|
|
411
|
+
|
|
412
|
+
Proxies can provide MCP servers via [MCP-over-ACP transport](./mcp-over-acp), enabling a single proxy to add context, provide tools, and handle callbacks with full awareness of the conversation state.
|
|
413
|
+
|
|
414
|
+
The conductor always advertises `mcpCapabilities.acp: true` to proxies, regardless of whether the downstream agent supports it natively. When the agent doesn't support ACP transport, the conductor handles bridging transparently - spawning stdio shims or HTTP servers that the agent connects to normally, then relaying messages to/from the proxy's ACP channel.
|
|
415
|
+
|
|
416
|
+
This means proxy authors don't need to worry about agent compatibility - they implement MCP-over-ACP, and the conductor handles the rest.
|
|
417
|
+
|
|
418
|
+
```mermaid theme={null}
|
|
419
|
+
sequenceDiagram
|
|
420
|
+
participant Client
|
|
421
|
+
participant P1 as Context Proxy
|
|
422
|
+
participant P2 as Filter Proxy
|
|
423
|
+
participant Agent
|
|
424
|
+
|
|
425
|
+
Note over Client: User asks about project structure
|
|
426
|
+
Client->>P1: prompt request
|
|
427
|
+
|
|
428
|
+
Note over P1: Analyzes project, adds context + filesystem MCP server
|
|
429
|
+
P1->>P2: enhanced prompt + filesystem MCP server
|
|
430
|
+
|
|
431
|
+
Note over P2: Forwards enhanced prompt
|
|
432
|
+
P2->>Agent: prompt with context + tools available
|
|
433
|
+
|
|
434
|
+
Note over Agent: Decides to explore project structure
|
|
435
|
+
Agent->>P2: mcp/message (list files)
|
|
436
|
+
|
|
437
|
+
Note over P2: Forwards tool call back to Context Proxy
|
|
438
|
+
P2->>P1: mcp/message (list files)
|
|
439
|
+
|
|
440
|
+
Note over P1: Handles tool call with full project context
|
|
441
|
+
P1-->>P2: file listing with relevant details
|
|
442
|
+
P2-->>Agent: file listing with relevant details
|
|
443
|
+
|
|
444
|
+
Agent-->>P2: response using both context and tool results
|
|
445
|
+
P2-->>P1: response (potentially filtered)
|
|
446
|
+
P1-->>Client: final response
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
### Are there any limitations to what proxies can do?
|
|
450
|
+
|
|
451
|
+
Yes, proxies are limited to what is available through the ACP protocol itself. They can intercept and transform any ACP message, but they cannot access capabilities that ACP doesn't expose.
|
|
452
|
+
|
|
453
|
+
For example, proxies cannot directly modify an agent's system prompt or context window - they can only switch between predefined session modes (which may affect system prompts) or prepend additional messages to prompts. Similarly, proxies cannot access internal agent state, model parameters, or other implementation details that aren't exposed through ACP messages.
|
|
454
|
+
|
|
455
|
+
This is actually a feature - it ensures that proxy-based extensions remain portable across different agent implementations and don't rely on agent-specific internals.
|
|
456
|
+
|
|
457
|
+
### Why not just cascade ACP commands without protocol changes?
|
|
458
|
+
|
|
459
|
+
One alternative is to make proxies be ordinary agents that internally create and manage their successors. This works (HTTP proxies operate this way) but requires each proxy to understand the full chain and know how to start its successors.
|
|
460
|
+
|
|
461
|
+
This couples proxies to transport mechanisms, process management, and chain configuration. Changing transports, reordering the chain, or inserting a new proxy requires modifying predecessor configurations.
|
|
462
|
+
|
|
463
|
+
The conductor design decouples proxies from their successors. Proxies send messages "to successor" and receive messages "from successor" without knowing who that successor is, how it's started, or what transport it uses. This enables:
|
|
464
|
+
|
|
465
|
+
* Changing transport protocols or process management without recompiling proxies
|
|
466
|
+
* Shipping proxies as low-capability WASM containers that need only a single communication channel
|
|
467
|
+
* Reordering, adding, or removing proxies through configuration rather than code changes
|
|
468
|
+
|
|
469
|
+
The tradeoff is protocol complexity, but this complexity lives in the conductor (implemented once) rather than being duplicated across proxy implementations.
|
|
470
|
+
|
|
471
|
+
### Why do all messages go through the conductor instead of direct proxy-to-proxy communication?
|
|
472
|
+
|
|
473
|
+
Even with a conductor, proxies could communicate directly with their successors after the conductor sets up connections. Routing all messages through the conductor further minimizes proxy responsibilities to a single communication channel.
|
|
474
|
+
|
|
475
|
+
This supports running proxies as isolated WebAssembly components with minimal capabilities. It also removes redundant logic: without the conductor routing messages, each proxy would need to manage connections to its successor.
|
|
476
|
+
|
|
477
|
+
The conductor handles process management, capability negotiation, and message routing, allowing proxies to focus on transformation logic.
|
|
478
|
+
|
|
479
|
+
### How does the standard conductor implementation work?
|
|
480
|
+
|
|
481
|
+
The `sacp-conductor` reference implementation can form trees of proxy chains. It can be configured to run in proxy mode (expecting `proxy/initialize`) or terminal mode (expecting `initialize`). When the last proxy in its managed chain sends a message to its successor, the conductor forwards that message to its own parent conductor (if in proxy mode) or to the final agent (if in terminal mode).
|
|
482
|
+
|
|
483
|
+
This enables hierarchical structures like:
|
|
484
|
+
|
|
485
|
+
```
|
|
486
|
+
client → conductor1 → final-agent
|
|
487
|
+
↓ manages
|
|
488
|
+
proxy-a → conductor2 → proxy-d
|
|
489
|
+
↓ manages
|
|
490
|
+
proxy-b → proxy-c
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
The conductor handles process management, capability negotiation, and message routing, but these are implementation details - the protocol only specifies the message formats and capability requirements.
|
|
494
|
+
|
|
495
|
+
### What about security concerns with proxy chains?
|
|
496
|
+
|
|
497
|
+
Proxy components can intercept and modify all communication, so trust is essential - similar to installing any software. Users are responsible for the components they choose to run.
|
|
498
|
+
|
|
499
|
+
We plan to explore WebAssembly-based proxies which will offer some measure of sandboxing but such components could still modify prompts in unknown or malicious ways.
|
|
500
|
+
|
|
501
|
+
### What about performance implications of the proxy chain?
|
|
502
|
+
|
|
503
|
+
Our architecture does introduce additional message passing - each proxy in the chain adds extra hops as messages flow through the conductor. However, these messages are typically small and inexpensive, particularly when compared to the latency of actual LLM inference.
|
|
504
|
+
|
|
505
|
+
For messages that contain significant quantities of data (large file contents, extensive context), we may wish to have the conductor store that data centrally and introduce a "reference" mechanism so that most proxies don't have to inspect or copy large payloads unless they specifically need to transform them.
|
|
506
|
+
|
|
507
|
+
The benefits of composability typically outweigh the minimal latency costs for human-paced development interactions.
|
|
508
|
+
|
|
509
|
+
### What happens when proxy components crash or misbehave?
|
|
510
|
+
|
|
511
|
+
The conductor manages component lifecycles:
|
|
512
|
+
|
|
513
|
+
* Failed components are restarted automatically where possible
|
|
514
|
+
* Component crashes don't affect the rest of the chain
|
|
515
|
+
* Graceful degradation by bypassing failed components
|
|
516
|
+
* Clear error reporting to help users debug configuration issues
|
|
517
|
+
|
|
518
|
+
### Can proxy chains be nested or form trees?
|
|
519
|
+
|
|
520
|
+
Yes! The conductor can itself run in proxy mode, enabling hierarchical structures:
|
|
521
|
+
|
|
522
|
+
```
|
|
523
|
+
client → proxy1 → conductor (proxy mode) → final-agent
|
|
524
|
+
↓ manages
|
|
525
|
+
p1 → p2 → p3
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
This enables complex compositions while maintaining clean interfaces.
|
|
529
|
+
|
|
530
|
+
### How could proxy chains support multi-agent scenarios in the future?
|
|
531
|
+
|
|
532
|
+
The current design assumes a linear chain where each proxy has a single successor. To support M:N topologies where a proxy communicates with multiple peers (e.g., a research coordinator dispatching to multiple specialized agents), we could extend `proxy/successor` with an optional `peer` field:
|
|
533
|
+
|
|
534
|
+
```json theme={null}
|
|
535
|
+
{
|
|
536
|
+
"method": "proxy/successor",
|
|
537
|
+
"params": {
|
|
538
|
+
"method": "prompt",
|
|
539
|
+
"params": { ... },
|
|
540
|
+
"peer": "research-agent"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
When `peer` is omitted, the message goes to the default successor (backwards compatible with the current linear chain model). When present, it specifies which peer the message is intended for. The `proxy/initialize` response could be extended to enumerate available peers, enabling proxies to discover and coordinate between multiple downstream components.
|
|
546
|
+
|
|
547
|
+
### What's the current implementation status?
|
|
548
|
+
|
|
549
|
+
A prototype version of this proposal has been implemented and is available on crates.io as the crates:
|
|
550
|
+
|
|
551
|
+
* `sacp` -- base ACP protocol SDK
|
|
552
|
+
* `sacp-tokio` -- adds specific utilities for use with the `tokio` runtime
|
|
553
|
+
* `sacp-proxy` -- extensions for implementing a proxy
|
|
554
|
+
* `sacp-rmcp` -- adds specific proxy extension traits for bridging to the rmcp crate
|
|
555
|
+
* `sacp-conductor` -- reference conductor implementation
|
|
556
|
+
|
|
557
|
+
The canonical sources for those crates is currently the \[symposium-dev/symposium-acp] repository. However, copies have been upstreamed to the [agentclientprotocol/rust-sdk](https://github.com/agentclientprotocol/rust-sdk/tree/main/src/sacp-conductor) repository and, if and when this RFD is accepted, that will become the canonical home.
|
|
558
|
+
|
|
559
|
+
## Revision history
|
|
560
|
+
|
|
561
|
+
* Initial draft based on working implementation in symposium-acp repository.
|
|
562
|
+
* Split MCP-over-ACP transport into [separate RFD](./mcp-over-acp) to enable independent use by any ACP component.
|