CodeHelm An autonomous engine that steers software projects from idea to shipment.
CodeHelm is a local-first continuous engineering runtime. You provide a goal, and it plans tasks, splits features, executes implementation, runs validation, and persists state for long-running iteration.
Core loop:
PLAN -> IMPLEMENT -> RUN -> OBSERVE -> FIX -> COMMIT -> NEXT
Recommended setup (Windows PowerShell):
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -U pip setuptools wheel
python -m pip install -e .Quick check:
codehelm --helpStart interactive UI:
codehelmAlternatives:
caasys
python -m caasys.cliUse a dedicated folder per project.
mkdir E:\projects\my-agent-project
cd E:\projects\my-agent-project
codehelm init --objective "Build a stock assistant for CN A-share"
codehelm set-model --implementation-backend codex --model gpt-5.3-codex --reasoning-effort xhigh
codehelm interactiveThen type your task directly in the prompt.
All runtime state is written under --root.
Default --root is current directory ..
Persistent files include:
AGENT_STATUS.mdAGENT_POLICY.mdfeature_list.jsonprogress.log.caasys/state.json.caasys/policy.json
If you switch folders (or pass a different --root), state does not mix.
Prompt example:
codehelm>
The header always shows root=... so you can confirm where plan/state files are being written.
You can type task text directly, or use slash commands.
Common slash commands:
/help/model/model <model_id> [low|medium|high|xhigh]/language/language en|zh/agents [limit]/agents all [limit]/run/plan <task text>/mode single|parallel/auto on|off/verbose on|off/status/features/policy/clear/quit
Chinese aliases:
/帮助/模型/语言/进程/运行/计划/模式/自动/详细/状态/任务/策略/清屏/退出
Iteration mode prompt before loop:
1Auto stop decision (recommended)2Manual max iterations
Planning default in interactive mode:
- New planned features default to
parallel_safe=true - Disable with
--no-parallel-safe
Backend behavior:
codex: use Codex for implementationshell: use implementation commands in featuresauto: shell when implementation commands exist, otherwise codex
Set model/backend:
codehelm set-model --implementation-backend codex --model gpt-5.3-codex --reasoning-effort xhighFor new roots, codex_skip_git_repo_check defaults to true to avoid trusted-directory blocking.
Initialize and inspect:
codehelm --root . init --objective "Ship milestone 1"
codehelm --root . status
codehelm --root . features
codehelm --root . policyPlan and run:
codehelm --root . plan-task --task-id T-001 --description "Build user auth and dashboard"
codehelm --root . iterate
codehelm --root . iterate-parallel --teams 2 --max-features 2
codehelm --root . run-project --mode parallel --teams 2 --max-iterations 10Process view:
codehelm --root . agents
codehelm --root . agents --all --limit 80Quality gate:
codehelm --root . quality-gate
codehelm --root . quality-gate --dry-runBrowser validation:
codehelm --root . browser-validate --url http://127.0.0.1:3000 --backend http --expect-text "Dashboard"OSWorld run:
codehelm --root . osworld-run --backend auto --steps-file examples/osworld_steps.sample.json --dry-runcodehelm --root . serve --host 127.0.0.1 --port 8787Endpoints:
GET /healthGET /statusGET /policyGET /quality-gatePOST /iteratePOST /iterate-parallelPOST /run-projectPOST /browser-validatePOST /osworld-runPOST /plan-taskPOST /set-model
If it still runs in old folder:
- Check your shell alias/function for hardcoded
--root - Or always run with explicit root:
codehelm --root E:\projects\new-one interactiveIf you see quality_gate_failed:
codehelm --root . quality-gateThen fix reported failures.
If a task was planned in wrong folder and the folder is a git repo:
git restore -- AGENT_STATUS.md AGENT_POLICY.md feature_list.json progress.logpython -m unittest discover -s tests -p "test_*.py" -v.
|- src/caasys/
| |- agents.py
| |- browser.py
| |- cli.py
| |- engine.py
| |- models.py
| |- orchestrator.py
| |- server.py
| `- storage.py
|- tests/
|- AGENT_STATUS.md
|- AGENT_POLICY.md
|- feature_list.json
|- progress.log
`- .caasys/
- Package/module name remains
caasys(compatibility) - Product and CLI title are
CodeHelm
Before publishing, review and update:
LICENSE(MIT)CONTRIBUTING.mdCODE_OF_CONDUCT.mdSECURITY.md.github/workflows/ci.yml.github/ISSUE_TEMPLATE/.github/pull_request_template.md
If your GitHub org/user and contact addresses differ, replace placeholders:
https://github.com/Polealpha/CodeHelmpolealpha@163.compolealpha@163.com
CodeHelm 是一个本地优先(local-first)的持续构建系统。你输入目标,它会自动规划任务、拆分特性、分配执行、运行验证,并把过程状态持久化,支持跨会话续跑。
核心循环:
PLAN -> IMPLEMENT -> RUN -> OBSERVE -> FIX -> COMMIT -> NEXT
推荐方式(Windows PowerShell):
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -U pip setuptools wheel
python -m pip install -e .快速检查:
codehelm --help启动交互界面:
codehelm备用命令:
caasys
python -m caasys.cli建议每个项目单独目录运行,避免状态污染。
mkdir E:\projects\my-agent-project
cd E:\projects\my-agent-project
codehelm init --objective "Build a stock assistant for CN A-share"
codehelm set-model --implementation-backend codex --model gpt-5.3-codex --reasoning-effort xhigh
codehelm interactive进入交互后可直接输入任务文本。
CodeHelm 所有运行状态都写在 --root 指向目录。
默认 --root 是当前目录 .。
常见状态文件:
AGENT_STATUS.mdAGENT_POLICY.mdfeature_list.jsonprogress.log.caasys/state.json.caasys/policy.json
换目录或切换 --root 后,状态互不影响。
提示符示例:
codehelm>
顶部常驻栏会显示 root=...,可直接确认当前写入目录。
你可以直接输入任务,也可用 slash 命令。
常用命令:
/help/model/model <model_id> [low|medium|high|xhigh]/language/language en|zh/agents [limit]/agents all [limit]/run/plan <task text>/mode single|parallel/auto on|off/verbose on|off/status/features/policy/clear/quit
中文别名:
/帮助/模型/语言/进程/运行/计划/模式/自动/详细/状态/任务/策略/清屏/退出
执行循环前会询问迭代模式:
1自动判停(推荐)2手动输入最大迭代次数
交互模式下,规划默认:
- 新特性默认
parallel_safe=true - 可用
--no-parallel-safe关闭
后端策略:
codex:走 Codex 执行实现shell:优先执行 feature 中 implementation commandsauto:有 implementation commands 用 shell,否则 codex
设置示例:
codehelm set-model --implementation-backend codex --model gpt-5.3-codex --reasoning-effort xhigh新目录默认启用 codex_skip_git_repo_check=true,避免首次运行被 trusted-directory 检查拦截。
初始化与查看:
codehelm --root . init --objective "Ship milestone 1"
codehelm --root . status
codehelm --root . features
codehelm --root . policy规划与执行:
codehelm --root . plan-task --task-id T-001 --description "Build user auth and dashboard"
codehelm --root . iterate
codehelm --root . iterate-parallel --teams 2 --max-features 2
codehelm --root . run-project --mode parallel --teams 2 --max-iterations 10进程查看:
codehelm --root . agents
codehelm --root . agents --all --limit 80门禁检查:
codehelm --root . quality-gate
codehelm --root . quality-gate --dry-runBrowser Validate:
codehelm --root . browser-validate --url http://127.0.0.1:3000 --backend http --expect-text "Dashboard"OSWorld:
codehelm --root . osworld-run --backend auto --steps-file examples/osworld_steps.sample.json --dry-runcodehelm --root . serve --host 127.0.0.1 --port 8787接口:
GET /healthGET /statusGET /policyGET /quality-gatePOST /iteratePOST /iterate-parallelPOST /run-projectPOST /browser-validatePOST /osworld-runPOST /plan-taskPOST /set-model
换目录后仍跑到旧目录:
- 检查 shell 别名/函数是否写死了
--root - 或直接显式指定:
codehelm --root E:\projects\new-one interactive出现 quality_gate_failed:
codehelm --root . quality-gate根据输出修复。
误在错误目录规划任务(且目录是 git 仓库):
git restore -- AGENT_STATUS.md AGENT_POLICY.md feature_list.json progress.logpython -m unittest discover -s tests -p "test_*.py" -v.
|- src/caasys/
| |- agents.py
| |- browser.py
| |- cli.py
| |- engine.py
| |- models.py
| |- orchestrator.py
| |- server.py
| `- storage.py
|- tests/
|- AGENT_STATUS.md
|- AGENT_POLICY.md
|- feature_list.json
|- progress.log
`- .caasys/
- Python 包名仍为
caasys(兼容历史) - 产品与 CLI 标题为
CodeHelm
发布前请确认并按需修改:
LICENSE(MIT)CONTRIBUTING.mdCODE_OF_CONDUCT.mdSECURITY.md.github/workflows/ci.yml.github/ISSUE_TEMPLATE/.github/pull_request_template.md
如果你的 GitHub 组织/用户名和联系邮箱不同,请替换占位符:
https://github.com/Polealpha/CodeHelmpolealpha@163.compolealpha@163.com