架构¶
组件¶
scripts/contextdb-shell.zsh:接管codex/claude/geminiscripts/ctx-agent.sh:统一运行器mcp-server/src/contextdb/*:ContextDB 核心与 CLI
运行链路¶
用户命令
-> zsh wrapper
-> ctx-agent.sh
-> contextdb CLI
-> 启动原生 CLI(注入 context)
作用域控制¶
all:所有 git 项目启用repo-only:仅ROOTPATH项目启用opt-in:仅含.contextdb-enable的项目启用off:关闭包装