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.
npx agentmods add instructions/minns-ai/agent-forge-sdk/claude-mdgit clone --depth 1 https://github.com/Minns-ai/agent-forge-sdkWrote 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.
[](https://agentmods.dev/instructions/minns-ai/agent-forge-sdk/claude-md)<a href="https://agentmods.dev/instructions/minns-ai/agent-forge-sdk/claude-md"><img src="https://agentmods.dev/badge/instructions/minns-ai/agent-forge-sdk/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03198 | $0.03198 |
| Opus 5 | $0.01599 | $0.01599 |
| Sonnet 5 | $0.00640 | $0.00640 |
| Haiku 4.5 | $0.00320 | $0.00320 |
Grade A, and why
agent-forge-sdk 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 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.
How it starts
The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
@minns/agent-forge — Project Directive
Overview
TypeScript agent framework SDK. ESM-only, strict TypeScript, no default exports. Powered by minns-sdk (^0.7.2) as the optional memory layer. Ships an adaptive two-tier execution engine with reasoning engines, composable middleware, and a graph execution engine.
Architecture
src/
index.ts — Public API barrel export (all named exports)
agent.ts — AgentForge class (top-level API: run, stream, runWithEvents)
types.ts — All public type definitions
errors.ts — Error hierarchy (AgentForgeError, LLMError, ToolExecutionError, MemoryError, PipelinePhaseError)
directive/
directive.ts — resolveDirective() merges defaults
templates.ts — buildAgentPrompt, buildPlanPrompt, buildNextActionPrompt, buildIntentParsePrompt
llm/
provider.ts — LLMProvider interface
openai-provider.ts — OpenAI-compatible provider (fetch-based)
anthropic-provider.ts — Anthropic native provider (lazy-loads @anthropic-ai/sdk)
vcr.ts — VCRProvider: record/replay wrapper for hermetic tests + eval oracle (InMemoryCassette, JSON persistence)
types.ts — LLM-specific types
tasks/
task.ts — Task lifecycle: TaskStatus/TaskType, isTerminalTaskStatus guard, canTransition, generateTaskId (type-prefixed crypto ids), TaskTable (guarded mutations)
coordinator/
coordinator.ts — Coordinator: fan-out/fan-in multi-agent (read-concurrent/write-serial, push-not-poll, self-contained workers, continue-vs-spawn, synthesize)
memory/
memory-manager.ts — MemoryManager: searchClaims + query in parallel
context-ranker.ts — selectBestContext() ranks claims by confidence
fact-extractor.ts — extractFactsFromClaims (subject-predicate-object → key/value)
session/
session-store.ts — SessionStore interface
in-memory-store.ts — InMemorySessionStore (LRU, default 10,000 entries)
tools/
tool.ts — Capability layer: buildTool() (safe defaults), planToolBatches (concurrency), evaluatePolicy (allow/deny/ask), capResultSize
tool-registry.ts — ToolRegistry: register, disclose (loaded/deferred/search), authorize, safely execute tools (validate → authorize → execute → cap)
builtin/
search-memories.ts — searchMemoriesTool (searchClaims + query)
store-fact.ts — storeFactTool (sendMessage)
report-failure.ts — reportFailureTool (sendMessage)
pipeline/
adaptive-runner.ts — AdaptiveRunner: two-tier execution engine (agentic loop + graph pipeline)
runner.ts — PipelineRunner (legacy, deprecated — use AdaptiveRunner)
phases/
intent-phase.ts — LLM intent classification (used by legacy runner)
semantic-write-phase.ts — sendMessage for graph ingestion
memory-retrieval-phase.ts — searchClaims + query in parallel
plan-phase.ts — LLM plan generation
auto-store-phase.ts — Auto-store facts for inform intents
action-loop-phase.ts — Flat tool loop or MCTS tree search
reasoning-phase.ts — Store reasoning steps (no-op, kept for compat)
goal-check-phase.ts — Run goalChecker, handle completion
response-phase.ts — LLM response generation
finalize-phase.ts — Store assistant message, update history
reasoning/
types.ts — TreeNode, ComplexityAssessment, ReflexionConstraint, CritiqueResult, etc.
meta-reasoner.ts — MetaReasoner: classifies complexity, decides phase skipping
reflexion.ts — ReflexionEngine: extracts constraints from claims
tree-search.ts — TreeSearchEngine: MCTS (PUCT selection + value backpropagation)
self-critique.ts — SelfCritique: validates responses, rewrites if rejected
world-model.ts — WorldModel: simulates action outcomes, predicts risk
subagent/
sub-agent.ts — SubAgentRunner: spawn + execute child agents
types.ts — SubAgentDefinition, SubAgentResult, SubAgentTask
events/
emitter.ts — AgentEventEmitter: typed events, callback + async iterable
runtime/ — minns control-plane contract (deploy-time bridge)
contract.ts — InvokeRequest/InvokeResponse wire types + AGENT_ID_RESOURCE_ATTR
env.ts — readMinnsEnv(): MINNS_TELEMETRY_URL/LOGS_URL/APPROVAL_URL/TOKEN/AGENT_ID
otlp.ts — TelemetryReporter: OTLP/JSON GenAI span exporter (light "observed" tier)
logs.ts — LogShipper: batched log shipping to MINNS_LOGS_URL
approval.ts — createHttpApprovalHandler: HITL → control-plane approval queue
durable.ts — createGraphStepHandler: maps invoke/checkpoint/interrupt → step contract
serve.ts — serveAgent(): HTTP harness exposing /v1/invoke + /healthz
(+ /v1/execute-candidate when onExecuteCandidate is supplied)
prompt.ts — fetchAgentPrompt / PromptProvider: the opto-optimised prompt, served back
trace-attrs.ts — span vocabulary (gen_ai.* / minns.* keys, span names) opto and the control plane read
traced-provider.ts — tracedProvider(): one llm.call span per provider call (messages, tools, output, tokens)
utils/
run-context.ts — AsyncLocalStorage run identity (rollout id, per-run tool onion, counters)
timer.ts — PipelineTimer: phase timing
json.ts — safeJsonParse, canonicalizeJson
fingerprint.ts — computeContextFingerprint
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.
- today Changed · +9 lines · +205 tokens per session 94aab34ef73f
- 5d ago First seen · 239 lines · 2,993 tokens per session scan A adc5900998ab
agent-forge-sdk CLAUDE.md is an instructions file published in the GitHub repository Minns-ai/agent-forge-sdk (5 stars, last pushed 3d ago), licensed MIT. It adds 3,198 tokens to every session, about $0.0160 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.
Other instructions, from other repositories
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.
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).
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.
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
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.
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).