codemap

A set of specialised coding-agent roles, such as a coordinator, codebase explorer, documentation researcher, and technical adviser. Each role has its own responsibilities, permissions, and default model settings.

In plain words
What is it for?
Use it to coordinate tasks, search an unfamiliar codebase, research external libraries, review code, and configure how these agents are created and routed.
Why use it?
It separates different kinds of work so the right agent can handle each part of a task. Read-only roles can inspect code or documentation without changing files.

Agent

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 agents/alvinunreal/oh-my-opencode-slim/codemap
Clone the repo
git clone --depth 1 https://github.com/alvinunreal/oh-my-opencode-slim
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.02322
Opus 5 $0.00000 $0.01161
Sonnet 5 $0.00000 $0.00464
Haiku 4.5 $0.00000 $0.00232

Measured yesterday against content hash 99dba6f15bd0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codemap 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 yesterday.

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.

src/agents/codemap.md · 198 lines

How it starts

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

src/agents/

Responsibility

Defines agent personalities (Orchestrator, Explorer, Librarian, etc.) and manages their configuration lifecycle. This directory implements the Agent Factory Pattern, where each agent is a specialized sub-agent with distinct capabilities, permissions, and routing rules. The Orchestrator agent (src/agents/index.ts) coordinates task delegation to these specialists.

Design

Agent Types and Factories

Each agent is a prompt-driven specialist with a factory function that creates an AgentDefinition:

Agent Factory Role Permissions Model Default
orchestrator createOrchestratorAgent() Workflow manager that delegates tasks to specialists Primary agent with full tool access Resolved from config or runtime preset
explorer createExplorerAgent() Fast codebase search and pattern matching Read-only (glob, grep, ast_grep_search) DEFAULT_MODELS.explorer
librarian createLibrarianAgent() External documentation and library research Read-only (context7, gh_grep) DEFAULT_MODELS.librarian
oracle createOracleAgent() Strategic technical advisor and code reviewer Read-only (read, glob, grep, ast_grep_search) DEFAULT_MODELS.oracle
designer createDesignerAgent() UI/UX design, review, and implementation Read/write (read, glob, grep, write, edit) DEFAULT_MODELS.designer
fixer createFixerAgent() Fast implementation specialist for bounded tasks Read/write (read, glob, grep, write, edit) DEFAULT_MODELS.fixer
observer createObserverAgent() Visual analysis specialist (images, PDFs, diagrams) Read-only (read, glob, grep, ast_grep_search) DEFAULT_MODELS.observer
council createCouncilAgent() Multi-LLM consensus synthesis from councillor responses Read-only DEFAULT_MODELS.council
councillor createCouncillorAgent() Read-only council advisor; registered dynamically per preset seat as councillor-<name> by buildCouncillorAgents() (council-agents.ts) Read-only (read, glob, grep, ast_grep_search) Inherited from council preset

Read the full file on GitHub · 198 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. yesterday First seen · 198 lines · 0 tokens per session scan A 99dba6f15bd0

Subscribe to this mod's changes

codemap is an agent published in the GitHub repository alvinunreal/oh-my-opencode-slim (8,516 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,322 tokens. 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.