agentic-stack

agentic-stack is a cursor rule for Cursor from codejunkie99/brain. It costs 362 tokens per session, scanned A, a copy of agentic-stack, Apache-2.0.

A set of project instructions that tells the coding agent where to find shared project rules, permissions, memories, and working practices.

In plain words
What is it for?
Use it to load the project's instructions, recall relevant lessons, update shared working notes, and record outcomes after significant actions.
Why use it?
It prevents the agent from missing project-specific guidance before making changes or handling tasks such as debugging, releases, and migrations.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .agent/tools/recall.py "<short description of the task>".

Good fit Use it to load the project's instructions, recall relevant lessons, update shared working notes, and record outcomes after significant actions.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/codejunkie99/brain
agentmods
npx agentmods add rules/codejunkie99/brain/agentic-stack

Made for: Cursor.

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 agentic-stack

README.md
[![agentmods](https://agentmods.dev/badge/rules/codejunkie99/brain/agentic-stack/github.svg)](https://agentmods.dev/rules/codejunkie99/brain/agentic-stack)
Your own site
<a href="https://agentmods.dev/rules/codejunkie99/brain/agentic-stack"><img src="https://agentmods.dev/badge/rules/codejunkie99/brain/agentic-stack/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 agentic-stack

Your own site · 80×15
<a href="https://agentmods.dev/rules/codejunkie99/brain/agentic-stack"><img src="https://agentmods.dev/badge/rules/codejunkie99/brain/agentic-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 362 This file is loaded in full into every session.
When invoked 362 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 100% copy Near-identical to another mod 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.00362 $0.00362
Opus 5.5 $0.00145 $0.00145
Sonnet 5.5 $0.00072 $0.00072
Haiku 4.5 $0.00036 $0.00036

Measured 1mo ago against content hash 3473768c7e0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agentic-stack 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 1mo 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.

Origin

This is a copy

100% identical to agentic-stack — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

adapters/cursor/.cursor/rules/agentic-stack.mdc · 42 lines

What it actually says

Agentic-stack brain

This project uses a portable brain in .agent/. Treat it as authoritative.

Before acting

  1. Read .agent/AGENTS.md (the map).
  2. Read .agent/memory/personal/PREFERENCES.md (how the user works).
  3. Read .agent/memory/semantic/LESSONS.md (what we've learned).
  4. Read .agent/protocols/permissions.md (what you can and cannot do).

Recall before acting

For any task involving deploy, ship, release, migration, schema change, timestamp / timezone / date, failing test, debug, investigate, or refactor, FIRST run:

python3 .agent/tools/recall.py "<short description of the task>"

If it surfaces lessons, show them in a Consulted lessons before acting: block and obey them. Without this, graduated lessons stay invisible and the brain stops compounding.

While working

  • Check .agent/skills/_index.md; load full skills only when triggers match.
  • Update .agent/memory/working/WORKSPACE.md as the task evolves.
  • After significant actions, run: python3 .agent/tools/memory_reflect.py <skill> <action> <outcome>
  • Quick state: python3 .agent/tools/show.py.
  • Teach a rule in one shot: python3 .agent/tools/learn.py "<rule>" --rationale "<why>".

Hard rules

  • Never force push to protected branches.
  • Never delete memory entries; archive only.
  • Never modify .agent/protocols/permissions.md.
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. 1mo ago First seen · 42 lines · 362 tokens per session scan A 3473768c7e0f

Subscribe to this mod's changes

agentic-stack is a cursor rule published in the GitHub repository codejunkie99/brain (84 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 362 tokens to every session, about $0.0014 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to agentic-stack, differing in 0 lines, and is treated as a copy.