_global

A general development workflow based on repeatedly observing the project, understanding its state, choosing an approach, and acting on it. It also describes TDD, or test-driven development, where a failing test is written before the code that makes it pass.

In plain words
What is it for?
Use it to guide feature work, debugging, and completion reports. It covers reading the task, inspecting files and tests, making small changes, validating them, and recording risks.
Why use it?
It gives coding work a repeatable order and keeps changes focused. It helps prevent unrelated edits and encourages checking each change before moving on.

Cursor rule

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/mnehmos/mnehmos.multi-agent.framework/_global
Clone the repo
git clone --depth 1 https://github.com/Mnehmos/mnehmos.multi-agent.framework
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 205 The whole file, excluding the scripts and references it only reads on demand.
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.00005 $0.00205
Opus 5 $0.00003 $0.00102
Sonnet 5 $0.00001 $0.00041
Haiku 4.5 $0.00001 $0.00020

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

Security

Grade A, and why

_global 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.

templates/cursor/rules/_global.mdc · 51 lines

What it actually says

OODA Loop

All work follows: Observe → Orient → Decide → Act

Observe

  • Read task/issue fully before coding
  • Scan relevant files and test status
  • Note dependencies and constraints

Orient

  • Map current vs goal state
  • Identify risks and unknowns
  • Decompose into atomic subtasks

Decide

  • Choose lowest-risk approach
  • Define scope boundaries
  • Set acceptance criteria

Act

  • Execute one subtask at a time
  • TDD: test first, then implement
  • Validate before moving on

TDD Cycle

Red → Failing test defines behavior Green → Minimal code to pass Blue → Refactor while green


Scope Discipline

  • Stay within assigned files
  • No unrelated modifications
  • Escalate ambiguous requirements
  • Minimal, surgical changes

Completion

Return: files changed, tests run, summary, open risks

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 · 51 lines · 5 tokens per session scan A 264b777bd2f8

Subscribe to this mod's changes

_global is a cursor rule published in the GitHub repository Mnehmos/mnehmos.multi-agent.framework (533 stars, last pushed 7mo ago), licensed MIT. It adds 5 tokens to every session and 205 once invoked, about $0.0000 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-30.