otavia CLAUDE.md

otavia CLAUDE.md is an instructions file for coding agents from otavia-projects/otavia. It costs 2,205 tokens per session, scanned A, original, Apache-2.0.

A set of rules for coding agents working in the Otavia code repository. It explains how to load repository guidance and inspect existing code before making changes.

In plain words
What is it for?
Use it to guide agent work on Otavia modules, especially when the repository has additional module-specific instructions or large source files. It helps agents choose similar existing code and define success checks.
Why use it?
It prevents agents from reading unnecessary files or inventing a new implementation style. It also makes requirements and expected tests explicit before coding begins.

Instructions file

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/otavia-projects/otavia/claude-md
Clone the repo
git clone --depth 1 https://github.com/otavia-projects/otavia

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 otavia CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/otavia-projects/otavia/claude-md.svg)](https://agentmods.dev/instructions/otavia-projects/otavia/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/otavia-projects/otavia/claude-md"><img src="https://agentmods.dev/badge/instructions/otavia-projects/otavia/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,205 This file is loaded in full into every session.
When invoked 2,205 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 $0.02205 $0.02205
Opus 5 $0.01103 $0.01103
Sonnet 5 $0.00441 $0.00441
Haiku 4.5 $0.00220 $0.00220

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

Security

Grade A, and why

otavia CLAUDE.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.

CLAUDE.md · 170 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Coding Agent Rules — MUST follow strictly

Context Loading

  1. Load module CLAUDE.md files on demand. Do NOT read all module CLAUDE.md files upfront. Use the Context Loading Guide below to determine which modules are relevant, then read only those.
  2. Read large source files incrementally. Many files exceed 500 lines (e.g. AbstractChannel.scala, AdaptiveBufferImpl.scala, ActorThread.scala). First extract method/field signatures (via Grep, LSP, or other available tools), then read specific line ranges as needed. Do NOT read entire large files in one call.

Before Implementing

  1. Study existing similar code first. This project follows consistent patterns. You MUST find the closest existing implementation (e.g. new codec -> study codec-http) and follow its structure before writing any code.
  2. Clarify before coding. For each task, identify the success criteria upfront — expected behavior, test cases, compilation. If you are unsure about requirements, approach, or which pattern to follow, ask the user. Never silently guess or assume. If something feels wrong or ambiguous, push back — do not paper over confusion with code.

While Implementing

  1. Minimal, surgical changes. Write the minimum code that solves the problem — no speculative features, no abstractions for single-use code, no error handling for impossible scenarios. Touch ONLY what you must — every changed line MUST trace directly to the user's request. If your implementation can be reduced to fewer lines while preserving correctness, rewrite it. If you notice unrelated dead code, mention it — do NOT delete it unless explicitly asked.
  2. Comments focus on code itself. Scaladoc and inline comments MUST describe what the code does, its preconditions, and its effects. Do NOT include design rationale, decision history, comparison with alternatives, or meta-commentary about why something was written a certain way.

Read the full file on GitHub · 170 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 · 170 lines · 2,205 tokens per session scan A fe97d2d3401f

Subscribe to this mod's changes

otavia CLAUDE.md is an instructions file published in the GitHub repository otavia-projects/otavia (55 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 2,205 tokens to every session, about $0.0110 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-30.