odin-gemini-cli-extension AGENTS.md

odin-gemini-cli-extension AGENTS.md is an instructions file for Codex, OpenCode from OutlineDriven/odin-gemini-cli-extension. It costs 10,180 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for the Gemini command-line coding agent. It covers choosing specialist agents, working with files, searching code, and editing code while limiting unnecessary command output.

In plain words
What is it for?
Use it to guide code discovery, file operations, code changes, and delegation to specialists for areas such as security, user interfaces, concurrency, memory, or trading systems.
Why use it?
It gives the agent a consistent way to choose helpers and approach coding tasks. This can reduce wasted command output and make work on unfamiliar codebases more structured.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; positional $N argument; mentions Codex.

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/outlinedriven/odin-gemini-cli-extension/agents-md
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-gemini-cli-extension

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 odin-gemini-cli-extension AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/outlinedriven/odin-gemini-cli-extension/agents-md.svg)](https://agentmods.dev/instructions/outlinedriven/odin-gemini-cli-extension/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/outlinedriven/odin-gemini-cli-extension/agents-md"><img src="https://agentmods.dev/badge/instructions/outlinedriven/odin-gemini-cli-extension/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 10,180 This file is loaded in full into every session.
When invoked 10,180 The same file — it is already loaded in full.
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.1 $0.10180 $0.10180
Opus 5 $0.05090 $0.05090
Sonnet 5 $0.02036 $0.02036
Haiku 4.5 $0.01018 $0.01018

Measured 5d ago against content hash 333417dc10a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

odin-gemini-cli-extension 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 5d 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 · 482 lines

How it starts

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

Gemini Code Agent Manual

<agent_selection> Selection Algorithm:

  1. Scope (PRIORITY): simple/trivial -> Fast | default -> Tidy-First | tricky/other perspective -> Smartass | challenge/stress-test/pre-mortem -> Advocate | unknown lib -> Librarian | exploration needed -> Explore
  2. Domain: security|auth|jwt -> Security-Auditor | thread|async|mutex -> Concurrency-Expert | alloc|heap|leak -> Memory-Expert | component|css|a11y -> UI-UX-Designer | trading|order|latency -> Trading-System-Architect
  3. Risk: production-critical -> Perfectionist/High-Fidelity
  4. Review: pre-merge/PR -> Reviewer

Delegation Enforcement (MANDATORY):

  • Always plan and write todos in consideration of launching and utilizing multiple agents; Include the multiple agents utilization in the plans while reasoning.
  • Default to spawning multiple agents in parallel for any multi-step task, multi-file analysis, or parallelizable subtasks. [MANDATORY]
  • Use Explore agents for codebase discovery and unknown code paths; use domain experts when keywords match.
  • Provide precise instructions: scope, files/paths, success criteria, and whether to write code or only research.
  • Do not delegate for trivial single-file edits, known file reads, or direct short answers.

Subagents: Spawn for complex tasks benefiting from independent execution. Own context, can't communicate mid-task, main agent receives final summary only.

  • Multi-step tasks divisible into independent parts
  • Operations producing extensive output not needed after
  • Parallel work across different code areas
  • Keep main context clean while coordinating complex work

Second Opinion (Oracle/Deep-Reasoner/Advocate): Extended reasoning for complex analysis.

  • Debug complex multi-file issues
  • Review intricate logic or refactoring plans
  • "Ask Oracle whether there's a better solution"
  • "Use Deep-Reasoner to analyze how X and Y interact"
  • "Have the Advocate stress-test this design before we commit"
  • "Use Advocate for a pre-mortem on this migration plan"

Librarian: Cross-repository research and external code search.

  • Search remote codebases (GitHub public/private)
  • Read framework/library source code
  • Investigate upstream changes or API differences

Pre-Delegation: Always run git branchless init before delegating. </agent_selection>

Oracle

Senior engineering advisor for planning, reviewing, analyzing, and debugging complex tasks.

WHEN TO USE:

  • Code reviews and architecture feedback
  • Debugging multi-file issues
  • Planning complex implementations or refactoring
  • Analyzing code quality and suggesting improvements
  • Answering complex technical questions requiring deep reasoning

WHEN NOT TO USE:

  • Simple file reading or searching (use Read directly)
  • Codebase searches (use Explore)
  • Basic code modifications (do directly or use Execution agents)
  • Web browsing/searching (use web tools)

USAGE GUIDELINES:

  1. Be specific about what you want reviewed, planned, or debugged
  2. Provide relevant context and list specific file paths
  3. Mention oracle invocation to user ("consulting the Oracle...")

Deep-Reasoner

Extended reasoning specialist with large context window for complex multi-file analysis.

WHEN TO USE:

  • Multi-file analysis requiring large context windows
  • Complex dependency mapping across modules
  • System-wide refactoring planning
  • Extended reasoning chains with many steps

WHEN NOT TO USE:

  • Quick lookups (use Explore)
  • Single-file changes (use Execution agents)
  • Simple searches (use Grep/Read)

Read the full file on GitHub · 482 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. 5d ago First seen · 482 lines · 10,180 tokens per session scan A 333417dc10a5

Subscribe to this mod's changes

odin-gemini-cli-extension AGENTS.md is an instructions file published in the GitHub repository OutlineDriven/odin-gemini-cli-extension (5 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 10,180 tokens to every session, about $0.0509 per session on Opus 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-31.