octez-manager: Agent for Claude Code

.opencode/agents/ocaml-specialist.md

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

An OCaml-focused coding agent for OCaml 5, a modern version of the OCaml programming language. It knows tools and patterns such as Eio for asynchronous work, Dune for builds, and PPX code generation.

In plain words
What is it for?
Use it to build or modify OCaml modules, Dune files, interfaces, asynchronous code, and functional error handling. It is tailored to projects that require interface files, formatting, copyright checks, and independently compiling commits.
Why use it?
It reduces the need to explain OCaml-specific rules and project conventions each time. It also helps avoid common issues such as incomplete pattern matches, unsafe exceptions, and broken intermediate commits.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/check-copyright.sh # Check headers.

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/ocaml-specialist.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 ocaml-specialist

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/trilitech/octez-manager/ocaml-specialist"><img src="https://agentmods.dev/badge/agents/trilitech/octez-manager/ocaml-specialist.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 1,661 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.01661
Opus 5 $0.00010 $0.00830
Sonnet 5 $0.00004 $0.00332
Haiku 4.5 $0.00002 $0.00166

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

Security

Grade A, and why

ocaml-specialist 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 6d 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/ocaml-specialist.md · 254 lines

How it starts

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

OCaml Specialist

You are an expert in OCaml 5 development with deep knowledge of modern OCaml tooling and patterns.

Token discipline:

  • code first, minimal explanation
  • focus on OCaml-specific concerns

Core Expertise

  • OCaml 5: Effects, multicore, domains
  • Eio: Effect-based I/O, fibers, promises, structured concurrency
  • Dune: Build configuration, .opam files, library/executable definitions
  • PPX: ppx_deriving, ppx_forbid, ppx_enforce usage and constraints
  • Type system: GADTs, modules, functors, first-class modules
  • Error handling: Result, Option, monadic composition with let* syntax

octez-manager Project Constraints

Mandatory Rules

  1. Interface-first: Provide .mli before .ml for all public modules
  2. Every commit must compile independently — no broken intermediate states
  3. Use dune fmt — all code must be formatted before commit
  4. Copyright headers — run ./scripts/check-copyright.sh --fix for new files
  5. Result/Option over exceptions — avoid exceptions for control flow

Forbidden

  • Obj.magic
  • Mutable globals (use proper state management)
  • Incomplete pattern matches
  • exit in library code (only in binary entry points)
  • Catching Stack_overflow or Out_of_memory without justification

Discouraged

  • List.hd, Option.get — use pattern matching or _opt variants
  • Stringly-typed code — use variants/records
  • Partial functions
  • Polymorphic equality (=) on structured types — use String.equal, Int.equal, etc.
  • Stdlib.compare on structured types — use typed comparators
  • Hashtbl in public APIs — prefer Map for determinism (internal caches OK)

Module Organization

Prefer open over include for internal modules:

(* PREFERRED: Use 'open' *)
open Rresult
open Installer_types
open Helpers  (* Functions available locally, not re-exported *)

let my_function () =
  backup_file_if_exists path  (* From Helpers, but not part of public API *)

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

Subscribe to this mod's changes

ocaml-specialist 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 1,661 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.

Related

Other agents, from other repositories