consult AGENTS.md

Repository instructions for Consult, a portable collection of guidance files for coding agents such as Claude Code, Codex, Cursor, and others. They explain which files are authoritative and how the repository is organized.

In plain words
What is it for?
Use them when changing Consult skills, repository guidance, plugin mirrors, maintenance scripts, or other agent-instruction files.
Why use it?
They prevent edits to generated mirrors or the wrong source file. They also clarify that the repository mainly contains agent instructions and maintenance helpers, not application code.

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

Made for: Codex, OpenCode.

Per session 3,763 This file is loaded in full into every session.
When invoked 3,763 The same file — it is already loaded in full.
Security scan B 1 finding. 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.03763 $0.03763
Opus 5 $0.01881 $0.01881
Sonnet 5 $0.00753 $0.00753
Haiku 4.5 $0.00376 $0.00376

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

Security

Grade B, and why

consult AGENTS.md scanned grade B 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 2d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`plugin/skills/` mirror under `~/.gemini/config/plugins/consult`.
AGENTS.md · 311 lines

How it starts

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

AGENTS.md

This file provides guidance to coding agents (Claude Code, Codex, Cursor, and others that read AGENTS.md) when working with code in this repository.

What this repo is

Consult is a portable skill pack for coding agents (Claude Code, Codex, Cursor, Copilot, Gemini CLI, Google Antigravity, OpenCode, Pi, Windsurf). It ships prose (SKILL.md files plus a few maintenance helpers), not application code. Most edits are to skill bodies, the top-level AGENTS.md, or the README.md. There is no application build or service to run; tests cover repo maintenance helpers, plugin packaging, and extension packages.

Source of truth and mirrors

  • Canonical skills: agents/.agents/skills/<name>/SKILL.md. Every skill lives here; siblings may add agents/, references/, and scripts/.
  • Repo instructions: AGENTS.md is the main portable instruction file in the repo. CLAUDE.md mirrors the same maintainer guidance for hosts that read Claude-specific files. Normal Consult use relies on skill frontmatter, plugin metadata, and the workflow skill; users do not need to install or merge system instruction files.
  • Claude Code plugin mirror: plugin/skills/<name> contains generated copies of canonical skills from agents/.agents/skills/<name>. .claude-plugin/marketplace.json points Claude Code at the plugin/ root, where plugin/.claude-plugin/plugin.json exposes namespaced /consult:<skill> slash commands.
  • Codex plugin package: .agents/plugins/marketplace.json points Codex at the plugin/ root, and plugin/.codex-plugin/plugin.json exposes the same generated skill mirror to Codex as a plugin. Keep the Codex marketplace and manifest in sync with Claude plugin packaging.
  • Cursor plugin package: .cursor-plugin/marketplace.json points Cursor at the plugin/ root, and plugin/.cursor-plugin/plugin.json exposes the same generated skill mirror as a skills-only Cursor plugin. Keep the Cursor marketplace and manifest in sync with Claude plugin packaging.
  • Google Antigravity plugin package: plugin/plugin.json is the Antigravity marker for Consult. Local installs create an Antigravity plugin directory that links only plugin/plugin.json and the generated plugin/skills/ mirror under ~/.gemini/config/plugins/consult.
  • Install layout: agents/ is a GNU Stow package. ./setup.sh is the one-click local installer: it explains the actions, asks for approval, runs Stow to link the shared skills under ~/.agents/, fans those out to per-tool locations, prunes manual Codex links when the Consult Codex plugin is installed, and re-runs the plugin-sync. System AGENTS.md / CLAUDE.md files are not part of Consult installation.

Read the full file on GitHub · 311 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. 2d ago First seen · 311 lines · 3,763 tokens per session scan B cd0918e55e7e

Subscribe to this mod's changes

consult AGENTS.md is an instructions file published in the GitHub repository kreek/consult (1 stars, last pushed 7d ago), licensed MIT. It adds 3,763 tokens to every session, about $0.0188 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.