Lychee: Instructions file for Codex

AGENTS.md

Lychee AGENTS.md is an instructions file for Codex, OpenCode from LycheeOrg/Lychee. It costs 4,193 tokens per session, scanned C, original, MIT.

A set of development instructions for LycheeOrg/Lychee, a software project. It defines how to resolve unclear requirements, record open questions, and keep specifications as the source of truth.

In plain words
What is it for?
Use it before planning or implementing changes, especially when requirements are unclear or several design options need to be compared.
Why use it?
It prevents agents from planning or coding against unstated assumptions and keeps decisions documented.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex.

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

About the project

Lychee is a self-hosted web application for uploading, organizing, managing, and sharing photographs. It is for people who want to run their own photo gallery and management system on a server or web space.

LycheeOrg/Lychee · 4,330 stars · on GitHub · lycheeorg.dev

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lycheeorg/lychee/agents-md"><img src="https://agentmods.dev/badge/instructions/lycheeorg/lychee/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,193 This file is loaded in full into every session.
When invoked 4,193 The same file — it is already loaded in full.
Security scan C 1 finding. 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.04193 $0.04193
Opus 5.5 $0.01677 $0.01677
Sonnet 5.5 $0.00839 $0.00839
Haiku 4.5 $0.00419 $0.00419

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

Security

Grade C, and why

Lychee AGENTS.md scanned grade C with 1 finding 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 21d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **No surprises.** Avoid destructive commands (e.g., `rm -rf`, `git reset --hard`) unless the user requests them. Stay within the repository sandbox.
AGENTS.md · 123 lines

How it starts

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

Before You Code

  • Clarify ambiguity first. Do not plan or implement until every requirement is understood. Ask the user, record unresolved items in the feature's own docs/specs/4-architecture/features/<NNN>-<feature-name>/open-questions.md (create it from docs/specs/templates/feature-open-questions-template.md if missing), and wait for answers. Capture accepted answers by updating the relevant specification’s requirements/NFR/behaviour/telemetry sections so the spec remains the single source of truth for behaviour.
    • No-direct-question rule: For feature work, never ask the user for clarification, approval, or a decision in chat until the matching open question is logged in the feature's open-questions.md (table row + Question Details entry). Treat violations as blockers—stop work, add the missing entry, then resume the conversation by referencing that question ID.
    • Governance/tooling exemption: Questions about work that belongs to no feature (AGENTS.md, runbooks, templates, conventions, scripts, CI) are asked directly in chat without logging. Still present them in the Options A, B, C format below, ordered by preference, and record the outcome in the governing document itself.
    • Whenever you present alternative approaches—whether for open questions or general solution proposals—first capture or update the entry in the feature's open-questions.md (summary row + Question Details section) so the ambiguity lives on disk, then present the stored text to the user inline in chat. Summarise the options directly in your reply (do not tell the user to open the file), call out the question ID (for example, Q-013-01), and follow the numbered-heading/Options A, B, C format with pros/cons. Order the options by preference (Option A is always the recommended path, Option B the next-best, etc.) so the user sees our best advice first. Keep specifications/plans/tasks limited to that ID until the question is resolved.
  • Work in small steps. During planning, break every change into logical, self-contained tasks that are expected to complete within ≤90 minutes. Execution can take longer if required; the goal is to plan manageable increments, and prepare a Conventional Commit for each finished slice (see Commit protocol).
  • Prime the knowledge map. Skim docs/specs/4-architecture/knowledge-map.md and the up-to-date module snapshot in docs/specs/architecture-graph.json before planning so new work reinforces the architectural relationships already captured there.
  • Template usage. Author new specifications, feature plans, task checklists, and open-questions logs using docs/specs/templates/feature-spec-template.md, docs/specs/templates/feature-plan-template.md, docs/specs/templates/feature-tasks-template.md, and docs/specs/templates/feature-open-questions-template.md so structure, metadata, and verification notes stay uniform across features.
  • ADR context. Before planning or implementation, skim ADRs under docs/specs/6-decisions/ whose related-features/specs entries reference the active feature ID so high-impact clarifications and architectural decisions are treated as required context alongside the roadmap, spec, plan, tasks, and knowledge map.

Read the full file on GitHub · 123 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. 21d ago Changed · +14 tokens per session eb61be1ea651
  2. 1mo ago Changed · +422 tokens per session d755b14b5de5
  3. 2mo ago First seen · 123 lines · 3,757 tokens per session scan C 12d64f7df591

Subscribe to this mod's changes

Lychee AGENTS.md is an instructions file published in the GitHub repository LycheeOrg/Lychee (4,330 stars, last pushed yesterday), licensed MIT. It adds 4,193 tokens to every session, about $0.0168 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Lychee AGENTS.md compared with instructions from other repositories

Lychee AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Lychee AGENTS.mdLycheeOrg/LycheeInstructions file4.3kyesterdayMITC4,193Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode