code/chef——你的人工智能开发团队
   
与你的代码对话。船更快。
code/chef是一个生活在VS code中的AI驱动的开发团队。只需键入 @chef 在Copilot Chat中,描述您想要什么——功能实现、代码审查、基础设施设置、CI/CD管道或文档。AI团队处理其余的事情。
______________________________________________________________________
🎮 指挥结构
code/chef支持两种交互模式:
💬 提问模式(对话)
与AI自然聊天,无需任何命令。非常适合提问、解释和讨论。
@chef how does authentication work in this codebase?
@chef what's the best way to structure this feature?
@chef explain this code to me⚡ 代理模式(任务执行)
使用 /execute 用于需要实际工作的任务。创建用于跟踪的线性问题。
@chef /execute implement JWT authentication
@chef /execute review security of auth/login.py
@chef /execute deploy to staging environment可用命令:
/execute--提交任务以供代理执行(创建线性问题)/help--显示命令参考/status--检查工作流状态/cancel--取消正在运行的工作流
💡 小贴士:如果你忘了使用 /execute 对于一个任务,code/chef会提醒你!
迁移指南: 命令门控迁移
______________________________________________________________________
✨ 代码/厨师能做什么?
🚀 构建功能
@chef /execute Add user authentication with JWT tokens and password resetFeature Dev代理编写带有测试的生产就绪代码。
🔍 评审代码
@chef /execute Review this PR for security vulnerabilitiesCode Review代理分析安全问题、性能和最佳实践。
🏗️ 设置基础设施
@chef /execute Create a Docker Compose setup for my Node.js app with PostgreSQLInfrastructure代理生成Dockerfiles、组合文件和Terraform配置。
⚡ 自动化管道
@chef /execute Create a GitHub Actions workflow for testing and deploymentCI/CD代理跨GitHub Actions、GitLab CI、Jenkins等构建您的管道。
📚 编写文档
@chef /execute Document the API endpoints in this codebase文档代理创建README文件、API文档和体系结构图。
🤖 训练和部署模型(ModelOps)
@chef /execute Train a fine-tuned model for the Feature Dev agentInfrastructure代理处理完整的模型生命周期:
- 训练:通过HuggingFace AutoTrain对代码库中的模型进行微调
- 评估:使用5个指标(准确性、完整性、效率、延迟、集成度)将候选人与基线进行比较
- 部署:使用自动回滚安全更新代理模型
- A/B测试:通过全面的实验跟踪来衡量改进情况
VS代码命令:
codechef.modelops.train--使用成本估算启动培训向导codechef.modelops.evaluate--使用LangSmith评估模型性能codechef.modelops.deploy--将模型部署到代理(30秒流程)codechef.modelops.rollback--回滚到以前的版本(\ Supervisor
Supervisor --> FeatureDev Supervisor --> CodeReview Supervisor --> CICD Supervisor --> Infra Supervisor --> Docs
FeatureDev --> Tools CodeReview --> Tools CICD --> Tools Infra --> Tools Docs --> Tools
Tools --> GitHub Tools --> Linear Tools --> Docker Tools --> Metrics
______________________________________________________________________
## 🚀 2分钟后开始
### 安装VS代码扩展
> **⚠️ 需要认证**:此扩展的访问是通过GitHub Packages控制的,以防止未经授权的LLM使用,直到实现计量账户。
**通过npx安装** (需要GitHub令牌 `read:packages` 范围):
Setup authentication (first time only)
echo "@appsmithery:registry=https://npm.pkg.github.com" >> ~/.npmrc echo "//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN" >> ~/.npmrc
Install extension
npx @appsmithery/vscode-codechef
**替代**:从下载VSIX 并手动安装。
看 [快速入门指南](support/docs/getting-started/QUICK_START.md) 对于自托管选项。
______________________________________________________________________
## 💬 对话示例
### 功能开发
You: @chef Build a REST API for managing blog posts with CRUD operations
Chef: I'll create a complete blog API with:
- Express routes for posts (GET, POST, PUT, DELETE)
- PostgreSQL database schema
- Input validation
- Error handling
- Unit tests
[Creates files, runs tests, opens PR]
### 代码审查
You: @chef Check my authentication code for security issues
Chef: I found 3 issues: 🔴 Critical: Password stored in plain text (line 45) 🟡 Warning: Missing rate limiting on login endpoint 🟢 Suggestion: Consider adding CSRF protection
[Links to specific lines with fix suggestions]
### 基础设施设置
You: @chef Set up Kubernetes deployment for my microservices
Chef: I'll create:
- Deployment manifests for each service
- ConfigMaps and Secrets
- Horizontal Pod Autoscaler
- Ingress configuration
[Generates YAML files with best practices]
______________________________________________________________________
## 🔧 斜杠命令
|命令|它的作用|
| ------------------------ | ---------------------------- |
| `@chef ` |执行任何开发任务|
| `@chef /status` |检查当前任务进度|
| `@chef /workflow ` |运行特定工作流|
| `@chef /tools` |查看可用集成|
______________________________________________________________________
## 🔌 集成
code/chef连接到您现有的工具:
- **GitHub** --PR、问题、行动
- **线性** --项目管理、审批
- **码头工人** --集装箱管理
- **数据库** --PostgreSQL、Redis
- **云** --AWS数字海洋(即将推出)
______________________________________________________________________
## 🏢 自我寄宿
想要完全控制?运行自己的代码/chef实例。
git clone https://github.com/Appsmithery/code-chef.git cd code-chef && cp config/env/.env.template config/env/.env
Add your API keys to .env
cd deploy && docker-compose up -d
看 [快速入门指南](support/docs/getting-started/QUICK_START.md) 详细设置。
______________________________________________________________________
## 📖 文档
|指南|说明|
| ---------------------------------------------------------------------- | --------------------------- |
| [快速开始](support/docs/getting-started/QUICK_START.md) |安装和第一步|
| [建筑](support/docs/architecture-and-platform/ARCHITECTURE.md) |引擎盖下的工作原理|
| [部署](support/docs/getting-started/DEPLOYMENT.md) |生产设置|
______________________________________________________________________
## 🤝 贡献
1. 分叉存储库
1. 创建要素分支: `git checkout -b feature/amazing-feature`
1. 提交更改: `git commit -m 'Add amazing feature'`
1. 推: `git push origin feature/amazing-feature`
1. 打开拉取请求
______________________________________________________________________
## 📄 许可证
MIT许可证——见 [许可证](LICENSE)
______________________________________________________________________
## 🔗 链接
- [VS代码扩展](https://marketplace.visualstudio.com/items?itemName=appsmithery.vscode-codechef)
-
- [线性项目](https://linear.app/dev-ops/project/codechef-78b3b839d36b)
- [LangSmith痕迹](https://smith.langchain.com)
- [Grafana指标](https://appsmithery.grafana.net)
______________________________________________________________________
**内置于** ❤️ **使用LangGraph、MCP和VS代码**