decant AGENTS.md

decant AGENTS.md is an instructions file for Codex, OpenCode from dosu-ai/decant. It costs 1,512 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

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/dosu-ai/decant/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,512 This file is loaded in full into every session.
When invoked 1,512 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.01512 $0.01512
Opus 5 $0.00756 $0.00756
Sonnet 5 $0.00302 $0.00302
Haiku 4.5 $0.00151 $0.00151

Measured 3d ago against content hash 6a1ef32cedbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 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 and Codex JSONL session logs 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 handles 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.

The default archive is ~/.decant/decant.db. Override it with DECANT_DB or --db. Set DECANT_NO_SYNC or pass --no-sync whenever a command points at a scratch archive, or automatic sync may populate it from the real Claude Code and Codex directories.

Read the full file on GitHub · 139 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. 3d 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 (59 stars, last pushed 6d ago), licensed Apache-2.0. It adds 1,512 tokens to every session, about $0.0076 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.