engram: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from Republicofhaitigoodstory6175/engram. It costs 946 tokens per session, scanned A, a copy of cursorrules, Apache-2.0.

An automatically generated map of a codebase's files, functions, classes, and their connections. It summarises where important code lives and how parts of the project relate.

In plain words
What is it for?
Use it to find source files, inspect project structure, trace relationships, and orient code changes across the repository.
Why use it?
It gives a coding agent a quick way to understand an unfamiliar repository before editing it.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: built for aider.

This is Republicofhaitigoodstory6175/engram's own configuration. It tells Cursor how to work on engram 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 engram configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Republicofhaitigoodstory6175/engram. 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/Republicofhaitigoodstory6175/engram/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/Republicofhaitigoodstory6175/engram

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/republicofhaitigoodstory6175/engram/cursorrules.svg)](https://agentmods.dev/rules/republicofhaitigoodstory6175/engram/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/republicofhaitigoodstory6175/engram/cursorrules"><img src="https://agentmods.dev/badge/rules/republicofhaitigoodstory6175/engram/cursorrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 946 This file is loaded in full into every session.
When invoked 946 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00946 $0.00946
Opus 5 $0.00473 $0.00473
Sonnet 5 $0.00189 $0.00189
Haiku 4.5 $0.00095 $0.00095

Measured 6d ago against content hash d8d170d0f4b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cursorrules 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 6d 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 cursorrules — 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.

.cursorrules · 56 lines

How it starts

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

Codebase Structure (auto-generated by engram)

Graph: 451 nodes, 1005 edges | 96% extracted, 4% inferred View: general

Core entities

  • extractDirectory() (function, 2 connections) — src/miners/ast-miner.ts
  • extractFile() (function, 2 connections) — src/miners/ast-miner.ts
  • generateSummary() (function, 2 connections) — src/autogen.ts
  • writeToFile() (function, 2 connections) — src/autogen.ts
  • parseReadLikeBashCommand() (function, 2 connections) — src/intercept/handlers/bash.ts
  • createAuthService() (function, 2 connections) — tests/intercept/handlers/bash.test.ts
  • hashPassword() (function, 2 connections) — tests/intercept/handlers/bash.test.ts
  • SessionStore (class, 2 connections) — tests/intercept/handlers/bash.test.ts

Structure

  • ./ — tsup.config.ts
  • bench/ — runner.ts
  • src/ — autogen.ts, cli.ts, core.ts, dashboard.ts, hooks.ts, serve.ts, watcher.ts
  • src/ccs/ — exporter.ts, importer.ts
  • src/db/ — migrate.ts
  • src/generators/ — aider-context.ts, cursor-mdc.ts
  • src/graph/ — path-utils.ts, query.ts, render-utils.ts, schema.ts, store.ts
  • src/intelligence/ — hook-log.ts, token-tracker.ts
  • src/intercept/ — component-status.ts, context.ts, cursor-adapter.ts, dispatch.ts, formatter.ts, installer.ts, memory-md.ts, safety.ts, stats.ts
  • src/intercept/handlers/ — bash.ts, cwd-changed.ts, edit-write.ts, lsp-capture.ts, post-tool.ts, pre-compact.ts, read.ts, session-start.ts, user-prompt.ts
  • src/miners/ — ast-miner.ts, git-miner.ts, session-miner.ts, skills-miner.ts
  • src/providers/ — ast.ts, context7.ts, engram-git.ts, engram-mistakes.ts, engram-structure.ts, grammar-loader.ts, lsp-connection.ts, lsp.ts, mempalace.ts, obsidian.ts, resolver.ts, types.ts
  • src/server/ — http.ts
  • src/tuner/ — config.ts, index.ts
  • src/types/ — sql.js.d.ts
  • tests/ — ast-miner.test.ts, autogen.test.ts, core.test.ts, mistake-memory.test.ts, provider-cache.test.ts, render-utils.test.ts, skills-miner.test.ts, store.test.ts, stress.test.ts, watcher.test.ts
  • tests/ccs/ — ccs.test.ts
  • tests/db/ — migrate.test.ts
  • tests/fixtures/ — sample.ts
  • tests/generators/ — cursor-mdc.test.ts
  • tests/intercept/ — cli-intercept.test.ts, context.test.ts, cursor-adapter.test.ts, dispatch-new-events.test.ts, dispatch.test.ts, formatter.test.ts, get-file-context.test.ts, hook-log.test.ts, installer.test.ts, memory-md.test.ts, mistakes-filter.test.ts, render-file-structure.test.ts, safety.test.ts, spike-regression.test.ts, stats.test.ts
  • tests/intercept/handlers/ — bash.test.ts, cwd-changed.test.ts, edit-write.test.ts, post-tool.test.ts, pre-compact.test.ts, read.test.ts, session-start.test.ts, user-prompt.test.ts
  • tests/providers/ — ast.test.ts, lsp.test.ts, resolver.test.ts
  • tests/server/ — http.test.ts
  • tests/tuner/ — tuner.test.ts

Read the full file on GitHub · 56 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. 6d ago First seen · 56 lines · 946 tokens per session scan A d8d170d0f4b2

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository Republicofhaitigoodstory6175/engram (1 stars, last pushed 3d ago), licensed Apache-2.0. It adds 946 tokens to every session, about $0.0047 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to cursorrules, differing in 0 lines, and is treated as a copy.