ask-llm AGENTS.md

ask-llm AGENTS.md is an instructions file for Codex, OpenCode from Lykhoyda/ask-llm. It costs 1,120 tokens per session, scanned A, original, MIT.

Project instructions for ask-llm, a codebase that connects applications to language-model providers. They record build, test, documentation, architecture, and provider-specific rules for AI agents working on the project.

In plain words
What is it for?
It is for maintaining the ask-llm project: installing dependencies, building packages, running tests and linting, updating architecture decisions, and keeping provider documentation aligned with code.
Why use it?
They keep important project knowledge in the repository so agents can follow the required build order and avoid breaking documented provider differences. They also identify checks for documentation and code consistency.

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/lykhoyda/ask-llm/agents-md
Clone the repo
git clone --depth 1 https://github.com/Lykhoyda/ask-llm

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 ask-llm AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lykhoyda/ask-llm/agents-md.svg)](https://agentmods.dev/instructions/lykhoyda/ask-llm/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lykhoyda/ask-llm/agents-md"><img src="https://agentmods.dev/badge/instructions/lykhoyda/ask-llm/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,120 This file is loaded in full into every session.
When invoked 1,120 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.01120 $0.01120
Opus 5 $0.00560 $0.00560
Sonnet 5 $0.00224 $0.00224
Haiku 4.5 $0.00112 $0.00112

Measured today against content hash 7b084b3f2f9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ask-llm 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 today.

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 · 22 lines

How it starts

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

Project agent memory

This file is the project's committed home for project-intrinsic agent knowledge: build, test, release, architecture, and sharp-edge notes that should travel with the code.

  • Build/test: yarn install --immutable, then yarn build (topological — run it BEFORE yarn test; workspace tests resolve sibling packages from dist/, so unbuilt @ask-llm/shared fails every suite). Lint via yarn lint (biome format is enforced; biome check --write fixes). Harness-facing changes use the canonical local-only yarn prepr:harness gate; opt-in live authorization and evidence rules are in docs/HARNESS-SMOKE.md.
  • Architecture decisions live in docs/DECISIONS.md (numbered ADRs, newest prepended at the top); provider behavior differences are deliberate and cataloged in docs/PROVIDER-PARITY.md — read both before "aligning" providers.
  • Docs-model drift is CI-enforced: scripts/check-docs-drift.mjs requires apps/docs/.vitepress/theme/providers.ts defaultModel (and gemini/antigravity fallbackModel) values to match each package's constants.ts literally, matched inside each provider's own object block. Change both together.
  • MCP Registry rejects duplicate versions. Keep normal and recovery publication routed through scripts/publish-mcp-registry.mjs; it verifies exact existing records and publishes only missing ones (ADR-139). A manual registry retry must not re-enter npm publication.
  • Public package source tags are remote <name>@<version> refs managed only by scripts/create-or-verify-package-tags.mjs on normal and recovery release paths (ADR-151/152); changesets/action v2 must keep both create-github-releases: false and push-git-tags: false, while the helper excludes private shared, never retags/forces, and coexists with the single unified v* GitHub Release.
  • Gemini quota fallback is gemini-3.7-flash (ADR-154); the antigravity fallback stays gemini-3.5-flash deliberately — agy slugs are evidence-pinned to its live catalog (ADR-137), so never bump both in sympathy.
  • Provider default-model constants leak further than the provider package: packages/llm-mcp/src/constants.ts (PROVIDERS.*.defaultModel) is threaded into executors as options.model by machine.ts, so executors cannot use "was a model passed?" to detect user pins (see ADR-137).
  • agy (Antigravity) CLI ground truth for this repo's executor is recorded in ADR-137 (minimum 1.1.5, base slug + separate --effort, per-slug effort tiers, the live-captured invalid model selection error grammar) and ADR-141 (answers come from --output-format json stdout — key response, usage object — on every supported version; --disable-slash-commands is 1.1.9+ only).
  • Grok transport and model identity are separate (ADR-146/147; /brainstorm exact Grok + Sol routing and partial-consensus rules are in ADR-148): unified startup probes both xai-api and grok-cli readiness because request-level harness selection happens later (an explicit ASK_GROK_HARNESS narrows readiness to that default), but execution selects exactly one explicit/default harness with no failover; Cursor Agent is a model-neutral harness (ask-cursor-agent) requiring separate provider + exact Cursor catalog ID, never a provider itself.
  • @ask-llm/plugin is the one publishable Claude Code + Cursor Agent + Pi host package (ADR-142/147); host contracts live in the skill adapters, apps/docs/plugin/cursor.md, and docs/PI-COMPATIBILITY.md. Cursor uses Agent Skills + a unified-only mcp.json (one ask-llm entry; split Codex/Grok servers are optional user installs whose leaves are preferred when exposed) exposing exactly codex-pair/grok-pair (explicit empty agents/commands/hooks so Claude agents and hooks/hooks.json are not auto-discovered; other skills deferred), never Claude hooks/namespaces; the Claude plugin .mcp.json bundles only Codex while @ask-llm/mcp/@ask-llm/grok-mcp stay user-scoped, and pair skills call unified ask-llm only fully pinned; Pi excludes fable-review/grok-pair, uses native provider tools, and codex-pair requires marker + project trust + a user-owned canonical-project allowlist. The published Pi host floor must equal the oldest exact pi-package-smoke matrix pin (currently 0.83.0).

Read the full file on GitHub · 22 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. today Changed 7b084b3f2f9d
  2. 4d ago First seen · 22 lines · 1,120 tokens per session scan A f6288ed35867

Subscribe to this mod's changes

ask-llm AGENTS.md is an instructions file published in the GitHub repository Lykhoyda/ask-llm (16 stars, last pushed yesterday), licensed MIT. It adds 1,120 tokens to every session, about $0.0056 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.