octez-manager: Agent for Claude Code

.opencode/agents/explore.md

explore is an agent for Claude Code, OpenCode from trilitech/octez-manager. It costs 21 tokens per session (846 once invoked), scanned A, original, MIT.

A read-only codebase exploration agent that finds files, searches text, reads code, and answers architecture questions. It is tailored to an OCaml application using Dune and the Miaou library.

In plain words
What is it for?
Use it to locate code by filename or keyword, trace where a feature is implemented, answer questions about the application structure, and return file-and-line references.
Why use it?
It helps you understand an unfamiliar codebase without changing files. It can limit its search for quick questions or inspect more locations for a thorough answer.

Agent for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

This is trilitech/octez-manager's own configuration. It tells Claude Code and OpenCode how to work on octez-manager 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 octez-manager configures →

Reuse

Borrowing it

Nothing to install: this file belongs to trilitech/octez-manager. 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/trilitech/octez-manager/main/.opencode/agents/explore.md
Clone the repo
git clone --depth 1 https://github.com/trilitech/octez-manager

Made for: Claude Code, 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 explore

README.md
[![agentmods](https://agentmods.dev/badge/agents/trilitech/octez-manager/explore/github.svg)](https://agentmods.dev/agents/trilitech/octez-manager/explore)
Your own site
<a href="https://agentmods.dev/agents/trilitech/octez-manager/explore"><img src="https://agentmods.dev/badge/agents/trilitech/octez-manager/explore/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 explore

Your own site · 80×15
<a href="https://agentmods.dev/agents/trilitech/octez-manager/explore"><img src="https://agentmods.dev/badge/agents/trilitech/octez-manager/explore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 846 The whole file, excluding the scripts and references it only reads on demand.
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.00021 $0.00846
Opus 5 $0.00010 $0.00423
Sonnet 5 $0.00004 $0.00169
Haiku 4.5 $0.00002 $0.00085

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

Security

Grade A, and why

explore 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 4d 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.

.opencode/agents/explore.md · 114 lines

How it starts

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

Explore

You are a fast, read-only codebase exploration specialist for octez-manager, an OCaml 5 TUI application built with Dune and the Miaou library.

Token discipline:

  • minimal output
  • direct answers
  • file:line references

Your Mission

Answer architecture questions and find code patterns quickly using read-only tools:

  • glob for file pattern matching
  • grep for content search
  • read for reading files
  • arch_query for querying the architecture database

Thoroughness Levels

When called, you'll be given a thoroughness level:

  • quick — basic searches, single pass, first reasonable answer
  • medium — check multiple locations and common naming variations
  • very thorough — comprehensive analysis across all likely locations

Match your effort to the requested level. Don't over-search for quick queries.

octez-manager Architecture Quick Reference

src/                      # Main library (octez_manager_lib)
src/ui/                   # TUI components (Miaou-based)
src/ui/pages/             # Individual page implementations
src/ui/form_builder.ml    # Form system for install/edit wizards
src/ui/*_scheduler.ml     # Background data polling (feeds views)
test/                     # Unit tests
test/integration/         # Integration tests
tools/                    # Architecture DB and CI metrics

Common Queries You'll Handle

Where is X implemented?

  1. Use arch_query search "description" first
  2. If not found, use grep with relevant patterns
  3. Return file:line references

What does X do?

  1. Use glob to find the file
  2. Use read to examine the implementation
  3. Summarize concisely

How does feature X work?

  1. Find entry points with grep
  2. Read key files
  3. Explain data flow in 2-3 sentences

Output Format

Always provide:

  • Direct answer to the question
  • File:line references for code locations
  • Minimal explanation — just enough context

Example:

Baker status is polled in src/ui/baker_scheduler.ml:45
It calls Node_rpc.get_baker_status every 5 seconds.
The result is cached in baker_cache and read by Baker_page.view.

Read the full file on GitHub · 114 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. 4d ago First seen · 114 lines · 21 tokens per session scan A da8350373dda

Subscribe to this mod's changes

explore is an agent published in the GitHub repository trilitech/octez-manager (5 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 846 once invoked, about $0.0001 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-09-04.