octomind: Instructions file for Codex

AGENTS.md

octomind AGENTS.md is an instructions file for Codex, OpenCode from Muvon/octomind. It costs 4,151 tokens per session, scanned A, original, Apache-2.0.

Repository guidance for Octomind, a Rust-based AI development assistant whose model can call tools to read and write files, search, run shell commands, and delegate work. It explains how configuration controls sessions, models, tools, roles, and other behavior.

In plain words
What is it for?
Use it when working on Octomind's command-line interface, sessions, MCP tool routing, configuration, model providers, compression, learning, or background services.
Why use it?
It shows where the main execution flows live and how configuration affects the assistant, reducing the risk of changing one part without updating the connected parts.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is Muvon/octomind's own configuration. It tells Codex and OpenCode how to work on octomind itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything octomind configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Muvon/octomind. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Muvon/octomind/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Muvon/octomind

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for octomind AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/muvon/octomind/agents-md/github.svg)](https://agentmods.dev/instructions/muvon/octomind/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/muvon/octomind/agents-md"><img src="https://agentmods.dev/badge/instructions/muvon/octomind/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for octomind AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/muvon/octomind/agents-md"><img src="https://agentmods.dev/badge/instructions/muvon/octomind/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,151 This file is loaded in full into every session.
When invoked 4,151 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.04151 $0.04151
Opus 5.5 $0.01660 $0.01660
Sonnet 5.5 $0.00830 $0.00830
Haiku 4.5 $0.00415 $0.00415

Measured 9d ago against content hash a3a326efb14e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

octomind AGENTS.md scanned grade A with 0 findings 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 147 lines

How it starts

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

Octomind — AGENTS.md

Open-source AI coding agent and agent runtime: one Rust binary, any model (multi-provider via octolib), MCP-native. Sessions run interactively (CLI), non-interactively (--format), or as daemons (ACP stdio / WebSocket). TOML config is the single source of truth — model, tools, roles, compression, supervisor and learning all derive from it. Rust 1.95+ (MSRV enforced), tokio async, clap CLI.

Commands

  • Setup: cargo build · Hooks: pip install pre-commit && pre-commit install (fmt + clippy + check run on every commit)
  • Dev: cargo run · Build: cargo build / cargo build --release (make build)
  • One-shot gate: make dev (fmt + clippy + test)
  • Fmt: cargo fmt --all · Check-only: make fmt-check
  • Lint: cargo clippy --all-targets --all-features -- -D warnings
  • Test: cargo test (debug build — what CI runs; make test = cargo test --release, slower first run)
  • Coverage: make coverage — cargo llvm-cov with *_tests.rs excluded so percentages describe product code
  • Cross-compile/dist: make build-all / make dist (uses cross, see Cross.toml) · Release packaging: build.sh
  • Bench (token-efficiency vs committed baseline): protocol in bench/README.md
  • Build/test environment prereqs are per-OS — see Platforms below

Where to look

Task Start here
Add an MCP tool schema in that server's get_all_functions() — src/mcp/core/functions.rs, src/mcp/orchestration/mod.rs, src/mcp/runtime/mod.rs, src/mcp/agent/functions.rs → implement in same module → match arm in src/mcp/mod.rs route_builtin_tool() → register in src/mcp/tool_map.rs
Add a session command (/foo) src/session/chat/session/commands/<name>.rs returning CommandResult → mod + routing arm in commands/mod.rs process_command() → new CommandOutput variant if the result shape is new → constant + row in the fixed-size BUILTIN_COMMANDS array in src/session/chat/commands.rs (bump the length; Reach::CliOnly hides it from WebSocket clients)
Change a config field/default config-templates/default.toml FIRST, then the matching type in src/config/
Config load / merge / role resolution src/config/loading.rs (load()), src/config/merge.rs (get_merged_config_for_role())
Tool not found / routing bugs src/mcp/tool_map.rs get_server_for_tool() → src/mcp/mod.rs try_execute_tool_call()
Session-scoped state src/session/context.rs init_session_services() — task-local SessionId via with_session_id
Session main loop src/session/chat/session/main_loop.rs (init_session_runtime())
Response / tool execution src/session/chat/response.rs, response/tool_execution.rs, response/tool_result_processor.rs
Skill auto-activation / validators src/mcp/runtime/skill_auto.rs (run_activation, run_validators)
Compression src/session/chat/conversation_compression/ (decision.rs, apply.rs, schema.rs, attention/)
Supervisor (gate, plan, detect, condense, resolve, authorizer, stats) src/supervisor/
Learning (extract / inject / retention / file backend / evolution) src/supervisor/learning/
Workflows src/workflow/ (schema.rs, run.rs, validate.rs) + templates config-templates/workflow*.toml
Taps (shareable project agents) src/agent/ (registry, taps, resolver, deps)
Layers / guardrails / pipes src/session/layers/, src/session/guardrails.rs, src/session/pipe.rs
ACP / WebSocket servers src/acp/agent.rs, src/websocket/server.rs
MCP elicitation (who answers, routing, timers) src/mcp/elicitation.rs (answerers, pending questions), src/mcp/client.rs (IN_FLIGHT_CALLS, calls_awaiting_elicitation, create_elicitation), terminal prompt src/session/chat/elicitation.rs
Sandbox / embeddings / telemetry src/sandbox/, src/embeddings/, src/telemetry.rs
CLI subcommands src/commands/ (run, tap, untap, workflow, config, send, server, acp, …)
Path / directory constants src/directories.rs

Read the full file on GitHub · 147 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. 9d ago Changed · +1 lines · +87 tokens per session a3a326efb14e
  2. 11d ago Changed · +3 lines · +242 tokens per session 51ac146ddaf2
  3. 1mo ago Changed · +38 tokens per session 5216870ca53c
  4. 1mo ago Changed · +1 lines · +30 tokens per session 3c5bfb8882df
  5. 1mo ago Changed · -176 lines · -219 tokens per session 021300ec1cb5
  6. 2mo ago Changed · +43 tokens per session 2f6dab9e0756
  7. 2mo ago First seen · 318 lines · 3,930 tokens per session scan A a8b451db8c40

Subscribe to this mod's changes

octomind AGENTS.md is an instructions file published in the GitHub repository Muvon/octomind (563 stars, last pushed yesterday), licensed Apache-2.0. It adds 4,151 tokens to every session, about $0.0166 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

octomind AGENTS.md compared with instructions from other repositories

octomind AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
octomind AGENTS.mdMuvon/octomindInstructions file563yesterdayApache-2.0A4,151Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode