decant: Instructions file for Codex

AGENTS.md

decant AGENTS.md is an instructions file for Codex, OpenCode from dosu-ai/decant. It costs 1,593 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for contributors and coding agents working on Decant, a local application that turns Claude Code and Codex session logs into a searchable SQLite archive. They describe the project structure, commands, and rules for acceptable changes.

In plain words
What is it for?
Use them when modifying Decant's command-line interface, parsers, database, local server, web interface, documentation, or distribution setup.
Why use it?
They give an agent the context needed to change the right modules and preserve project invariants. This reduces guesswork about setup, architecture, data handling, and what counts as done.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is dosu-ai/decant's own configuration. It tells Codex and OpenCode how to work on decant 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 decant configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dosu-ai/decant. 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/dosu-ai/decant/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/dosu-ai/decant

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 decant AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dosu-ai/decant/agents-md/github.svg)](https://agentmods.dev/instructions/dosu-ai/decant/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dosu-ai/decant/agents-md"><img src="https://agentmods.dev/badge/instructions/dosu-ai/decant/agents-md/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 decant AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dosu-ai/decant/agents-md"><img src="https://agentmods.dev/badge/instructions/dosu-ai/decant/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,593 This file is loaded in full into every session.
When invoked 1,593 The same file — it is already loaded in full.
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.01593 $0.01593
Opus 5.5 $0.00637 $0.00637
Sonnet 5.5 $0.00319 $0.00319
Haiku 4.5 $0.00159 $0.00159

Measured 15d ago against content hash 3079590da22e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

decant 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 15d 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 · 144 lines

How it starts

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

AGENTS.md

Guidance for coding agents and contributors working in this repository. Keep changes small, tested, and consistent with the patterns already present. CLAUDE.md is a symlink to this file so project guidance has one source of truth.

Project overview

Decant is a local-first Bun and TypeScript application that turns Claude Code, Codex, and Gemini CLI JSONL session logs and OpenCode's SQLite session store into a normalized, full-text-searchable SQLite archive. The decant CLI owns parsing, ingest, reads, reports, distillation, recommendations, watch mode, and the React UI served by decant serve.

Start with these files and guides:

  • src/cli.ts and src/cli/ handle command composition, output, and exit-code policy.
  • src/sources/ contains source parsers and the primary extension point.
  • src/db.ts, src/schema.sql, and src/schema-manifest.ts manage storage and schema.
  • src/server.ts and src/ui/ serve the local API and web UI.
  • docs/architecture.md maps module boundaries and data flow.
  • docs/analytics-methodology.md details metric definitions.
  • docs/data-lifecycle.md describes sync and local state.
  • docs/api/openapi.yaml defines the local API contract.
  • docs/distribution.md covers npm, installer, Homebrew, Docker, and source builds.
  • docs/adding-a-source.md provides the parser contribution checklist.

Setup and commands

Run commands from the repository root. Bun 1.3 or newer is required. Docker is only needed when validating the container image.

  • bun run dev performs a frozen dependency install, startup sync, local UI, and source watcher.
  • bun run src/cli.ts --help runs the CLI from source.
  • bun test runs the test suite.
  • bunx tsc --noEmit runs the type check.
  • bunx biome check . runs the formatting and lint check.
  • just check runs the full local gate, including the native distribution staging smoke. It needs network access because the smoke packs and installs the npm launcher packages.

Read the full file on GitHub · 144 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. 15d ago Changed · +1 lines · +12 tokens per session 3079590da22e
  2. 28d ago Changed · +4 lines · +69 tokens per session 8adfb283fc5e
  3. 1mo ago Changed 687fcf55e200
  4. 1mo ago First seen · 139 lines · 1,512 tokens per session scan A 6a1ef32cedbc

Subscribe to this mod's changes

decant AGENTS.md is an instructions file published in the GitHub repository dosu-ai/decant (72 stars, last pushed today), licensed Apache-2.0. It adds 1,593 tokens to every session, about $0.0064 per session on Opus 5.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.

Related

Other instructions, from other repositories