AgentRecall: Instructions file for Claude Code

CLAUDE.md

AgentRecall CLAUDE.md is an instructions file for Claude Code from AkbarDizaji/AgentRecall. It costs 4,662 tokens per session, scanned A, original, MIT.

Repository instructions for AgentRecall, a memory system that helps an agent decide which conversation information is worth saving for later.

In plain words
What is it for?
Use them when deciding whether to store or skip conversation details and when handling AgentRecall's capture and finalization process.
Why use it?
They prevent memory from being saved based only on keywords and require an explicit judgment when a turn may contain reusable information.

Instructions file for Claude Code

Written for Claude Code: UserPromptSubmit hook event.

This is AkbarDizaji/AgentRecall's own configuration. It tells Claude Code how to work on AgentRecall itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AgentRecall configures →

Reuse

Borrowing it

Nothing to install: this file belongs to AkbarDizaji/AgentRecall. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AkbarDizaji/AgentRecall/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/AkbarDizaji/AgentRecall

Made for: Claude Code.

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 AgentRecall CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/akbardizaji/agentrecall/claude-md/github.svg)](https://agentmods.dev/instructions/akbardizaji/agentrecall/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/akbardizaji/agentrecall/claude-md"><img src="https://agentmods.dev/badge/instructions/akbardizaji/agentrecall/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for AgentRecall CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/akbardizaji/agentrecall/claude-md"><img src="https://agentmods.dev/badge/instructions/akbardizaji/agentrecall/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,662 This file is loaded in full into every session.
When invoked 4,662 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.04662 $0.04662
Opus 5.5 $0.01865 $0.01865
Sonnet 5.5 $0.00932 $0.00932
Haiku 4.5 $0.00466 $0.00466

Measured today against content hash 6aa526b795a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

AgentRecall 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.

CLAUDE.md · 413 lines

How it starts

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

Memory (AgentRecall)

The agentrecall MCP server holds rules learned from past feedback. Recall and capture are both wired as deterministic hooks: the UserPromptSubmit hook injects the relevant rules automatically, and the Stop hook finalizes each turn through agentrecall finalize-turn. AgentRecall's memory decisions come from a semantic capture judge, not from keyword heuristics: the judge decides whether the turn holds memory-worthy content, and AgentRecall only validates that decision and persists it.

AgentRecall contract: 4 — these instructions were written for that contract: the semantic capture judge, Stop-hook judgment enforcement, reported rule outcomes, and rules placed in the code (anchors, domain concepts, the glossary). Hooks run the globally installed agentrecall, never this repository's source, so the two can drift apart. Every injected context block names the contract the installed build actually implements, in its heading: ## AgentRecall Technical Context (agentrecall <version>, contract <n>). If that stamp is missing, or names a lower contract than the line above, the installed CLI predates these instructions and cannot accept submit_capture_judgment or rule_outcomes — nothing else reports that, and capture silently stops happening. Run agentrecall doctor and tell the user what it says rather than retrying the calls.

You are that judge. AgentRecall makes no model or network calls of its own — it has no judge to fall back on and never guesses with keywords. So the Stop hook does not decide capture on its own: it enforces that a judgment exists. If a substantive turn reaches Stop with no verdict, AgentRecall declines to let the turn finish and asks you for one; you call submit_capture_judgment, and the turn is finalized from your verdict. A Skip verdict is a complete answer — most turns get one.

Semantic capture judge

Incidental keywords never cause a capture. The judge decides; the system validates and stores. Practical consequences for you:

Read the full file on GitHub · 413 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 · +2 lines · +37 tokens per session 6aa526b795a6
  2. 2mo ago Changed · +11 lines · +170 tokens per session 18318c9fabf6
  3. 2mo ago Changed · +29 lines · +395 tokens per session a9c0ac0e5b95
  4. 2mo ago First seen · 371 lines · 4,060 tokens per session scan A 5336e06f9921

Subscribe to this mod's changes

AgentRecall CLAUDE.md is an instructions file published in the GitHub repository AkbarDizaji/AgentRecall (9 stars, last pushed yesterday), licensed MIT. It adds 4,662 tokens to every session, about $0.0186 per session on Opus 5.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

AgentRecall CLAUDE.md compared with instructions from other repositories

AgentRecall CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
AgentRecall CLAUDE.mdAkbarDizaji/AgentRecallInstructions file9yesterdayMITA4,662Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode