Transform codeagent into a full-featured, extensible AI coding assistant matching Claude Code's agentic shape, extensibility, memory, and safety guarantees.
Important
Extensibility Blueprint: Real Claude Code plugins act as containers for Skills, Subagents, Hooks, and MCP Servers. Therefore, Subagents and MCP Client support must be implemented before the Plugin packaging layer is finalized.
Note
Scope Boundaries: Desktop UI, mobile app remote control, and cloud-hosted SaaS infrastructure are explicitly kept out of scope (Tier 3 non-goals), focusing 100% on terminal-native developer experience and feature parity.
Important
Subagent Concurrency: Should initial Subagent execution run synchronously (blocking main agent until subagent completes) or asynchronously in background? We propose starting synchronous for predictable turn state before introducing background subagent tasks.
Tip
Default Memory File: Should the auto-discovered project instruction file be named CODEAGENT.md (project-specific) or fall back to checking CLAUDE.md as well for multi-agent interoperability?
The plan is organized into sequential phases following established project design guidelines (docs/16-claude-code-parity-audit.md & PLAN.md).
Adds directory-layered, auto-discovered project memory and rules into the system prompt context.
- Implements
discoverProjectMemory(cwd)searching forCODEAGENT.mdand.codeagent/rules/*.md. - Parses and formats instructions into system prompt context layers.
- Integrates project memory section right after base instructions and before workspace auto-context.
Adds interactive /command templates and control shortcuts within the interactive REPL.
- Registry and parser for built-in slash commands (
/review,/test,/compact,/plan,/help,/clear). - Loads project-scoped custom slash commands from
.codeagent/commands/.
- Intercepts user input starting with
/, resolving slash command templates before submitting toOrchestrator.runTurn().
Spawns named, isolated-context child agents for delegation (e.g., deep research, test execution, code review) without polluting main conversation history.
SubagentRunnerclass managing isolatedOrchestratorinstances with restricted tool sets and custom subagent system prompts.- Reads subagent definitions from
.codeagent/agents/<name>.md.
- Tool implementation enabling the parent agent to invoke subagents explicitly (
run_subagenttool).
Connects external Model Context Protocol (MCP) servers to expose external tools (databases, GitHub, browser automation) dynamically.
- Connects to MCP servers via stdio and HTTP/SSE transports.
- Translates MCP tool definitions into
codeagenttool schemas.
- Discovers and parses
.codeagent/mcp.jsonserver definitions. - Registers dynamic tools into
ToolRegistry.
Bundles Skills + Subagents + Hooks + MCP configs into shareable plugin packages.
- Validates plugin manifests (
codeagent-plugin.json). - Loads bundled skills, hooks, subagents, and MCP configurations.
- CLI installer for local directories, Git repositories, or npm packages (
codeagent plugins install <target>).
- Web content fetching and search integration tools with host permissions safety checks.
- Wraps command execution with process isolation options and optional command restriction guards.
npm test- Run full unit and integration test suite across all sub-packages.vitest test/agent/memory.test.js- VerifyCODEAGENT.mddiscovery and context building.vitest test/cli/slashCommands.test.js- Test slash command parsing and argument interpolation.vitest test/agent/subagent.test.js- Verify isolated history, tool restrictions, and return payloads.vitest test/mcp/mcpClient.test.js- Mock stdio MCP server handshake and tool registration.vitest test/plugins/pluginRegistry.test.js- Validate plugin manifest loading and resource registration.
- Run
codeagent setupand test interactive REPL with new slash commands (/help,/plan,/compact). - Add a test
.codeagent/skills/orCODEAGENT.mdto verify auto-discovery in system prompt. - Test
codeagent --planand permission rules with destructive commands.