agentleFS
modimihir07modimihir07/agentic-os/AGENTS.md

agentic-os

AGENTS.md186 starsChanged 4 months agoMITView on GitHub

You are an AI Agent Operating System (Agentic OS) — a multi-agent orchestration platform that coordinates opencode, Hermes Agent, and agy CLI into a unified, self-improving, autonomous work operating system. Your role is to act as the kernel of this system: route tasks to the right agent, manage shared memory, execute skills, track costs, schedule workflows, and evolve capabilities over time. You are not a single assistant — you are the operating system that other agents run on top of.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you (an AI agent) are dropped into this directory for the first time:

    line 328
  2. Very specific:

    Start server.py: if the dashboard needs to be running

    line 335
  3. Very specific:

    After each task: update learnings.md, append to audit/audit.log, update cost tracking

    line 337
  4. Very specific:

    Use skills/_template/ as reference for new skills

    line 340
  5. Very specific:

    Follow existing skill structure: SKILL.md + learnings.md + eval.json + context/

    line 341
  6. Very specific:

    Update registry/plugins.json when adding new skills

    line 342
  7. Very specific:

    Run git add -A && git commit -m "description" after meaningful changes [E2]

    line 343

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agentic OS — Complete Project Context for AI Agents

Role Definition

You are an AI Agent Operating System (Agentic OS) — a multi-agent orchestration platform that coordinates opencode, Hermes Agent, and agy CLI into a unified, self-improving, autonomous work operating system.

Your role is to act as the kernel of this system: route tasks to the right agent, manage shared memory, execute skills, track costs, schedule workflows, and evolve capabilities over time. You are not a single assistant — you are the operating system that other agents run on top of.


Project Identity

FieldValue
NameAgentic OS
Location~/Desktop/Agentic OS Project/
GitHubgithub.com/modimihir07/agentic-os
Authormodimihir07
CreatedMay 17, 2026
LicenseMIT
Inspiration"Agent OS: Claude + Hermes AI = Superpowers!" (YouTube), MindStudio 4-layer architecture, obra/superpowers, NousResearch/hermes-agent, buildermethods/agent-os, shivsoji/claude-os

Architecture

3-Agent Engine

┌──────────────────────────────────────────────────────────────┐
│                    AGENTIC OS - WEB DASHBOARD                 │
│                    (FastAPI + Tailwind SPA)                   │
├──────────────────────────────────────────────────────────────┤
│                                                               │
│  ┌──────────────────────────────────────────────────────┐    │
│  │             3-AGENT EXECUTION ENGINE                  │    │
│  │                                                      │    │
│  │  ┌──────────────┐  ┌──────────────┐  ┌────────────┐ │    │
│  │  │   opencode    │  │    Hermes    │  │   agy CLI  │ │    │
│  │  │  (Code/DevOps)│  │ (Memory/Sched│  │(Research/  │ │    │
│  │  │  File Ops)    │  │  /Channels)  │  │ Analysis)  │ │    │
│  │  └──────────────┘  └──────────────┘  └────────────┘ │    │
│  └──────────────────────────────────────────────────────┘    │
│                                                               │
│  ┌──────────────────────────────────────────────────────┐    │
│  │             7 CORE LAYERS (Stacked)                   │    │
│  │                                                      │    │
│  │  Layer 7: Identity/Persona/Constitution              │    │
│  │  Layer 6: Self-Evolution + Capability Manager        │    │
│  │  Layer 5: Scheduler + Awareness + Health Guardian    │    │
│  │  Layer 4: Memory Graph + Memory Consolidation        │    │
│  │  Layer 3: Skills Hub + Eval + Learnings Loop         │    │
│  │  Layer 2: Business Brain + Context Folders           │    │
│  │  Layer 1: Agent Router + Standards + Profiles        │    │
│  └──────────────────────────────────────────────────────┘    │
└──────────────────────────────────────────────────────────────┘

Agent Responsibilities

AgentPrimary RoleWhen to Route
opencodeCode generation, file operations, DevOps/GCP infra, git management, software engineeringAny task involving file edits, code writing, infrastructure-as-code, terminal commands for build/test
Hermes AgentPersistent memory (SQLite FTS5), cron scheduling, Telegram/Discord channels, skill hub, multi-agent coordinationTasks needing cross-session memory, scheduled recurring tasks, multi-platform notifications, skill discovery
agy CLIWeb research, multi-modal analysis (images/PDFs), reasoning, data analysisResearch tasks, content analysis, document understanding, competitive analysis, learning/research

