agentleFS
Paola3stefaniaPaola3stefania/openBriefing/.cursor/rules/openbriefing.mdc

openBriefing / rules

Cursor rule4 starsChanged 6 months agoMITView on GitHub

OpenBriefing session protocol - briefing first, end with related_insights, never fragment between session and memory

  • 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,531 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 repository5 other files it gives its agents.

The file

We split this openbriefing.mdc into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read actionable[] from the briefing first: those are the top incomplete plan steps from recent sessions, ranked by recency × scope match.

    line 9
  2. Very specific:

    If lastSession.openItems are non-empty, surface them.

    line 10
  3. Very specific:

    Read relatedInsights[]: those are project-scoped memories ranked against your current focus (scope + plan steps + open items).

    line 11
  4. Very specific:

    When you reference an artifact on another surface (Slack thread, Notion page, GitHub PR, Linear issue, file with sha, Discord thread), use …

    line 15
  5. Very specific:

    If any briefing/memory tool response contains embeddingProviderWarning, tell the user to start Ollama (open the app or ollama serve) before …

    line 16

≈ “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
openbriefing.mdc
---
description: OpenBriefing session protocol - briefing first, end with related_insights, never fragment between session and memory
alwaysApply: true
---

openbriefing-session-protocol:

- **Before responding to the user, on every conversation**, call `get_agent_briefing` from the openbriefing MCP server with `project` set to `owner/repo` from the workspace git remote (or the workspace folder name when there's no remote). This is not optional even when the first message looks self-contained — past `decisions`, `actionable[]`, `relatedInsights[]`, and `lastSession.openItems` change what the right answer is.
- Read `actionable[]` from the briefing first: those are the top incomplete plan steps from recent sessions, ranked by recency × scope match. Mention any that are relevant to the user's request before starting new work.
- If `lastSession.openItems` are non-empty, surface them; if they include items the current user request would resolve, say so explicitly.
- Read `relatedInsights[]`: those are project-scoped memories ranked against your current focus (scope + plan steps + open items). When `source === "session"` and `sessionId` is set, you can fetch the originating session via `get_session_history({ session_id, verbose: true })` for full context.
- For meaningful work (not pure Q&A), call `start_agent_session` with `project` and `scope`. Call `update_agent_session` after each meaningful turn (it accepts ended sessions for 24h via the soft-end window — you can amend up to OPENBRIEFING_SESSION_AMEND_WINDOW_MS after `endedAt`).
- At the end of meaningful work, call `end_agent_session` with `decisions_made`, `files_edited`, `open_items`, `summary`, and **`related_insights`** (free-form debrief: "why we chose X", principles that emerged, gotchas worth remembering). Each related_insights entry becomes a session-linked memory and shows up in future briefings automatically — that's the right place for it instead of a separate `save_memory` call. The response includes `tokenSavings` — relay it to the user (how many tokens future agents save thanks to the recorded context).
- Decisions should record the *why*, not just the *what*. Open items should be specific and actionable.
- When you reference an artifact on another surface (Slack thread, Notion page, GitHub PR, Linear issue, file with sha, Discord thread), use `link_external_event` instead of stuffing the URL into open_items as a string. The reference becomes navigable structured data on `session.externalRefs`.
- If any briefing/memory tool response contains `embeddingProviderWarning`, **tell the user to start Ollama** (open the app or `ollama serve`) before continuing long work — semantic search and relatedInsights are degraded until then. Text is never lost; embeddings are auto-backfilled once the provider is back.
- OpenBriefing covers memory, sessions, briefings, and code. For Discord / GitHub issues+PRs / X / Linear signals, use the companion **unMute** MCP server (same `project` key) alongside it.
- For a grouped list of all MCP tools and when to use them, read `.cursor/skills/openbriefing/SKILL.md` in this project. If you are developing the **openbriefing** open-source project itself, read `AGENTS.md` in that repository.

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.