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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00329 | $0.00329 |
| Sonnet 5.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 3mo 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.
- 3mo 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 (25 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 822 tokens to every session, about $0.0033 per session on Opus 5.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.
sruja-context-host compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sruja-context-hostsruja-ai/sruja | Cursor rule | 25 | 1mo ago | Apache-2.0 | A | 822 | Cursor |
| performanceadonai-labs/agent-runway | Cursor rule | 2 | 4d ago | MIT | A | 0 | Cursor |
| 50-pitfallsihabkhaled/NextRanger | Cursor rule | 2 | today | none | A | 0 | Cursor |
| agdrme2resh/agent-decision-record | Cursor rule | 56 | 6d ago | none | A | 942 | Cursor |
| common_memory_bankshalomeir/common-memory-bank | Cursor rule | 30 | 7mo ago | Unlicense | A | 1,801 | Cursor |
| self-improving-obsidian-llm-wikiBahgs/Self-Improving-Obsidian-LLM-Wiki | Cursor rule | 32 | 6mo ago | MIT | A | 146 | Cursor |
| memsproutmemsprout/agents | Cursor rule | 0 | 4mo ago | MIT | A | 519 | Cursor |