agentic-os
它能做什么
这套系统让你为 Claude Code 构建一个“操作系统”。它把 AI 组织成不同的专业“代理”,比如程序员或作家,并管理它们如何协作完成复杂任务。它还能让 AI 在多次对话之间记住信息,并自动运行任务。
适用场景
- ✓当你希望 AI 能跨越不同对话记住信息时。
- ✓当你想把 AI 组织成专业团队来完成复杂任务时。
- ✓当你希望 AI 在设定好的时间自动执行重复性任务时。
技能链接
https://github.com/affaan-m/ECC/blob/main/skills/agentic-os/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“搭建一个 AI 系统:由一个编程代理修复 bug,由一个写作代理编写文档。”
每周 5 个新技能,1 分钟读完。
工作原理
系统使用一个主文件(即“内核”,kernel)来决定由哪个专业代理负责任务的每个部分。每个代理都有自己的指令,并可以访问“记忆”(也就是文件),用来存储信息和进度。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agentic OS
Treat Claude Code as a persistent runtime / operating system rather than a chat session. This skill codifies the architecture used by production agentic setups: a kernel config that routes tasks to specialist agents, persistent file-based memory, scheduled automation, and a JSON/markdown data layer.
When to Activate
- Building a multi-agent workflow inside Claude Code
- Setting up persistent Claude Code automation that survives session restarts
- Creating a "personal OS" or "agentic OS" for recurring tasks
- User says "agentic OS", "personal OS", "multi-agent", "agent coordinator", "persistent agent"
- Structuring long-running projects where context must survive across sessions
Architecture Overview
The Agentic OS has four layers. Each layer is a directory in your project root.
project-root/
├── CLAUDE.md # Kernel: identity, routing rules, agent registry
├── agents/ # Specialist agent definitions (markdown prompts)
├── .claude/commands/ # Slash commands: user-facing CLI
├── scripts/ # Daemon scripts: scheduled or event-driven tasks
└── data/ # State: JSON/markdown filesystem, no external DB
Layer Responsibilities
| Layer | Purpose | Persistence |
|---|---|---|
Kernel (CLAUDE.md) |
Identity, routing, model policies, agent registry | Git-tracked |
Agents (agents/) |
Specialist identities with scoped tools and memory | Git-tracked |
Commands (.claude/commands/) |
User-facing slash commands (/daily-sync, /outreach) |
Git-tracked |
Scripts (scripts/) |
Python/JS daemons triggered by cron or webhooks | Git-tracked |
State (data/) |
Append-only logs, project state, decision records | Git-ignored or tracked |
The Kernel
CLAUDE.md is the kernel. It acts as the COO / orchestrator. Claude reads it at session start and uses it to route work.
Kernel Structure
# CLAUDE.md - Agentic OS Kernel
## Identity
You are the COO of [project-name]. You route tasks to specialist agents.
You never write code directly. You delegate to the right agent and synthesize results.
## Agent Registry
| Agent | Role | Trigger |
|---|---|---|
| @dev | Code, architecture, debugging | User says "build", "fix", "refactor" |
| @writer | Documentation, content, emails | User says "write", "draft", "blog" |
| @researcher | Research, analysis, fact-checking | User says "research", "analyze", "compare" |
| @ops | DevOps, deployment, infrastructure | User says "deploy", "CI", "server" |
## Routing Rules
1. Parse the user request for intent keywords
2. Match to the Agent Registry trigger column
3. Load the corresponding agent file from `agents/<name>.md`
4. Hand off execution with full context
5. Synthesize and present the result back to the user
## Model Policies
- Default model: use the repository or harness default.
- @dev tasks: prefer a higher-reasoning model for complex architecture.
- @researcher tasks: use the configured research-capable model and approved search tools.
- Cost ceiling: warn before exceeding the project's configured spend threshold.
Key Principle
The kernel should be small and declarative. Routing logic lives in plain markdown tables, not code. This makes the system inspectable and editable without debugging.
Specialist Agents
Each agent is a standalone markdown file in agents/. Claude loads the relevant agent file when routing a task.
Agent Definition Format
# @dev - Software Engineer
## Identity
You are a senior software engineer. You write clean, tested, production-grade code.
You prefer simple solutions. You ask clarifying questions when requirements are ambiguous.
## Memory Scope
- Read `data/projects/<current-project>.md` for context
- Read `data/decisions/` for architectural decisions
- Append execution logs to `data/logs/<date>-@dev.md`
## Tool Access
- Full filesystem access within project root
- Git operations (status, diff, commit, branch)
- Test runner access
- MCP servers as configured in `.claude/mcp.json`
## Constraints
- Always write tests for new features
- Never commit directly to `main`; use feature branches
- Prefer editing existing files over creating new ones
- Keep functions under 50 lines when possible
Multi-Agent Collaboration Pattern
When a task spans multiple agents, the kernel runs them sequentially or in parallel:
User: "Build a landing page and write the launch blog post"
Kernel routing:
…
常见问题
什么是“代理”?
代理就像 AI 内部的专家。例如,一个代理擅长写代码,另一个擅长写文字,还有一个擅长做调研。
“持久化”是什么意思?
意思是 AI 能够记住信息。即使你关闭后再重新打开对话,它也能接着之前的工作继续下去,这一点和普通操作系统很像。
AI 是怎么“记住”东西的?
它会把重要信息,比如项目进度或做过的决定,存放在你电脑上的文件里,而不是只依赖当前对话的记忆。
详情
作者的原始描述
Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #261
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。