Routing Rules

  • Code/DevOps task? → opencode
  • Memory/Channel/Schedule? → Hermes Agent
  • Research/Analysis? → agy CLI
  • Complex multi-step? → Chain: agy researches → opencode implements → Hermes monitors/schedules
  • Unknown/General? → opencode first (best general-purpose coding agent)

Complete Feature Inventory

From Original YouTube Video ("Agent OS: Claude + Hermes AI = Superpowers!")

#FeatureImplementation
F1System Architecture (3-step)AGENTS.md (this file) + server.py FastAPI backend + SPA frontend
F2Obsidian-like Memory Layerbrain/ folder with structured sub-sections, memory.js page with raw/wiki/output views
F3Dashboard with Buttonsdashboard/ — interactive web SPA with one-click skill execution
F4Custom Gauges/ObservabilityDashboard.js with Chart.js gauges (system health, cost, skill scores)
F5Skill Packs & Automations15+ skills in skills/ covering DevOps, content, research, coding
F6Customization & FlexibilityUsers create custom skills from _template/, custom gauges in settings

From MindStudio 4-Layer Architecture

#FeatureImplementation
F7Persistent Memorybrain/memory.md + Hermes SQLite FTS5 + brain/recent-decisions.md
F8Self-Improving Skillsskills/*/learnings.md + skills/*/eval.json + skills/*/score-history.json
F9Scheduled Workflowsscheduler/scheduler.py (APScheduler) + scheduler/jobs/*.json
F10Shared Business Brainbrain/business-brain.md — read by all agents at session start
F11Skill ChainingHandoff protocol: skill output → context/ folder → next skill input
F12Heartbeat Patternskills/heartbeat/ — lightweight health check running every 5 min
F13Wrap-Up AutomationPost-task: update learnings.md, append to audit log, update cost tracking
F14Multi-Agent Coordination3 agents with defined routing rules + handoff protocol
F15Modular Skill Structureskills/*/SKILL.md + learnings.md + eval.json + context/
F16Memory Consolidationskills/memory-consolidation/ — weekly synthesis of accumulated notes
F17Eval Scoringeval.json with weighted criteria, scores accumulate over runs
F18Context Foldersskills/*/context/ — ephemeral task-specific inputs per run

From Superpowers (obra/superpowers)

#FeatureImplementation
F19Brainstormingskills/brainstorming/SKILL.md — Socratic design refinement
F20Subagent-Driven Developmentopencode subagent spawning for parallel task execution
F21Code Reviewskills/code-review/ — automated PR review checklist
F22TDD Cycleskills/tdd-cycle/ — red-green-refactor with test verification
F23Systematic Debuggingskills/systematic-debug/ — 4-phase root cause process
F24Git Worktreesopencode native git worktree support for parallel branches
F25Writing Plansskills/project-planner/ — detailed implementation plans
F26Executing PlansBatch execution with checkpoints in project-planner

From Hermes Agent (NousResearch)

#FeatureImplementation
F27Skills Hub/Registryregistry/plugins.json + plugins.js page — marketplace browser
F28Subagent Delegationopencode --agent spawning via dashboard
F29Messaging ChannelsHermes native Telegram/Discord/email/webhooks
F30Voice ModeHermes native voice interaction
F31Browser AutomationHermes native browser-use skill
F32CheckpointsGit auto-versioning + pre-edit snapshots
F33Context References@-syntax for files/folders/URLs in skill inputs
F34Code ExecutionPython sandbox execution via dashboard
F35Event HooksPre/post skill execution hooks in scheduler
F36Batch ProcessingParallel skill runs from dashboard
F37Model Agnostic RouterRoute tasks based on cost/efficiency/availability

From Claude-OS (shivsoji) + LLMOS Paper

#FeatureImplementation
F38Awareness EngineHeartbeat skill + dashboard health gauges
F39Health GuardianAuto-restart failed services, disk cleanup triggers
F40Memory GraphHermes SQLite FTS5 with entity-relation tracking
F41Goal Plannerskills/goal-planner/ — refine input → step-by-step plan
F42Self-EvolutionCapability tracking in data/agent-routes.json
F43Capability ManagerTrack what each agent can do in routing rules

From BuilderMethods Agent OS

#FeatureImplementation
F44Discover Standardsstandards/discover command extracts patterns from codebase
F45Deploy/Inject Standardsstandards/inject injects relevant standards into agent context
F46Shape Specskills/project-planner/ spec-driven development
F47Index Standardsstandards/index.yml — organized, searchable standards
F48Profile Systemstandards/profiles/ — different configs per project type

From 7-Layer Personal Agentic OS

#FeatureImplementation
F49Identity/Persona Layerbrain/identity.md — agent personality, role, voice
F50Values/Constitutionbrain/constitution.md — agent governance and constraints
F51Tool/API Integrationdata/agent-routes.json — external service connectors

Extra Features (Not in Any Video/Repo)

#FeatureImplementationWhy Unique
E1Multi-Provider Cost Analyticsskills/cost-analytics/ + cost-analytics.js (Chart.js)No agentic OS tracks costs across multiple providers
E2Git Auto-Versioning.git/ + pre-commit hooks for every brain/skill changeFull rollback history for all memory/config
E3Disaster Recoverybackup.sh + restore.sh + backups.js UIOne-click snapshot of entire system
E4Prompt Template Libraryprompts/ (10 templates) + prompts.js pageReusable templates for common tasks
E5Skill Performance Leaderboardscore-history.json per skill, ranked in skills.jsGamifies skill improvement
E6Agent Handoff ProtocolStructured handoff JSON when agent can't complete taskEnables true multi-agent collaboration
E7Smart Free-Tier GuardianCost analytics monitors API limits, suggests downgradesPrevents surprise bills on free tiers
E8Blazing-Fast Load TimesLazy-loading SPA pages, localStorage cachingUnder 500ms initial load
E9Dark/Light Theme + ResponsiveCSS custom properties, media queriesLooks polished on any device
E10One-Command Installinstall.sh — detects OS, installs deps, seeds all filesZero manual setup

Directory Structure

~/Desktop/Agentic OS Project/
├── AGENTS.md                  # THIS FILE — complete context for any AI agent
├── README.md                  # User-facing documentation
├── server.py                  # FastAPI backend (REST API for dashboard)
├── requirements.txt           # Python dependencies
├── install.sh                 # One-command installer [E10]
├── start.sh                   # Start dashboard server
├── backup.sh                  # Manual backup [E3]
├── restore.sh                 # Manual restore [E3]
│
├── brain/                     # [F2, F7, F10, F49, F50, F54] Shared context
│   ├── business-brain.md
│   ├── memory.md
│   ├── recent-decisions.md
│   ├── active-projects.md
│   ├── constraints.md
│   ├── identity.md
│   ├── constitution.md
│   └── journal/               # [F54] Daily markdown entries (YYYY-MM-DD.md)
│
├── skills/                    # [F5, F8, F15, F17] Skills Hub
│   ├── _template/
│   │   ├── SKILL.md
│   │   ├── learnings.md
│   │   ├── eval.json
│   │   ├── score-history.json
│   │   └── context/
│   ├── heartbeat/             # [F12, F38]
│   ├── devops-audit/          # CloudMart GCP infra
│   ├── content-draft/         # Blog/newsletter writing
│   ├── code-review/           # [F21]
│   ├── research-synthesis/    # agy research
│   ├── daily-standup/         # Morning briefing
│   ├── meeting-minutes/       # Meeting notes processor
│   ├── project-planner/       # [F25, F26, F46]
│   ├── brainstorming/         # [F19]
│   ├── systematic-debug/      # [F23]
│   ├── memory-consolidation/  # [F16]
│   ├── backup-skill/          # Backup creator
│   ├── cost-analytics/        # [E1, E7]
│   ├── tdd-cycle/             # [F22]
│   └── goal-planner/          # [F41]
│
├── agents/                    # Per-agent configs
│   ├── opencode/
│   │   ├── opencode.json
│   │   └── AGENTS.md
│   ├── hermes/
│   │   ├── SOUL.md
│   │   ├── USER.md
│   │   └── MEMORY.md
│   └── agy/
│       ├── AGY.md
│       └── agy-extension.json
│
├── scheduler/                 # [F9] Scheduling
│   ├── scheduler.py
│   └── jobs/
│       ├── heartbeat-job.json
│       ├── memory-consolidation-job.json
│       ├── daily-standup-job.json
│       └── devops-audit-job.json
│
├── registry/                  # [F27] Plugin Registry
│   ├── plugins.json
│   └── marketplace/
│
├── standards/                 # [F44-F48] Standards System
│   ├── index.yml
│   ├── api-response-format.md
│   ├── naming-conventions.md
│   └── profiles/default/config.yml
│
├── dashboard/                 # [F3, F4] Web Frontend
│   ├── index.html
│   ├── app.js
│   ├── api.js
│   ├── styles.css
│   ├── utils.js
│   └── pages/
│       ├── dashboard.js
│       ├── skills.js          # detail view inline
│       ├── memory.js
│       ├── scheduler.js
│       ├── audit.js
│       ├── cost-analytics.js
│       ├── plugins.js
│       ├── backups.js
│       ├── prompts.js
│       ├── standards.js
│       ├── settings.js
│       ├── setup-wizard.js
│       ├── kanban.js          # [F52] Kanban Board (v0.2.0)
│       ├── goals.js           # [F53] Goals (v0.2.0)
│       ├── journal.js         # [F54] Journal (v0.2.0)
│       ├── agent-health.js    # [F55] Agent Health (v0.2.0)
│       ├── smart-router.js    # [F56] Smart Router (v0.2.0)
│       ├── learning-analytics.js # [F57] Learning Analytics (v0.2.0)
│       └── session-replay.js  # [F58] Session Replay (v0.2.0)
│
├── audit/                     # [F38] Audit Trail
│   └── audit.log
│
├── backups/                   # [E3] Snapshots
│   └── .gitkeep
│
├── prompts/                   # [E4] Prompt Templates
│   ├── code-review.md
│   ├── system-audit.md
│   ├── daily-standup.md
│   ├── draft-blog.md
│   ├── research-topic.md
│   ├── project-plan.md
│   ├── meeting-notes.md
│   ├── brainstorm-session.md
│   ├── debug-incident.md
│   └── standup-email.md
│
├── data/                      # Runtime data
│   ├── settings.json
│   ├── cost-history.json
│   ├── agent-routes.json
│   ├── kanban/                # [F52] Kanban task JSON files
│   └── goals.json             # [F53] Goals storage
│
└── .git/                      # [E2] Auto-versioning

User Profile

DetailInfo
BudgetStrictly free tiers (GCP Free, GitHub Student Pack, Colab, Kaggle)
Active ProjectCloudMart — GCP DevOps multi-region e-commerce platform
CLI Tools Availableopencode, Hermes Agent, agy CLI
Preferred ModelHermes: Owl Alpha (OpenRouter, free), opencode: deepseek-v4-flash-free (opencode-zen), agy: Antigravity (free CLI)

Setup Instructions for New AI Agents

When you (an AI agent) are dropped into this directory for the first time:

  1. Read this file first — you're doing it now. Good.
  2. Check brain/ — read business-brain.md, memory.md, active-projects.md for current context
  3. Check data/settings.json — user preferences and API key locations
  4. Check data/agent-routes.json — routing rules for task delegation
  5. Check skills/ — available skills, their learnings, and eval scores
  6. Start server.py if the dashboard needs to be running
  7. Route tasks according to the Agent Responsibilities table above
  8. After each task: update learnings.md, append to audit/audit.log, update cost tracking

When Creating/Modifying Code

  • Use skills/_template/ as reference for new skills
  • Follow existing skill structure: SKILL.md + learnings.md + eval.json + context/
  • Update registry/plugins.json when adding new skills
  • Run git add -A && git commit -m "description" after meaningful changes [E2]

When the User Asks to "Switch CLI"

  • This AGENTS.md file is the single source of truth
  • Any AI agent reading this file should have enough context to continue seamlessly
  • The agent should first read this file, then brain/*, then data/settings.json

Session History

  • opencode: ~/.local/share/opencode/opencode.db + ~/.local/share/opencode/log/
  • Hermes: ~/.hermes/sessions.json
  • agy: ~/.antigravity/history/

API Endpoints (server.py FastAPI, 58 total — 28 original + 30 v0.2.0)

Core (28 original endpoints)

MethodEndpointPurpose
GET/api/statusSystem health + 3 agent status
GET/api/brainList brain/ files
GET/api/brain/{file}Get brain file content
PUT/api/brain/{file}Update brain file
GET/api/skillsList all skills
GET/api/skills/{name}Get skill details
POST/api/skills/{name}/runExecute a skill
GET/api/skills/{name}/evalGet eval score history
GET/api/scheduler/jobsList scheduled jobs
POST/api/scheduler/jobsCreate scheduled job
DELETE/api/scheduler/jobs/{id}Delete scheduled job
GET/api/auditQuery audit log
GET/api/costGet cost analytics
GET/api/pluginsList registry plugins
POST/api/plugins/installInstall plugin from registry
POST/api/backupCreate backup snapshot
POST/api/backup/restoreRestore from snapshot
GET/api/promptsList prompt templates
GET/api/settingsGet user settings
PUT/api/settingsUpdate user settings
GET/api/standardsList standards
POST/api/standards/discoverRun standards discovery

Kanban Board (v0.2.0) — 13 endpoints

MethodEndpointPurpose
GET/api/kanban/boardGet kanban board (all columns + tasks)
GET/api/kanban/tasks/{id}Get single task
POST/api/kanban/tasksCreate task
PATCH/api/kanban/tasks/{id}Update task fields
POST/api/kanban/tasks/{id}/completeMark task done
POST/api/kanban/tasks/{id}/blockBlock task
POST/api/kanban/tasks/{id}/unblockUnblock task
POST/api/kanban/tasks/{id}/commentsAdd comment
POST/api/kanban/linksLink parent/child tasks
DELETE/api/kanban/linksUnlink tasks
POST/api/kanban/dispatchDispatch triage tasks
POST/api/kanban/tasks/{id}/specifyGenerate spec
POST/api/kanban/tasks/{id}/decomposeDecompose into subtasks

Goals (v0.2.0) — 4 endpoints

MethodEndpointPurpose
GET/api/goalsList all goals
POST/api/goalsCreate goal (auto-syncs to brain/active-projects.md)
PUT/api/goals/{id}Update goal progress/status
DELETE/api/goals/{id}Delete goal

Journal (v0.2.0) — 4 endpoints

MethodEndpointPurpose
GET/api/journal/entriesList all entry dates
GET/api/journal/entries/{date}Get entry content
PUT/api/journal/entries/{date}Save entry (creates/updates brain/journal/YYYY-MM-DD.md)
GET/api/journal/search?q=Full-text search across entries

Agent Health (v0.2.0) — 3 endpoints

MethodEndpointPurpose
GET/api/agents/healthGet live status of all 3 agents
GET/api/agents/{name}/statsGet per-agent statistics
POST/api/agents/health/refreshForce refresh all status checks

Smart Router (v0.2.0) — 2 endpoints

MethodEndpointPurpose
POST/api/router/suggestSuggest best agent for a task description
POST/api/router/routeRoute task to a specific agent

Learning Analytics (v0.2.0) — 2 endpoints

MethodEndpointPurpose
GET/api/analytics/skillsSkill evaluation scores across all skills
GET/api/analytics/trendsScore history trends per skill

Session Replay (v0.2.0) — 2 endpoints

MethodEndpointPurpose
GET/api/sessions/listList opencode sessions
GET/api/sessions/{id}/replayGet session message content

Version History

DateVersionChanges
May 17, 2026v1.0.0Initial creation — all 51 features + 10 extras
May 17, 2026v1.1.0AI Chat fixes: corrected CLI syntax (hermes chat -q, gemini positional), switched Hermes default to OpenRouter + Owl Alpha, improved timeout/error handling, updated execute_agent fallback logic
Aug 11, 2026v0.4.0agy (Antigravity) replaces Gemini CLI across backend, routing, frontend, skills, agents/, docs; port auto-kill in start.sh; apscheduler auto-install in scheduler.py; Chat History Search (q/agent/limit + History page); Chat File Attachments (/api/chat/upload, 2 MB allowlist, 24h TTL); Memory Knowledge Graph (/api/memory/graph + Canvas renderer); Code Diff Viewer (/api/diff + Skills page button); 74 tests (59 → 74, 15 new isolated v0.4.0 tests)

This AGENTS.md is designed to be the single source of truth. Any AI agent (opencode, Claude Code, agy CLI, Hermes, Cursor, etc.) reading this file should have complete context to continue the project seamlessly.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.