agentic-os-guide
Dependencies
This skill requires Python 3.8+ and standard library only. No external packages needed.
To install this skill's dependencies:
pip-compile ./requirements.in
pip install -r ./requirements.txt
See ../../requirements.txt for the dependency lockfile (currently empty — standard library only).
Agentic OS Guide
The core insight: LLMs are stateless functions. CLAUDE.md is the only file loaded by
default into every conversation. The Agentic OS pattern turns this constraint into a
full operating system metaphor.
| OS Concept | Agent Equivalent |
|---|---|
| Kernel | CLAUDE.md hierarchy (global -> org -> project -> local) |
| RAM | context/ folder (soul, user prefs, memory) |
| Disk | context/memory/YYYY-MM-DD.md dated session logs |
| Stdlib | skills/ procedural knowledge bundles |
| Processes | .claude/agents/ sub-agents with isolated context |
| Shell | .claude/commands/ slash commands |
| Cron | /loop + heartbeat.md scheduled background tasks |
| Boot | START_HERE.md + MEMORY.md bootstrap on session start |
Execution Flow
Execute these phases in order. Do not skip phases. This skill uses Progressive Disclosure. Load only what you need:
- For CLAUDE.md scope rules and precedence -> read
references/claude-md-hierarchy.md - For context/ folder patterns (soul.md, user.md, memory.md) -> read
references/context-folder-patterns.md - For /loop and heartbeat.md scheduling -> read
references/loop-scheduler.md - For sub-agents, hooks, auto-memory -> read
references/sub-agents-and-hooks.md - For memory hygiene (write/promote/archive rules) -> read
references/memory-hygiene.md - For the full canonical directory tree -> read
references/canonical-file-structure.md
Quick Orientation
Anthropic-Native vs Community-Layered
What Anthropic ships natively:
- CLAUDE.md layered discovery (global, org, project, local, subdirectory scopes - most specific wins)
- Auto-memory (
MEMORY.md) - Claude writes this itself with build commands, style prefs, architecture decisions /loopcommand for cron-style scheduling (up to 50 tasks per session, auto-expire after 3 days)- Agent Skills:
SKILL.md-based procedural knowledge bundles - Sub-agents in
.claude/agents/with isolated tool contexts
What the community layered on top:
context/soul.md,context/user.md,context/memory/{date}.mdfolder conventionsSTART_HERE.mdbootstrap prompt pattern- Lessons-learned -> update-skills-after-session loop
heartbeat.mdscheduled task definition files
Design Principle
Every line in
CLAUDE.mdcompetes for attention with actual work. Keep it under 300 lines. Focus on what Claude would get wrong without it. Use@import context/soul.mdto load identity on demand, not always.
Discovery: What Does the User Need?
Ask the user which aspect they need help with:
- Setting up a new Agentic OS from scratch -> read
references/canonical-file-structure.md, walk them through the setup - Understanding a specific layer (context/, hooks, /loop) -> load the matching reference file
- Memory management (what to record, promote, archive) -> invoke
session-memory-managerskill - Continuous Improvement (retrospectives, skill updates) -> invoke
os-learning-loopagent - Troubleshooting (context not loading, skills not triggering) -> read
references/claude-md-hierarchy.mdfor scope precedence
Next Actions
- For memory write/promote/archive decisions -> invoke
session-memory-manager - To orchestrate an end-to-end setup of a new environment -> run
agentic-os-setup - To perform a retrospective and improve the OS -> run
os-learning-loop - To add a scheduled heartbeat -> read
references/loop-scheduler.md
Mandatory Close: Friction Signal (Every Invocation)
After answering the user's question, emit a friction event for anything that was unclear, missing from the references, or required more turns than expected to explain:
# Only emit if friction was encountered — do not emit if explanation was clean
python3 context/kernel.py emit_event --agent agentic-os-guide \
--type friction --action encountered \
--summary "step:[which-reference] cause:[what-was-unclear]"
Then answer: What one addition to the guide references would have made this explanation
clearer or faster? Record the answer as a comment in the next session log or flag it
to os-learning-loop if the same gap appears across multiple sessions.
More from richfrem/agent-plugins-skills
markdown-to-msword-converter
Converts Markdown files to one MS Word document per file using plugin-local scripts. V2 includes L5 Delegated Constraint Verification for strict binary artifact linting.
52excel-to-csv
>
32zip-bundling
Create technical ZIP bundles of code, design, and documentation for external review or context sharing. Use when you need to package multiple project files into a portable `.zip` archive instead of a single Markdown file.
29learning-loop
(Industry standard: Loop Agent / Single Agent) Primary Use Case: Self-contained research, content generation, and exploration where no inner delegation is required. Self-directed research and knowledge capture loop. Use when: starting a session (Orientation), performing research (Synthesis), or closing a session (Seal, Persist, Retrospective). Ensures knowledge survives across isolated agent sessions.
26ollama-launch
Start and verify the local Ollama LLM server. Use when Ollama is needed for RLM distillation, seal snapshots, embeddings, or any local LLM inference — and it's not already running. Checks if Ollama is running, starts it if not, and verifies the health endpoint.
26spec-kitty-checklist
A standard Spec-Kitty workflow routine.
26