MicroCoreOS AGENTS.md

Architecture instructions for MicroCoreOS, an AI-agent project built around an “Elastic Monolith,” meaning one coordinated system with strict internal structure. They define the required status check, single active-plan location, agent roles, and rules for preserving the architecture.

In plain words
What is it for?
Checking project status, validating and executing the active plan, selecting the correct agent role, and developing MicroCoreOS while following its architectural rules.
Why use it?
Agents can otherwise work from an outdated plan or mistake an untouched example plan for completed work. The instructions establish checks that reveal the active plan and whether project context matches the code.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/theanibalos/microcoreos/agents-md
Clone the repo
git clone --depth 1 https://github.com/theanibalos/MicroCoreOS

Made for: Codex, OpenCode.

Per session 4,235 This file is loaded in full into every session.
When invoked 4,235 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.04235 $0.04235
Opus 5 $0.02117 $0.02117
Sonnet 5 $0.00847 $0.00847
Haiku 4.5 $0.00424 $0.00424

Measured 2d ago against content hash a8ac60c34957, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

MicroCoreOS AGENTS.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

microcoreos plan validate # The 18 plan rules, OFFLINE (no server, no jq, no curl)
AGENTS.md · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MicroCoreOS — AI Agent & Architecture Guide

This file is the single, absolute entry point for any AI agent (Gemini, Claude, GPT, etc.) working in this codebase. All development must strictly adhere to these principles to maintain the integrity of the Elastic Monolith.


🚦 Start here: microcoreos status

One command, before anything else. It answers the three questions that silently derail a session: which plan is actually active (and whether it is still the shipped template), how much of it is done, and whether AI_CONTEXT.md still describes the code on disk.

There is exactly one plan path: plans/active_plan.yaml. The workflows, the executor prompts and the checklist cross-check read that path and no other. A plan written to plans/my_feature.yaml is a plan nothing will ever execute — and because the shipped template is itself a valid plan, an agent that opens active_plan.yaml and finds it untouched will build the example domain and report success. That is why the template carries template: true and fails validation until you delete the line.


📖 Your reading route — find your role, read those files, stop

Four roles do the work, and each needs a different slice. Reading outside your slice is not thoroughness, it is budget: the Planner that also loads the plugin templates spends ~3,000 tokens on code it will never write.

They are phases, not people. Doing all of them yourself is the fifth row — the common case for one or two features — and it means playing the four in order, taking each slice as you enter it, not reading everything up front.

You are… Read exactly this Write exactly this Not this
Planner — turning a request into a plan 1. plans/active_plan.yaml — the file you are about to overwrite. It ships as a worked example of all three feature shapes, and it is the cheapest, densest statement of the format there is. 2. AI_CONTEXT.md down to ## 🧩 Plugin Authoring Guide (existing tools, tables, models, routes, events). 3. docs/PARALLEL_DEVELOPMENT.md § Phase 1 for the rules behind it plans/active_plan.yaml + plans/active_plan.md, overwriting them. Never a new filename — plans/twitter_plan.yaml is a plan nothing will execute The Authoring Guide, Phases 2-3, domains/, tools/, tests/, extras/
Phase 0 Builder — migrations, models, tools plans/active_plan.yaml § phase_0 only Exactly the files phase_0 names: its migrations, its models, its tools Everything else. The plan already decided every column
Executor — one plugin + its test Nothing. Your prompt already contains AI_CONTEXT.md + the plan + your one task line Exactly two files: the file: and test: your task declares Any file at all — opening one only invites guessed paths
Coordinator — dispatch, verify, reconstruct plans/active_plan.md (the checklist/state machine) + docs/PARALLEL_DEVELOPMENT.md § Phases 2-3 Only the checkboxes in plans/active_plan.md The plan's internals; the checklist is the state
Solo — one agent, every phase, in sequence The row above you, as you reach it — the Planner's slice first, and nothing else until you are past planning Everything the four rows write, in their order Skipping the plan because it is "only two features". See below

Read the full file on GitHub · 245 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 245 lines · 4,235 tokens per session scan A a8ac60c34957

Subscribe to this mod's changes

MicroCoreOS AGENTS.md is an instructions file published in the GitHub repository theanibalos/MicroCoreOS (21 stars, last pushed 3d ago), licensed MIT. It adds 4,235 tokens to every session, about $0.0212 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens