ARTICLE · INTELLIGENCE

战地情报 · 详情页

来自尧图项目组的一线实战观察与深度解析

PM2 Services

PM2 Services PM2 Services【免费下载链接】ECCThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.项目地址: https://gitcode.com/GitHub_Trending/ev/ECCPortNameType{port}{name}{type}Terminal Commands:pm2 start ecosystem.config.cjs # First time pm2 start all # After first time pm2 stop all / pm2 restart all pm2 start {name} / pm2 stop {name} pm2 logs / pm2 status / pm2 monit pm2 save # Save process list pm2 resurrect # Restore saved list更新规则 - 若 CLAUDE.md 中已存在 ## PM2 Services 章节直接替换 - 若不存在追加到文件末尾 - 内容保持精简只保留端口/名称/类型表格与常用命令。 这一步的意义在于后续任何 Claude Code 会话都能从 CLAUDE.md 中立即获知项目的进程管理布局无需重新扫描。 ### 8.3 完成摘要输出 初始化完成后命令输出如下摘要示意PM2 Init CompleteServices:PortNameType{port}{name}{type}Claude Commands:/pm2-all, /pm2-all-stop, /pm2-{port}, /pm2-{port}-stop, /pm2-logs, /pm2-statusTerminal Commands:First time (with config file)pm2 start ecosystem.config.cjs pm2 saveAfter first time (simplified)pm2 start all # Start all pm2 stop all # Stop all pm2 restart all # Restart all pm2 start {name} # Start single pm2 stop {name} # Stop single pm2 logs # View logs pm2 monit # Monitor panel pm2 resurrect # Restore saved processesTip:Runpm2 saveafter first start to enable simplified commands.其中关键提示是**首次启动后务必执行 pm2 save**将进程列表持久化之后才能使用 pm2 start all / pm2 resurrect 等简化命令。 --- ## 九、仓库中的横向佐证PM2 在 ECC 体系中的更多用法 PM2 的能力在 ECC 仓库中并不局限于本命令。[skills/agentic-os/SKILL.md](https://link.gitcode.com/i/4c4206a9397a1c1c3f09478827fdf559) 在跨平台定时任务一节给出了另一类 PM2 用法——用 cron_restart 调度 Agent 任务 javascript // ecosystem.config.js module.exports { apps: [{ name: agentic-daily-sync, script: claude, args: --cwd /path/to/project --command /daily-sync, cron_restart: 0 8 * * *, autorestart: false }] };【免费下载链接】ECCThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.项目地址: https://gitcode.com/GitHub_Trending/ev/ECC创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
RELATED READING

延伸阅读

更多一线实战笔记与深度复盘,助您持续精进