Castorcoder — AI skill for Claude Code
Observable, workspace-safe Claude Code-style AI coding agent (improved from he-yufeng/CastorCoder).
How to install Castorcoder
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open bingyulove99-ai/castorcoder and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Castorcoder does
Observable, workspace-safe Claude Code-style AI coding agent (improved from he-yufeng/CastorCoder).
Alternatives in AI
- OpenBridge — A free, safe and open agent for everything 430 ★
- Svelte Markdown — 📝 Markdown and HTML renderer for Svelte 5 — built for streaming AI agent output from Claude Code, ChatGPT, an 131 ★
- SwiftAgent — A type-safe, declarative AI agent framework for Swift 100 ★
README
CastorCoder
一个可观测、工作区安全、仍然读得懂的 Claude Code 风格编程 Agent。
**来源说明**:本项目是基于 [he-yufeng/CastorCoder](https://github.com/he-yufeng/CastorCoder) 的改进版本,由个人维护,**不是**上游官方仓库。原作者署名与 MIT License 均予以保留。 详见 [许可与来源](#许可与来源)。
[](https://www.python.org/) [](LICENSE) [](#验证与实测) [](#验证与实测) [](CHANGELOG.md)
[更新日志](CHANGELOG.md) · [评测数据集](evals/datasets/README.md)
目录
- 项目简介
- 核心特性
- 安装
- 快速上手
- 命令行参考
- 会话内命令
- 配置参考
- 权限与安全模型
- Skills 与项目指令
- MCP 工具生态
- 代码索引与混合检索
- 长期记忆
- 开发者驾驶舱
- 确定性工作流与发布门禁
- 作为 Python 库使用
- 架构说明
- 验证与实测
- 开发与贡献
- 常见问题
- 已知边界
- 许可与来源
项目简介
CastorCoder 是一个运行在终端里的 AI 编程 Agent。它保留 Claude Code 最核心的反馈循环:
用户输入 → 模型推理 → 工具调用 → 本地执行 → 结果回填 → 继续推理 → 最终回答
在这个主循环之外,CastorCoder 补齐了真实仓库里绕不开的工程能力:工作区安全边界、实例级工具注册、权限策略、并发调度、上下文压缩、代码索引、长期记忆、会话持久化、结构化追踪、成本与轮次保护、本地可复现评测,以及发布门禁。
它既是可以直接使用的编程助手,也是一个结构清晰、可审计、可扩展的 Agent 系统实现:
- 想直接用它干活:安装后配置模型即可在任意仓库中对话、读代码、改文件、跑测试。
- 想研究 Agent 工程:每个关注点都有独立模块和对应测试,便于逐层阅读。
- 想二次开发:工具、模型、策略、检索后端、MCP Server 都有明确扩展点。
项目要求 **Python 3.10–3.13**,支持 Windows、macOS 和 Linux。
核心特性
安全与权限
- 工作区边界:所有内置文件工具都从固定根目录解析路径,默认拒绝
..、绝对路径与符号链接逃逸。 - 三档权限策略:
plan、workspace、full_access在 Python 工具代码执行前统一判定;full_access必须显式开
Related Skills
Udctl
udctl (UnDercontrol) is a self-hostable workspace for tasks, notes and expenses, with a kubectl-style CLI (ud)
Argus Agent
Argus is a production-style single AI agent that lives in your Slack workspace and can search and read your Go
Haze
Lightweight, AI-first desktop workspace for coding alongside agents like Claude Code and Codex. Rider-style pr
Traceplane
Multi-Agent Continuity Layer — Keep your AI agents on a single, observable, handoff-ready work thread
Blueclaw
Observable AI agent runtime with built-in execution tracing. Inspect, replay, diff, and debug agent behavior s
Little Mungbean
A free, lightweight AI gateway manager that lets Codex and Claude clients share a switchable, observable local
Related Agents
Goal Coder
Scoped source research, verification, or coding through admitted Goal workspace tools only.
Webship Workspace Agents
Use this agent to back up, clean up, or maintain AI agent definition repos inside ~/workspace/agents/ (e.g. de
Survey Translator
Translate ONE chunk of the survey into the target language with the workspace's style guide and glossary, leav