agents CLAUDE.md

A set of global instructions for a Claude Code project, including its workflow, file locations, and rules for moving between development steps. It uses commands and session markers to coordinate the workflow.

In plain words
What is it for?
Use it to manage a project workflow, initialize file-changing sessions, advance to the next step, list the full plan, and recover or resume paused workflow states.
Why use it?
It gives coding sessions consistent starting rules and tells the agent what to do after each workflow skill. This helps prevent skipped steps or unclear handoffs.

Instructions file

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/nirecom/agents/claude-md
Clone the repo
git clone --depth 1 https://github.com/nirecom/agents
Per session 945 This file is loaded in full into every session.
When invoked 945 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.00945 $0.00945
Opus 5 $0.00473 $0.00473
Sonnet 5 $0.00189 $0.00189
Haiku 4.5 $0.00094 $0.00094

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

Security

Grade A, and why

agents CLAUDE.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 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.

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.

CLAUDE.md · 34 lines

How it starts

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

Global Claude Code Instructions

All work follows rules/core-principles.md.

Workflow

Begin file-modifying sessions with /workflow-init; skip for read-only investigation.

Steps use prefix WF-<TYPE>-N; WF-CODE-N = standard implementation. WF-META-N = planning-only (meta issues, no worktree).

After each skill completes, run: node bin/workflow/next-step --session $CLAUDE_SESSION_ID. Follow ACTION / NEXT_SKILL / NEXT_HINT output — invoke means run the named skill immediately without pausing to ask the user (reserve confirmation for CONFIRM_* gates, the USER_VERIFIED sentinel, and in-skill AskUserQuestion), done means proceed to session close, blocked/abort means see NEXT_HINT for recovery, paused means next-step is deliberately quiet — take no workflow action and continue the user's out-of-workflow work, resuming with echo "<<WORKFLOW_NEXT_STEP_RESUME: {reason}>>" when REASON=next-step-paused or echo "<<WORKFLOW_ENFORCE_WORKFLOW_ON: {reason}>>" when REASON=workflow-off-quiet. Run bin/workflow/next-step --list for the full 16-step plan. Emergency partial reset: echo "<<WORKFLOW_RESET_FROM_{step}: {reason}>>" (reason mandatory; marks prior steps complete, resets target step and after to pending).

Notes

  • Skill procedures settle a step and read the next action in one call: next-step --advance --step <step> --complete|--skipped|--pending [--skip-reason <reason>] --next.
    • record-skip-judgment / record-complexity-and-skip / set-workflow-type support the same --advance [--next] pair for their own step.
    • Pass --next only when the call will consume the returned ACTION block immediately; otherwise omit it and proceed to the skill's own next documented step.
    • --next emits no ACTION= line when the settled step is not the session's current step (ADVANCE_SCOPE=not-current-step) — treat a missing ACTION= as "proceed to your own next step," not an error.
  • Do not use --permission-mode plan. Always use default mode for implementation tasks.
  • Workflow state reset is main-conversation only — emit <<WORKFLOW_RESET_FROM_{step}: {reason}>> only when holistic context justifies it.
  • rules/test.md is not auto-injected — Read it before writing, reviewing, or running tests.
  • rules/docs.md is not auto-injected — Read it before writing or updating documentation.
  • rules/github-issues.md is not auto-injected — Read it before any issue or PR operation.
  • rules/branch.md is not auto-injected — Read it before naming a branch or recording branching.
  • rules/worktree.md is not auto-injected — Read it before creating, entering, or removing a worktree.
  • rules/coding.md is not auto-injected — Read it before writing or editing code.
  • rules/ops.md is not auto-injected — Read it before any destructive or system-state-changing operation.
  • For trivial edits that temporarily suspend workflow enforcement, see rules/workflow-off.md (when it applies) and /enforce-workflow-off (how).
  • rules/mid-workflow-findings.md is not auto-injected — Read it for bugs, follow-ups, or next-task findings discovered mid-workflow.
  • When working inside the agents repository itself, also consult docs/agents-repo-dev.md.
  • When you encounter an issue, concern, or unexpected outcome that core-principles + workflow don't resolve, report it: rules/supervisor-reporting.md says when, /supervisor-report does it.
  • write-code is not a tracked next-step step — invoke it manually once write_tests/review_tests complete, before /run-tests.
  • For keeping the Stop guard quiet during long-running work — automatic while a delegated step is in flight, NEXT_STEP_PAUSE otherwise — see rules/stop-guard-exemptions.md.

Read the full file on GitHub · 34 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 · 34 lines · 945 tokens per session scan A ba4672b2c0e4

Subscribe to this mod's changes

agents CLAUDE.md is an instructions file published in the GitHub repository nirecom/agents (3 stars, last pushed 3d ago), licensed MIT. It adds 945 tokens to every session, about $0.0047 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-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens