代码框架 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
代码框架 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
代码框架 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install codeframe
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install codeframe
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/frankbria/codeframe
cd codeframe
pip install -e .
# 验证安装
python -c "import codeframe; print('安装成功')"
# 命令行使用
codeframe --help
# 基本用法
codeframe input_file -o output_file
# Python 代码中调用
import codeframe
# 示例
result = codeframe.process("input")
print(result)
# codeframe 配置文件示例(config.yml) app: name: "codeframe" debug: false log_level: "INFO" # 运行时指定配置文件 codeframe --config config.yml # 或通过环境变量配置 export CODEFRAME_API_KEY="your-key" export CODEFRAME_OUTPUT_DIR="./output"
[!WARNING] Prerequisite: CodeFRAME requires anANTHROPIC_API_KEYfrom console.anthropic.com. Get your key before running anycfcommand.
---
The IDE of the future is not a better text editor with AI autocomplete. It is a project delivery system where writing code is a subprocess.
---
```bash
cf prd generate # AI-guided Socratic PRD creation cf prd generate --template lean # Use a specific template cf prd add <file.md> # Import existing PRD cf prd show # Display current PRD
export ANTHROPIC_API_KEY=sk-ant-...
THINK What are you building? How should it be broken down?
cf prd generate Socratic requirements gathering
cf prd stress-test Recursive decomposition, surface ambiguities
cf tasks generate Atomic tasks with dependency graphs
BUILD Delegate to the best coding agent for the job
cf work start --engine Claude Code, Codex, OpenCode, Kilocode, or built-in
CodeFRAME owns: verification gates, self-correction, stall detection
PROVE Is the output any good?
cf proof run 9-gate evidence-based quality system
cf proof capture Glitch becomes a permanent requirement
cf proof list All active proof obligations
cf proof status Summary across all gates
cf proof show <id> Requirement detail and evidence
cf proof waive <id> Waive a requirement with justification
SHIP Deploy with confidence
cf pr create PR with proof report attached
cf pr merge Only merges if proof passes
THE CLOSED LOOP
Glitch in production
-> cf proof capture
-> New requirement
-> Enforced on every future build
= Quality compounding interest
---
```bash
cf work replay)cf tui)Step 1 — Install
git clone https://github.com/frankbria/codeframe.git && cd codeframe
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv && source .venv/bin/activate && uv sync
uv run cf --help # smoke test — should print the command tree
Step 2 — Set your API key
export ANTHROPIC_API_KEY="sk-ant-..." # get yours at https://console.anthropic.com/
Step 3 — Initialize your project
uv run cf init /path/to/your/project --detect
Step 4 — Think: generate a PRD and tasks
uv run cf prd generate # AI-guided Socratic requirements discovery
uv run cf tasks generate # Decompose PRD into atomic tasks with dependencies
uv run cf tasks list # Review what was generated
Step 5 — Build, Prove, and Ship
uv run cf work batch run --all-ready # Execute all READY tasks (delegates to agent)
uv run cf proof run # Run PROOF9 quality gates
uv run cf pr create # Open a PR with proof report attached
That is the entire workflow. Everything else is optional.
---
```bash
export CODEFRAME_LLM_PROVIDER=openai # anthropic | openai (OpenAI-compatible) export CODEFRAME_LLM_MODEL=gpt-4o # model name for the chosen provider export OPENAI_API_KEY=sk-... # required when provider=openai export OPENAI_BASE_URL=http://localhost:11434/v1 # for Ollama, vLLM, LM Studio, etc.
export DATABASE_PATH=./codeframe.db # Default: in-memory SQLite export RATE_LIMIT_ENABLED=true # API rate limiting export RATE_LIMIT_DEFAULT=100/minute # Default limit ```
For server configuration, rate limiting options, and API key setup, see docs/PHASE_2_DEVELOPER_GUIDE.md.
All commands below assume the virtual environment is active (source .venv/bin/activate). If it is not active, prefix everycfcommand withuv run— e.g.,uv run cf init ..
cf prd stress-test -- Recursive decomposition that surfaces ambiguities before execution高质量的开源AI工作流项目,值得关注
该工具使用 AGPL-3.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ AGPL 3.0 — 最严格的 Copyleft,网络服务端使用也需开源,SaaS 使用受限。
经综合评估,代码框架 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | codeframe |
| 原始描述 | 开源AI工作流:Think → Build → Prove → Ship. The project delivery system that turns ideas into 。⭐14 · Python |
| Topics | AI工作流自动化 |
| GitHub | https://github.com/frankbria/codeframe |
| License | AGPL-3.0 |
| 语言 | Python |
收录时间:2026-06-12 · 更新时间:2026-06-12 · License:AGPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端