codebase-memory-always

A rule file that tells the coding agent to always use codebase memory.

In plain words
What is it for?
It appears intended to guide work across a codebase, but the provided information is too limited to state a specific job.
Why use it?
The available details do not explain what codebase memory means or how the rule works.

Cursor rule for Cursor

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 rules/teampolarity/cosmos-mcp/codebase-memory-always
Clone the repo
git clone --depth 1 https://github.com/teampolarity/cosmos-mcp

Made for: Cursor.

Per session 17 This file is loaded in full into every session.
When invoked 17 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.00017 $0.00017
Opus 5 $0.00009 $0.00009
Sonnet 5 $0.00003 $0.00003
Haiku 4.5 $0.00002 $0.00002

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

Security

Grade A, and why

codebase-memory-always 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.

.cursor/rules/codebase-memory-always.mdc · 1 lines

What it actually says

/Users/theodoreaddo/.cursor/rules/codebase-memory-always.mdc

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 · 1 lines · 17 tokens per session scan A f006754b21bc

Subscribe to this mod's changes

codebase-memory-always is a cursor rule published in the GitHub repository teampolarity/cosmos-mcp (3 stars, last pushed 7d ago), licensed MIT. It adds 17 tokens to every session, about $0.0001 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 cursor rules, from other repositories

pytest

always run pytest at the end of a major change always run ruff lint at then end of any code changes.

pathintegral-institute/mcpm.sh · 0 tokens

cursorrules

Cursor rule "cursorrules" from contextstream/mcp-server, covering cursor rules, contextstream v0.4.x (consolidated domain tools), required every message, quick reference: domain tools and behavior rules.

contextstream/mcp-server · 1,317 tokens

virtualsms

Real-SIM SMS verification, number rentals, matching-country proxies and cloud browser sessions for AI agents via VirtualSMS MCP. Apply when the user asks for a phone number, SMS code, OTP, account verification (WhatsApp, Telegram, Tinder, Discord, Google, etc.), two-factor auth flow, number rental, proxy, or anything…

virtualsms-io/cursor-rules-sms-verification · 0 tokens

memforge-topology-trigger

Memforge 产品线拓扑图触发规则。 识别用户的拓扑相关意图,调用 Memforge 内置拓扑引擎(scantopology / querytopology 等 MCP 工具)。 拓扑可视化通过 Memforge WebUI 呈现。.

zql0805/memforge · 870 tokens

cursorrules

🧠 Fast, zero-dependency structured knowledge base (.agent-kb/) with 2D neural graph visualizer │ & MCP server for Claude, Codex, PI, Cursor, Windsurf, Zed & Other AI coding agents.

liulinnuha/lithium-kb · 147 tokens

memforge-codebase-memory-routing

代码发现场景下优先使用 Codegraph MCP 远程服务进行结构化查询,减少 Token 消耗。 适用于同时接入了 Codegraph MCP 服务的环境。.

zql0805/memforge · 641 tokens