stacklit: Instructions file for Codex

AGENTS.md

stacklit AGENTS.md is an instructions file for Codex, OpenCode from glincker/stacklit. It costs 721 tokens per session, scanned A, original, MIT.

Repository instructions for contributors and coding agents working on Stacklit, a Go command-line tool that indexes codebases and serves the result over MCP. They describe the project layout, build commands, tests, and development rules.

In plain words
What is it for?
Use them when building, testing, or editing Stacklit itself, including its parser, dependency graph, command-line interface, MCP server, and setup code.
Why use it?
They give an agent the local conventions and verification steps needed to change the Stacklit repository without guessing where code belongs or how to test it.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions Claude Code; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/glincker/stacklit/agents-md"><img src="https://agentmods.dev/badge/instructions/glincker/stacklit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 721 This file is loaded in full into every session.
When invoked 721 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.00721 $0.00721
Opus 5.5 $0.00288 $0.00288
Sonnet 5.5 $0.00144 $0.00144
Haiku 4.5 $0.00072 $0.00072

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

Security

Grade A, and why

stacklit 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 · 55 lines

How it starts

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

AGENTS.md

Guide for agents and people working on the Stacklit repo itself. If you only want to use Stacklit on your own project, read README.md and docs/INSTALL.md.

What this is

A Go CLI that indexes a codebase into stacklit.json (modules, exports, dependency edges, hints) plus a symbol graph, and serves it over MCP. Deterministic, no LLM, no network calls from the CLI. Module path github.com/glincker/stacklit, Go version from go.mod.

Build and test

make build                 # ./stacklit
go vet ./...
go test ./... -race -count=1
go build -o /tmp/stacklit ./cmd/stacklit   # try it on another repo

CI runs vet and tests on Linux, macOS and Windows. Node is only needed for npm/.

Where things live

Path Holds
cmd/stacklit main package
internal/cli Cobra commands
internal/parser, internal/graph extractors and the dependency and symbol graph
internal/engine, internal/renderer, internal/schema pipeline, outputs, index types
internal/mcp MCP server (stdio)
internal/setup stacklit setup targets, hooks, the embedded skill
skills/stacklit/SKILL.md the skill; internal/setup/skill/SKILL.md and plugins/stacklit/skills/stacklit/SKILL.md must match it
plugins/stacklit, .claude-plugin/ Claude Code plugin and marketplace
server.json, npm/ MCP registry entry, npm wrapper
scripts/ install.sh, the llms-full.txt generator, sync helpers
docs/ARCHITECTURE.md pipeline detail

Rules

  • Commit subjects: <type>: <description> with type one of feat, fix, perf, refactor, docs, test, chore. Keep them short.
  • No em dashes or en dashes in code, comments, docs or commit messages. Plain sentences, no marketing language.
  • Add a failing test first for behavior changes. Parser tests sit next to the parsers and use testdata/.
  • Claims about size or speed in docs must come from bench/ output.
  • Do not describe unmerged features as shipped.
  • Do not commit generated files (stacklit.json, docs/DEPENDENCIES.md) unless the change is about them; CI refreshes them.
  • Release files (.goreleaser.yml, .github/workflows/release.yml) and npm/package.json are owner-controlled. Ask before editing.
  • Never commit secrets or .env files.

Read the full file on GitHub · 55 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 · 55 lines · 721 tokens per session scan A 6a4a24a3ef11

Subscribe to this mod's changes

stacklit AGENTS.md is an instructions file published in the GitHub repository glincker/stacklit (131 stars, last pushed 4d ago), licensed MIT. It adds 721 tokens to every session, about $0.0029 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-11-09.

Related

stacklit AGENTS.md compared with instructions from other repositories

stacklit AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stacklit AGENTS.mdglincker/stacklitInstructions file1314d agoMITA721Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file280k2d agoMITA4,325Codex, OpenCode