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.
git clone --depth 1 https://github.com/sruja-ai/srujaWrote 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.
[](https://agentmods.dev/rules/sruja-ai/sruja/sruja-context-host)<a href="https://agentmods.dev/rules/sruja-ai/sruja/sruja-context-host"><img src="https://agentmods.dev/badge/rules/sruja-ai/sruja/sruja-context-host.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00822 | $0.00822 |
| Opus 5 | $0.00411 | $0.00411 |
| Sonnet 5 | $0.00164 | $0.00164 |
| Haiku 4.5 | $0.00082 | $0.00082 |
Grade A, and why
sruja-context-host 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Sruja context host (Phase 3 + 4)
When the sruja MCP server is enabled (see .cursor/mcp.json), follow this host contract. Sruja suggests; you apply.
Tool Profiles
Sruja MCP server supports tool profiles to control which tools are available:
minimal(~10-12 tools): Core ladder + focus briefing + essential utilitiescoding(~15-18 tools, default): Minimal + hybrid query + critique + context pruningarch: Coding + read-only authoring helpersfull: All tools (backward compatible)
The profile is controlled via:
- Environment variable:
SRUJA_MCP_TOOL_PROFILE - MCP initializationOptions (set in
.cursor/mcp.json) - Defaults to
codingprofile
Session start
- After MCP connects, if you receive
notifications/drift_state(orSRUJA_MCP_WATCH_DRIFT=1is set), treatparamsas authoritative session context:schema_versionmust bedrift_state/v1- Surface
truth_status,health_score, and topviolationsbefore large edits
- If no notification arrived, call
sruja_get_drift_stateonce at the start of architecture-bounded work. - If
aidlc-docs/aidlc-state.mdor a workflowinception/aidlc-docs/aidlc-state.mdexists, runsruja workflow status -r .(with--idwhen multiple workflows) to surface phase gates andaidlcstage before large SDLC edits.
Before precedent / “why did we…” questions
- Call
sruja_search_memorywith a short query (e.g. component name, decision topic). - Prefer hits with
trust: reviewed_truth(decision records) overhypothesis(learnings, events). - Never treat memory hits as permission to edit
repo.srujawithout the normal proposal/review flow.
Long sessions (context budget)
When the conversation has accumulated many architecture element references (roughly 8+ tool turns on the same task, or token pressure):
- Call
sruja_suggest_context_prunewith:active_element_ids: current focus (fromsruja focus,sruja_get_focus_briefing, or scan-resolved module IDs — prefer graph IDs over bare C4 names when warnings appear)session_element_ids: element/module IDs mentioned in the thread
- Omit transcript blocks for ids in
compress_ids; keep full detail forkeep_ids. - After compressing, avoid re-expanding dropped ids unless the user asks.
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.
- 7d ago First seen · 64 lines · 822 tokens per session scan A 88bb913b6649
sruja-context-host is a cursor rule published in the GitHub repository sruja-ai/sruja (23 stars, last pushed 6d ago), licensed Apache-2.0. It adds 822 tokens to every session, about $0.0041 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.
Other cursor rules, from other repositories
cursor-memory
Shokunin memory system: persistent context across sessions.
aictx
Cursor rule "aictx" from oldskultxo/aictx, covering aictx, priority model, default loop, inspection and advanced tools and what to record.
vectr
Vectr tool usage rules for AI-assisted development.
tell-plumbing-reference
Peer plumbing reference memory for platform/MCP/auth/design-flow plans — never name the peer in commits.
50-pitfalls
Digest of memory/known-pitfalls.md — mistakes already made once in this repo; check before debugging or "fixing" guardrails.
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.