alint AGENTS.md

alint AGENTS.md is an instructions file for Codex, OpenCode from moeru-ai/alint. It costs 2,992 tokens per session, scanned A, original, MIT.

A development guide for alint, a TypeScript workspace that checks source code with configurable rules and plugins. It describes the command-line tool, configuration, core engine, plugin SDK, and testing commands.

In plain words
What is it for?
Use it when changing rules, plugins, configuration loading, diagnostics, caching, usage tracking, command-line behavior, or package tests.
Why use it?
It makes package-scoped development and testing clearer in a multi-package workspace and records the project’s preferred pnpm and Vitest workflow.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/moeru-ai/alint/agents-md.svg)](https://agentmods.dev/instructions/moeru-ai/alint/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/moeru-ai/alint/agents-md"><img src="https://agentmods.dev/badge/instructions/moeru-ai/alint/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,992 This file is loaded in full into every session.
When invoked 2,992 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.02992 $0.02992
Opus 5 $0.01496 $0.01496
Sonnet 5 $0.00598 $0.00598
Haiku 4.5 $0.00299 $0.00299

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

Security

Grade A, and why

alint 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 · 122 lines

How it starts

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

alint Agent Guide

  • pnpm workspace, TypeScript, Vitest, ESLint.
  • Components:
    • packages/cli: CLI entrypoint, argument parsing, setup/config commands, reporter output, and handoff into core.
    • packages/config: project config loading plus global/local setup TOML paths, parsing, merging, and writing.
    • packages/core: public rule/plugin DSL, run engine, source extraction/runtime, model resolution, diagnostics, cache, and usage tracking.
    • packages/plugin-example: example rule plugin that exercises the public SDK and model-backed rule flow.

Structure & Responsibilities

  • Build pipeline refs: .github/workflows; lint rules in eslint.config.ts.

Commands (pnpm with filters)

Use pnpm workspace filters to scope tasks. Examples below are generic; replace the filter with the target workspace name (e.g. @alint-js/core, etc.).

  • Typecheck
    • pnpm -F <package.json name> typecheck
    • Example: pnpm -F @alint-js/cli typecheck (runs tsc).
  • Unit tests (Vitest)
    • Targeted: pnpm exec vitest run <path/to/file> e.g. pnpm exec vitest run packages/cli/src/cli/cli.test.ts (not recommended as we prefer to run entire package test instead of file)
    • Workspace: pnpm -F <package.json name> exec vitest run e.g. pnpm -F @alint-js/cli exec vitest run
    • Root pnpm test:run: runs all tests across registered projects. If no tests are found, check vitest.config.ts include patterns.
    • Root vitest.config.ts includes packages/cli and other projects; each app/package can have its own vitest.config.
  • Lint
    • pnpm lint and pnpm lint:fix
    • Formatting is handled via ESLint; pnpm lint:fix applies formatting.
  • Build
    • pnpm -F <package.json name> build
    • Example: pnpm -F @alint-js/cli build (typecheck + electron-vite build).

Development Practices

  • Favor clear module boundaries; shared logic goes in packages/.
  • Keep runtime entrypoints lean; move heavy logic into services/modules.
  • Prefer functional patterns + DI (injeca) for testability.
  • Use Valibot for schema validation; keep schemas close to their consumers.
  • Use Eventa (@moeru/eventa) for structured IPC/RPC contracts where needed.
  • Use errorMessageFrom(error) from @moeru/std to extract error messages instead of manual patterns like error instanceof Error ? error.message : String(error). Pair with ?? 'fallback' when a default is needed.
  • Do not add backward-compatibility guards. If extended support is required, write refactor docs and spin up another Codex or Claude Code instance via shell command to complete the implementation with clear instructions and the expected post-refactor shape.
  • If the refactor scope is small, do a progressive refactor step by step.
  • When modifying code, always check for opportunities to do small, minimal progressive refactors alongside the change.

Read the full file on GitHub · 122 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 First seen · 122 lines · 2,992 tokens per session scan A fbc9ac8634f5

Subscribe to this mod's changes

alint AGENTS.md is an instructions file published in the GitHub repository moeru-ai/alint (53 stars, last pushed 7d ago), licensed MIT. It adds 2,992 tokens to every session, about $0.0150 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.