alignfirst: Instructions file for Codex

AGENTS.md

alignfirst AGENTS.md is an instructions file for Codex, OpenCode from paleo/alignfirst. It costs 869 tokens per session, scanned A, original, CC0-1.0.

A repository guide containing project rules for an npm workspace, where several packages share one code repository, plus its tools, tests, releases, and documentation.

In plain words
What is it for?
Working in the paleo/alignfirst repository, including TypeScript packages, linting with Biome, testing with Vitest, and publishing through Changesets and CI.
Why use it?
It gives the coding agent the project-specific rules it needs to search, edit, test, and release code consistently.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: built for openclaw.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/paleo/alignfirst/agents-md"><img src="https://agentmods.dev/badge/instructions/paleo/alignfirst/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 869 This file is loaded in full into every session.
When invoked 869 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.00869 $0.00869
Opus 5.5 $0.00348 $0.00348
Sonnet 5.5 $0.00174 $0.00174
Haiku 4.5 $0.00087 $0.00087

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

Security

Grade A, and why

alignfirst 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 5d 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 · 51 lines

How it starts

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

Repository Guidelines

Start every session with the project context

Run npx -y alignfirst context from the repository root as your first command in the session. It prints the project conventions (ticket IDs, branch names, commits), the documentation map, and the AlignFirst protocols.

Tooling

Package manager: npm workspaces (root package.json declares "workspaces": ["packages/*"]).

Runtime: Node 26 (.nvmrc). ESM only ("type": "module").

Language: TypeScript with strict: true, module: NodeNext. Each package has a tsconfig.build.json (emits dist/) and a tsconfig.json (noEmit, includes src + test).

Linter / formatter: Biome (biome.json at root). npm run lint / npm run lint:fix.

Test runner: Vitest (vitest run). Per-package: npm test --workspace <name>. All packages: npm test. Suites that build and spawn real CLIs run separately through npm run test:integration.

Model-test policy: OpenClaw conversation-model scenarios are opt-in validation only when changed code, playbook, fixtures, dependencies or an upgrade has a concrete reason to affect AlignDev behavior with OpenClaw. They are not routine build/test hygiene for unrelated workspace, CLI or docs-only changes. Record the expected impact and reason before running a few representative targeted scenarios; never run the full matrix by default. Investigate and fix unexpected errors before any justified expansion of scenarios, surfaces or iterations. Use only Terra for conversation-model tests and Haiku through OpenRouter for the judge. The Anthropic and Z.AI keys are not provisioned; their providers stay in the test config as examples. Ordinary automated unit/integration tests and manual CLI checks remain unaffected. See Running the OpenClaw Tests.

Releases: Changesets (.changeset/). Base branch: main. Default access: public. Stable releases publish from CI through npm trusted publishing — see docs/releasing.md. For local opt-in previews, see docs/publishing-previews.md.

Read the full file on GitHub · 51 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. 5d ago Changed · -8 lines · -199 tokens per session 75eb40c7621f
  2. 7d ago Changed · -56 tokens per session f3b77a7eb038
  3. 9d ago Changed · +2 lines · +147 tokens per session d2e058cebe7b
  4. 15d ago Changed · +65 tokens per session 23f4cbe00f57
  5. 17d ago Changed · -2 lines · +86 tokens per session fa5dca255799
  6. 19d ago Changed · -1 tokens per session 9a3e77397e61
  7. 21d ago Changed · +16 tokens per session 285503f42797
  8. 27d ago Changed · -2 tokens per session 3d494a9b0150
  9. 1mo ago Changed · +8 tokens per session 79dc02261595
  10. 1mo ago First seen · 59 lines · 805 tokens per session scan A fbf8d664ea38

Subscribe to this mod's changes

alignfirst AGENTS.md is an instructions file published in the GitHub repository paleo/alignfirst (89 stars, last pushed 5d ago), licensed CC0-1.0. It adds 869 tokens to every session, about $0.0035 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

alignfirst AGENTS.md compared with instructions from other repositories

alignfirst AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
alignfirst AGENTS.mdpaleo/alignfirstInstructions file895d agoCC0-1.0A869Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode