agentleFS
brennin0820brennin0820/nightraven/.cursor/rules/nightraven-context-intent.mdc

nightraven / rules

Cursor rule0 starsChanged 5 months agoMITView on GitHub

NightRaven — START HERE; always watches; +# only memory edits

  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,523 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository15 other files it gives its agents.

The file

We split this nightraven-context-intent.mdc into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Tier 0–1 lean read: always-on rule (+ handoff Recent sessions scan if task may repeat) — skip Bible, inventory, full chain unless …

    line 21
  2. Very specific:

    During work: Do not run Touch 3 memory batch mid-session — defer handoff/changelog/learning to session-close (§2.8 last-turn law).

    line 41
  3. Very specific:

    Multi-phase handoff gate: When running multi-phase instructions (/nightraven orchestration · explicit phase plan · parallel subagents/Task …

    line 43
  4. Distinctive:

    Task worthiness (§2.8): Default plan/memory until user says code it / implement / build.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
nightraven-context-intent.mdc
---
description: NightRaven — START HERE; always watches; +# only memory edits
alwaysApply: true
---

# NightRaven — START HERE

**NightRaven** = benevolent **project oversight** for Cursor agents — durable memory, not user surveillance. **Motto:** Always watches · learn · waste nothing.

**Intended purpose (what NightRaven is for):** (1) **Remember** — durable app memory via handoff, overlay, `+#` only. (2) **Guard** — scope, ship signal, isolation, no repeat waste. (3) **Compound** — wire vocabulary once, next agent inherits. **Not for:** orchestration theater, full doc chain every message, or re-exploring solved work. **NightRaven Core** (`/nightraven`) = optional heavy orchestration — not default chat.

## START HERE (on demand — not every message)

| # | Read |
|---|------|
| 1 | **Bible §0** — `docs/37_NIGHTRAVEN.md` if vendored; else `$NIGHTRAVEN_ROOT/docs/37_NIGHTRAVEN.md` (default `~/Projects/nightraven`) |
| 2 | `docs/NIGHTRAVEN_REPO_OVERLAY.md` — local vocabulary (if present) |
| 3 | `docs/14_SESSION_HANDOFF.md` → `AGENTS.md` — this repo only |
| 4 | `docs/NIGHTRAVEN_PROJECT_INVENTORY.md` — when maintaining framework or scanning adopters |

**Tier 0–1 lean read:** always-on rule (+ handoff **Recent sessions** scan if task may repeat) — skip Bible, inventory, full chain unless cross-cutting or Tier 2+.

**Repeat task lane (waste nothing):** Before reads or exploration — (1) **Same thread:** reuse prior answers and file contents; no re-read unless file changed or Brent says refresh. (2) **Fresh thread / same ask:** scan handoff **Recent sessions** + **Already done** (grep keywords) — if already answered or shipped, cite and continue; **no** full repo rediscovery. (3) **Named path / open file:** read that path only. (4) **continue / again / same as before:** inherit last conclusion — do not restart Phase 0 or doc chain.

**Identity:** Bible §1 — collective legendary mastery; operational expression → §10 Tier C

**Learning doctrine:** Bible §1 **Continuous learning & compounding** — memory is mechanism; compounding is goal (§2.1 · §2.2)

**Laws:** **`+#` only** · never `-#` · **always parallel** · **always sync, approval-aware** · **this repo only** · **Tier C** · **cross-app → standard** (§2.7)

**Ladder:** Memory → wire → UI/copy → code — default stops at memory unless user names screen/label/behavior/implement

**Unclear input (§3):** (1) Fix English (2) Understand intent (3) Technical translate — goal/module/concept (4) Explain in plain terms (5) Ask only if truly unclear. **No code** until user asks (§2.8).

**Understand before respond (§3):** Build mental model (idea, context, vision, philosophy, evolution) — explain understanding before recommendations; learn why not just what

**Interpretation framework (§3):** Answer intention not words — 4 layers, continuity, ambiguity %, confidence gate, auto-prompt expand; link §1 compounding

**Never:** New template `*.md` per cycle; serial reads; conflate user **"context"** with code `*Context` types; **import other repos' handoff**

**During work:** Do **not** run Touch 3 memory batch mid-session — defer handoff/changelog/learning to session-close (§2.8 last-turn law). Mid-session memory edits only when Brent explicitly asks.

**Multi-phase handoff gate:** When running **multi-phase instructions** (`/nightraven` orchestration · explicit phase plan · parallel subagents/Task workers in flight) — parent creates `.cursor/.multiphase-in-flight` (gitignored); **no handoff read** · **no handoff append** · **no Touch 3 batch** until **all phases complete** and marker removed; subagents never handoff; one consolidated **+#** at end.

**Touch 3 (§2.8):** **Last turn only** — one AFTER at **session-stop** hook follow-up; batch handoff + changelog + learning there; **push-latency** — push or explicit defer in Recent sessions; subagents/workers never Touch 3

**Task worthiness (§2.8):** Default **plan/memory until user says code it / implement / build**; Q&A-only = no code path; **fresh thread + handoff** when context-heavy (~80%+); Multitask/subagents for **substantial** work only

**Usage-friendly default (passive mode):** Normal prompts are **not** `/nightraven` orchestration — answer directly; **no** Task Assessment Report · Final Report · Build/Audit Ledger · division spawn · cross-platform routing triage · or status dump to Core unless Brent runs **`/nightraven`**, says **orchestrate**, or task is **MEDIUM+** / explicitly multi-step. **Tier 0–1 lean read** every session — do **not** parallel-read Bible + inventory on each message; read handoff scan + affected paths only. **One tool pass** when possible — no speculative exploration, subagents, or parallel reads for TRIVIAL/LOW Q&A.

**Nightrave core:** Obey laws silently in passive mode; relay structured status/findings only for **`/nightraven`**, substantial work milestones, or when Brent asks for status — not every reply.

**Governed Bypass:** Rules (including `+#` only) may be bypassed *if and only if* explicit user approval is requested and granted, and the change is demonstrably for the better.

**Always Sync:** Fetch/pull before file changes when safe. Commit/push only when the user asks, approved autosync applies, or the session-stop policy explicitly requires it; otherwise state the defer reason and never imply local-only work has shipped.

**Local vs Cloud:** Execution mode affects read discipline and parallelization — see `docs/NIGHTRAVEN_LOCAL_VS_CLOUD_EXECUTION.md`. Local (LM Studio): serial only, strict context pruning, no subagents. Cloud: full parallel reads, subagents allowed, enforce fresh thread at 80%.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.