autonomOS
AGENTS.md9 starsChanged 2 months agoMITView on GitHub
autonomOS is a mission control platform for autonomous agents — a terminal dashboard that spawns Claude Code sessions, tracks their status via hook telemetry, and enables multi-agent coordination through a messaging gateway. Current state: Terminal dashboard + session management + hook relay + multi-agent gateway + MCP tools. The orchestrator/projects/workspaces model described below is the long-term vision, not yet implemented. Core concepts (future): - Orchestrator — PM agent, the main interface. Understands project goals, delegates to workspace agents, tracks progress.…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,691 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
20 rules. About 0 are common, 9 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Read README.md — project overview, monorepo structure
- Very specific: line 6
Read docs/FEATURES.md — feature specifications and design intent
- Very specific: line 8
Read docs/ROADMAP.md — current priorities and what to work on
- Very specific: line 9
Read docs/RESEARCH.md — research findings, competitor analysis, learnings
- Very specific: line 52
Every spawned session gets --settings with inline hook entries for all 13 Claude Code events.
- Very specific: line 75
Every autonomOS-spawned session gets --append-system-prompt with:
- Very specific: line 79
Use --append-system-prompt (preserves CC defaults + CLAUDE.md).
- Very specific: line 97
All research goes in docs/RESEARCH.md or docs/research/ subdirectories.
- Distinctive: line 98
Document what you found with links
- Very specific: line 125
Don't make architectural decisions without recording them in docs/decisions/ (make adr)
- Distinctive: line 126
Don't start building without checking ROADMAP.md for priorities
- Distinctive: line 127
Don't ignore existing research — check RESEARCH.md before investigating something
- Distinctive: line 128
Don't over-engineer for the robot path yet — it's aspirational
- Very specific: line 129
Don't define MCP tool schemas directly in mcp.ts or channel-server/index.ts — they go in mcp/tools.ts
- Distinctive: line 133
When working on this repo:
- Distinctive: line 134
Check ROADMAP.md — what's the current priority?
- Very specific: line 135
Check docs/decisions/ — has this been decided already?
- Distinctive: line 137
Update ROADMAP.md if priorities shifted
- Very specific: line 138
Add any new decisions to docs/decisions/ (make adr NEW="…")
- Distinctive: line 139
Update RESEARCH.md with any new findings
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
autonomOS — Agent Development Guide
Start Here
- Read
README.md— project overview, monorepo structure - Read
docs/FEATURES.md— feature specifications and design intent - Browse
docs/decisions/— all architectural decisions (one file per ADR, with an index) with context and rationale - Read
docs/ROADMAP.md— current priorities and what to work on - Read
docs/RESEARCH.md— research findings, competitor analysis, learnings
Project Vision
autonomOS is a mission control platform for autonomous agents — a terminal dashboard that spawns Claude Code sessions, tracks their status via hook telemetry, and enables multi-agent coordination through a messaging gateway.
Current state: Terminal dashboard + session management + hook relay + multi-agent gateway + MCP tools. The orchestrator/projects/workspaces model described below is the long-term vision, not yet implemented.
Core concepts (future):
- Orchestrator — PM agent, the main interface. Understands project goals, delegates to workspace agents, tracks progress.
- Projects — Logical goals with roadmaps. Can span multiple workspaces. Multiple projects per workspace.
- Workspaces — Physical repositories, auto-discovered. Each has active agent sessions.
Two paths that share a common core:
- Dev Path — control plane for agent tools (Claude Code, etc.)
- Robot Path — persistent agent platform for robotics (aspirational, future)
Monorepo Structure
autonomOS/
├── packages/
│ ├── dashboard/ # Web UI — observability & control
│ │ └── src/layout/ # dockview tabs + split panes (ADR-047, the only layout engine)
│ ├── server/ # Hono + node-pty — API, WebSocket, PTY management
│ │ ├── src/gateway/ # URI-based message router + platform adapters
│ │ ├── src/channel-server/ # Standalone MCP subprocess (server:autonomos)
│ │ └── src/mcp/ # Shared MCP tool definitions (used by both servers)
│ └── core/ # Shared agent abstractions & types
├── docs/
│ ├── decisions/ # Architectural Decision Records, one file per ADR (append-only)
│ ├── FEATURES.md # Feature specifications (F-001 through F-016)
│ ├── ROADMAP.md # Current priorities
│ ├── RESEARCH.md # Research findings & competitor analysis
│ ├── VISION.md # Project vision
│ └── research/ # Deep-dive research topics
├── CLAUDE.md # This file — agent development guide
└── README.md # Project overviewKey Systems
Hook Relay (--settings inline curl)
Every spawned session gets --settings with inline hook entries for all 13 Claude Code events. Each hook runs curl -d @- $AUTONOMOS_SERVER/api/hooks/$SESSION_ID. The server processes events for agent status tracking (deriveStatus() state machine) and notification generation (SendUserMessage, Stop, Notification, PermissionRequest).
Events: SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PostToolUseFailure, Stop, Notification, PermissionRequest, SubagentStart, SubagentStop, PreCompact, PostCompact, SessionEnd
Session Spawning Flags
Sessions are spawned with: --session-id (pre-generated UUID), --brief (enables SendUserMessage), --append-system-prompt (autonomOS context + MCP tool descriptions), --settings (hook relay), the agent's permission-mode flags (ADR-045 + ADR-061 — ask emits no flag, bypass emits --dangerously-skip-permissions), and optionally --dangerously-load-development-channels / --channels, and --mcp-config (channel server subprocess).
Auto-Trust
attachStartupWatcher() monitors PTY output for Claude Code's interactive trust prompts and auto-dismisses them. Watches for "Yes, I trust this folder" and "WARNING: Loading development channels" needles after ANSI stripping. Configurable via settings panel toggle (default: ON).
Agent Communication (URI-based)
Agents communicate through the gateway using one scheme: agent://name. There is no broadcast and there are no platform schemes — both were removed in ADR-064 because both reported success for messages that never arrived (broadcast:// ack'd unconditionally, even to a fleet of zero; slack://'s only adapter was a stub whose send() was a console.log).
send() succeeds only if the destination ACCEPTED the message — for Claude Code, the write landed on an open, registered channel-server socket; for Codex, the agent's app-server daemon replied to turn/start. It is NOT a receipt that the agent read it. Any other result explains why it did not arrive, and a message reported as not-yet-delivered is retried automatically — do not re-send it (a duplicate makes a Codex agent execute the same instruction twice).
MCP Tool Architecture
Tool definitions live in packages/server/src/mcp/tools.ts — shared between:
- HTTP MCP server (
mcp.ts) — served on the internal Unix control socket ($configDir/control.sock), NOT the public port (ADR-055); reachable only by same-user processes on the box, and still token-gated - Channel MCP server (
channel-server/) — for autonomOS-spawned CC sessions
Both servers expose: create_agent, list_agents, kill_agent, set_manager, get_org_chart, list_templates, create_template, self_exit, create_schedule, list_schedules, get_schedule, update_schedule, delete_schedule, run_schedule, list_env_presets, create_env_preset, update_env_preset, delete_env_preset. The channel server also has send (requires gateway WebSocket).
Base Context Injection
Every autonomOS-spawned session gets --append-system-prompt with:
- Base autonomOS context — "You are running inside autonomOS" + available tools
- Per-agent instructions (if provided via
create_agent's prompt/systemPrompt params)
Use --append-system-prompt (preserves CC defaults + CLAUDE.md). Use --system-prompt only for full override.
Key Conventions
Decision Records (CRITICAL)
Every architectural decision is its own file in docs/decisions/: ADR-NNN-<slug>.md, listed in the generated index docs/decisions/README.md. Start one with make adr NEW="Short title". It takes the next free number (checking origin/main AND open PRs) and writes a template. Don't append to docs/DECISIONS.md (it's a pointer stub now, and CI rejects entries there), and don't edit the index (a bot PR regenerates it after merge). Each entry must include:
- Date (YYYY-MM-DD) and Decided by (human vs agent)
- Context: why this decision was needed
- Decision: what was chosen
- Rationale: why this over alternatives
- Alternatives considered: what else was evaluated
- Source: where the decision happened (Discord channel, CC session, etc.)
The labels are exact (**Alternatives considered:**, not **Alternatives:**). make check, and therefore CI and the pre-push gate, rejects a new ADR that is missing a field, still holds a template TODO, or reuses a number.
Never delete or modify past entries; the migrated ones are hash-locked in docs/decisions/legacy-manifest.json. If a decision is reversed, add a new entry referencing the old one (an optional **Supersedes:** ADR-NNN field feeds the index). If two parallel PRs pick the same number, whoever merges later runs make adr-renumber FILE=docs/decisions/ADR-NNN-….md: one file changes, nothing else. A branch that still appended to the old docs/DECISIONS.md moves its entry with make adr-import REF=HEAD (steps in docs/decisions/README.md).
Research & Learnings
All research goes in docs/RESEARCH.md or docs/research/ subdirectories. When investigating competitors, frameworks, or approaches:
- Document what you found with links
- Note what's relevant to autonomOS
- Include your assessment (not just raw info)
Commit Messages
feat:— new featuresfix:— bug fixesperf:— performance improvementsrefactor:— structural changesdocs:— documentation changesresearch:— research findingsinit:— initial setup
Terminology
- UI says "agents" — sidebar, buttons, labels
- Code says "sessions" — types, APIs, server internals
- Both refer to the same entity — a managed CC PTY process
Session Naming
CC owns session names via JSONL customTitle. titleCache.ts reads them (256KB tail scan, mtime-cached). The --name flag sets the initial name at spawn. /rename updates it. The titleCache is more reliable than the SDK's listSessions() (which only reads 64KB).
Development Philosophy
- Personal tool first — ship for Terry, generalize later
- Both paths share core — abstractions should work for dev agents AND robots
What NOT to Do
- Don't make architectural decisions without recording them in
docs/decisions/(make adr) - Don't start building without checking ROADMAP.md for priorities
- Don't ignore existing research — check RESEARCH.md before investigating something
- Don't over-engineer for the robot path yet — it's aspirational
- Don't define MCP tool schemas directly in
mcp.tsorchannel-server/index.ts— they go inmcp/tools.ts
Agent Workflow
When working on this repo:
- Check ROADMAP.md — what's the current priority?
- Check
docs/decisions/— has this been decided already? - Do the work
- Update ROADMAP.md if priorities shifted
- Add any new decisions to
docs/decisions/(make adr NEW="…") - Update RESEARCH.md with any new findings
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

