post-cortex: Instructions file for Claude Code

CLAUDE.md

post-cortex CLAUDE.md is an instructions file for Claude Code from julymetodiev/post-cortex. It costs 870 tokens per session, scanned A, original, MIT.

Repository instructions for post-cortex, a project that stores coding knowledge and conversation context. They define when to search stored context, how to record decisions and fixes, and which context tools to use.

In plain words
What is it for?
Use them when working on post-cortex code, architecture, decisions, bugs, or requirements that should be searched and logged.
Why use it?
They help the agent recover relevant project knowledge before answering technical questions and preserve useful information after work is completed.

Instructions file for Claude Code

Written for Claude Code: UserPromptSubmit hook event. Also seen: mentions CLAUDE.md; mentions subagents.

This is julymetodiev/post-cortex's own configuration. It tells Claude Code how to work on post-cortex 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 post-cortex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to julymetodiev/post-cortex. 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/julymetodiev/post-cortex/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/julymetodiev/post-cortex

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 post-cortex CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/julymetodiev/post-cortex/claude-md/github.svg)](https://agentmods.dev/instructions/julymetodiev/post-cortex/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/julymetodiev/post-cortex/claude-md"><img src="https://agentmods.dev/badge/instructions/julymetodiev/post-cortex/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 post-cortex CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/julymetodiev/post-cortex/claude-md"><img src="https://agentmods.dev/badge/instructions/julymetodiev/post-cortex/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 870 This file is loaded in full into every session.
When invoked 870 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.00870 $0.00870
Opus 5.5 $0.00348 $0.00348
Sonnet 5.5 $0.00174 $0.00174
Haiku 4.5 $0.00087 $0.00087

Measured 16d ago against content hash f282b69f8ff7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

post-cortex 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 16d 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 · 43 lines

How it starts

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

CLAUDE.md

Docs: PROJECT.md | No "Co-Authored-By" in commits

Session

Session ID bf52f62e-8e26-4e9e-8501-c42753d9a9ee Workspace ID | ba76f569-a50d-46cd-a5dd-7c5577f12d1f

Rules

  1. Search before answering — call semantic_search (session → workspace → global) BEFORE answering any code/architecture question
  2. Log after discovery — call update_conversation_context AFTER making decisions, fixing bugs, or changing code
  3. Self-check — the Stop hook blocks a turn that changed project files (edits, git commit) without a later update_conversation_context

Interaction Types

qa · decision_made · problem_solved · code_change · requirement_added · concept_defined

MCP Tools

Call directly — do NOT use subagents for simple search/log operations.

Tool When
semantic_search Before answering code/arch questions. Scope: session / workspace / global. Returns structured payload (scores, content_id, content_type, snippet, timestamp)
update_conversation_context After decisions, fixes, changes. Single or bulk. entities (≥1) and relations (≥1) are required (dangling/self-relations rejected). Content: typed keys (decision/rationale, problem/solution, concept/definition, question/answer, file/changes, requirement) or generic title/description
get_structured_summary Session analysis and reviews. include values: decisions, insights, entities, questions, all. Also: decisions_limit, entities_limit, questions_limit, concepts_limit, min_confidence, compact
query_conversation_context Flexible queries. query_type values: find_related_entities, get_entity_context, search_updates, entity_importance, entity_network, find_related_content (topic, max_results), key_decisions, key_insights (limit), session_statistics, structured_summary, decisions, open_questions, assemble_context, trace_relationships, get_most_important_entities, find_entities_by_type
session Sessions: create, list, load (session_id), search (query), update_metadata (session_id + name/description; preserves created_at), delete (evicts cache + storage)
manage_workspace Workspace CRUD: create, list, get, delete, add_session, remove_session; cards: get_card, update_card (content, expected_version; card: "user" for the user card)
assemble_context Graph-aware retrieval (semantic + 1-hop traversal + impact analysis = reverse dependencies, "who depends on X"). Scope: session or workspace. Returns items (budget-packed), entity_context (with DirectMention / GraphNeighbor{via,relation}), impact, total_tokens, formatted_text (LLM-ready)
manage_entity delete (entity_name; cascades typed edges), delete_update (entry_id; removes a single context row from hot/warm/incremental caches and persists)
admin health, vectorize_session (session_id), vectorize_stats, create_checkpoint (session_id)

Read the full file on GitHub · 43 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. 16d ago Changed · +28 tokens per session f282b69f8ff7
  2. 19d ago Changed · +33 tokens per session 091371d4a050
  3. 2mo ago First seen · 43 lines · 809 tokens per session scan A 2e7651b3760e

Subscribe to this mod's changes

post-cortex CLAUDE.md is an instructions file published in the GitHub repository julymetodiev/post-cortex (20 stars, last pushed 17d ago), licensed MIT. It adds 870 tokens to every session, about $0.0035 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-30.

Related

post-cortex CLAUDE.md compared with instructions from other repositories

post-cortex CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
post-cortex CLAUDE.mdjulymetodiev/post-cortexInstructions file2017d agoMITA870Claude 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