leansdd AGENTS.md

leansdd AGENTS.md is an instructions file for Codex, OpenCode from kidpixo/leansdd. It costs 2,312 tokens per session, scanned A, original, MIT.

Agent instructions for a project called leansdd that uses spec-driven development and keeps project facts in dedicated `.ai` files.

In plain words
What is it for?
Following the project's source-of-truth rules, selecting the right documents for a task, and working within its file and reading limits.
Why use it?
They tell agents where to find current status, constraints, plans, and decisions without reading every project document.

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/kidpixo/leansdd/agents-md
Clone the repo
git clone --depth 1 https://github.com/kidpixo/leansdd

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kidpixo/leansdd/agents-md.svg)](https://agentmods.dev/instructions/kidpixo/leansdd/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kidpixo/leansdd/agents-md"><img src="https://agentmods.dev/badge/instructions/kidpixo/leansdd/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,312 This file is loaded in full into every session.
When invoked 2,312 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.02312 $0.02312
Opus 5 $0.01156 $0.01156
Sonnet 5 $0.00462 $0.00462
Haiku 4.5 $0.00231 $0.00231

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

Security

Grade A, and why

leansdd 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 · 245 lines

How it starts

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

Agent Instructions — Spec-Driven Development

Applies to all agents (this file is symlinked to CLAUDE.md and .github/copilot-instructions.md). It defines what to do, not how — each agent model decides its own mechanism (skills, hooks, prompts, subagents).

Source-of-truth hierarchy (no overlap)

  • AGENTS.md (this file) = the generic, portable workflow spec — process, file structure, and templates. Identical for any project, so it is self-contained for bootstrapping a new repo.
  • .ai/README.md = the project-specific human description (one-liner, seed doc, files-at-a-glance). Humans only.
  • .ai/*.md = the filled-in per-project facts (constraints, roadmap, status, decisions, philosophy).

Keep this file generic. Project-specific content never goes here — it goes in .ai/.

Single source of truth

All project facts live in .ai/. Read them on demand for the task type — never load everything.

File table (read tier · cap)

File Purpose Read by agents Cap
03_CURRENT_STATUS.md one-point current state (now/next/blocked) Tier 0 — always 80 lines
00_CONSTRAINTS.md tech hard rules (forbidden/required) Tier 1 — code/arch 80 lines
02_ROADMAP.md goals = what, not how Tier 1 — planning/scope 80 lines
00_PHILOSOPHY.md design principles / rationale Tier 2 — arch / new patterns 80 lines
README.md human entry, brainstorming Tier 3 — humans only no cap
decisions/index.md decision log (agent surface) Tier 1 — conflict/scope 80 lines
decisions/ADR-NNN-*.md decision deep-dive only if index entry is not enough git
archive/ history never auto-read git

Read workflow (by task type)

  • Code03_CURRENT_STATUS00_CONSTRAINTS02_ROADMAP. Read decisions/index.md only if a conflict or scope question arises.
  • Architecture / new module / new pattern → additionally 00_PHILOSOPHY.
  • Planning / scope02_ROADMAP + 03_CURRENT_STATUS.
  • Debugging / "why"03_CURRENT_STATUS first, then grep archive/ only if needed.
  • Q&A / explanation → read nothing (status only if it helps).
  • Heavy initial designREADME (the only case agents read it).

Read the full file on GitHub · 245 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 · 245 lines · 2,312 tokens per session scan A be1b163274ef

Subscribe to this mod's changes

leansdd AGENTS.md is an instructions file published in the GitHub repository kidpixo/leansdd (2 stars, last pushed 7d ago), licensed MIT. It adds 2,312 tokens to every session, about $0.0116 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-31.