Planning-with-Files部署与配置:从开发到生产的最佳实践
【免费下载链接】planning-with-filesPersistent file-based planning for AI coding agents and long-running agentic tasks. Crash-proof markdown plans that survive context loss and /clear, plus a deterministic completion gate and multi-agent shared state on disk. Manus-style. Works with Claude Code, Codex CLI, Cursor, Kiro, OpenCode and 60+ agents via the SKILL.md standard.项目地址: https://gitcode.com/GitHub_Trending/pl/planning-with-files
Planning-with-Files是一个基于Manus AI工作流模式的Claude Code技能,通过三文件系统实现持久化规划与知识管理。这个价值20亿美元收购背后的工作流模式,能够帮助AI代理解决上下文丢失、目标漂移和错误重复等核心问题。🚀
为什么选择Planning-with-Files?
在AI代理开发中,我们经常面临上下文管理的挑战。Planning-with-Files通过文件系统作为持久化存储,实现了真正的"磁盘工作内存"。根据项目数据,该模式在8个月内帮助Manus AI实现了从启动到1亿美元+收入的惊人增长。
核心优势
- 持久化记忆:规划文件在磁盘上永久保存
- 自动目标追踪:通过hooks机制保持目标在注意力窗口中
- 错误智能处理:3次尝试协议防止重复失败
- 多会话支持:5问题重启测试确保上下文完整
快速安装指南
方法一:Claude Code插件安装(推荐)
/plugin marketplace add OthmanAdi/planning-with-files /plugin install planning-with-files@planning-with-files方法二:手动安装
mkdir -p .claude/plugins git clone https://gitcode.com/gh_mirrors/pl/planning-with-files.git .claude/plugins/planning-with-files方法三:Cursor集成
git clone https://gitcode.com/gh_mirrors/pl/planning-with-files.git cp -r planning-with-files/.cursor .cursor三文件系统配置详解
1. task_plan.md - 任务规划核心
位置:项目根目录用途:定义任务阶段、追踪进度、记录决策
关键配置:
- 定义3-7个可完成的阶段
- 设置状态:pending → in_progress → complete
- 记录所有技术决策和错误
2. findings.md - 知识发现库
位置:项目根目录
用途:存储研究结果、技术决策和重要发现
2-Action规则:每2次浏览/搜索操作后必须更新此文件
3. progress.md - 会话日志
位置:项目根目录用途:详细记录每个阶段的行动、测试结果和错误日志
生产环境部署策略
开发阶段配置
在开发环境中,建议使用完整的hooks功能:
# 初始化所有规划文件 ./scripts/init-session.sh # 验证完成状态 ./scripts/check-complete.sh生产环境最佳实践
文件位置管理
- 规划文件必须创建在项目目录中
- 避免在技能安装目录中创建文件
错误处理协议
- 第1次尝试:诊断和修复
- 第2次尝试:采用不同方法
- 第3次尝试:重新思考整体方案
会话恢复机制
- 实施5问题重启测试
- 维护完整的错误时间戳记录
高级配置技巧
Hooks自动化配置
Planning-with-Files v2.0.0引入了强大的hooks系统:
- PreToolUse Hook:在执行Write/Edit/Bash操作前自动读取task_plan.md
- Stop Hook:在停止前验证所有阶段是否完成
模板定制化
项目提供了完整的模板系统:
- skills/planning-with-files/templates/task_plan.md
- skills/planning-with-files/templates/findings.md
- skills/planning-with-files/templates/progress.md
性能优化建议
内存管理
- 避免在上下文中存储大量内容
- 利用findings.md作为外部知识库
- 定期更新progress.md保持会话连续性
常见问题解决方案
文件位置错误
问题:规划文件创建在技能安装目录而非项目目录
解决方案:
- 明确指定项目路径
- 在项目根目录创建CLAUDE.md文件
- 使用技能时提供完整上下文信息
Hooks不触发
问题:PreToolUse hook未按预期运行
排查步骤:
- 确认Claude Code版本为v1.0.18+
- 验证技能安装路径正确
- 检查task_plan.md文件存在性
版本升级策略
从v1.0.0升级到v2.0.0:
- 新增hooks自动化功能
- 增强的模板系统
- 改进的错误处理协议
监控与维护
建立完整的监控体系:
- 定期检查规划文件完整性
- 验证hooks功能正常运行
- 维护错误日志的时效性
通过遵循这些最佳实践,Planning-with-Files能够在开发和生产环境中提供稳定可靠的AI代理规划支持。🎯
【免费下载链接】planning-with-filesPersistent file-based planning for AI coding agents and long-running agentic tasks. Crash-proof markdown plans that survive context loss and /clear, plus a deterministic completion gate and multi-agent shared state on disk. Manus-style. Works with Claude Code, Codex CLI, Cursor, Kiro, OpenCode and 60+ agents via the SKILL.md standard.项目地址: https://gitcode.com/GitHub_Trending/pl/planning-with-files
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考