sruja
CLAUDE.md24 starsChanged 6 months agoApache-2.0View on GitHub
Sruja is an AI coding agent that helps you build better software by understanding your codebase architecture and verifying that changes align with design decisions. 14 Rust crates in 4 tiers: Full architecture brief: llms-architecture.txt Read AGENTS.md for complete workflow, code style, and architecture patterns. This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships. Rules: - For codebase questions, first run graphify query "<question>" when graphify-out/graph.json exists. Use graphify path "<A>" "<B>" for…
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .gemini/AGENTS.mdAGENTS.md
- skills/sruja-architecture/AGENTS.mdAGENTS.md
- skills/sruja-architecture/references/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/cli-handler.mdcCursor rule
- .cursor/rules/core-engine.mdcCursor rule
- .cursor/rules/extension-ts.mdcCursor rule
- .cursor/rules/sruja-context-host.mdcCursor rule
- .cursor/rules/sruja-dev.mdcCursor rule
- .cursor/rules/wasm-constraints.mdcCursor rule
- grill-meSkill
- sruja-architectureSkill
- sruja-harnessSkill
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Use thiserror for error types, never anyhow
- Distinctive: line 54
Read AGENTS.md for complete workflow, code style, and architecture patterns.
- Very specific: line 62
If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.
- Very specific: line 63
Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context.
- Very specific: line 64
After modifying code, run graphify update .
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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.
Files
Sruja - Claude Code Context
Sruja is an AI coding agent that helps you build better software by understanding your codebase architecture and verifying that changes align with design decisions.
Quick Start
# Build
cargo build --release
# Test
cargo test --workspace
# Check architecture
sruja drift -r .Architecture
14 Rust crates in 4 tiers:
- Core Engine (6): sruja-language, sruja-engine, sruja-graph, sruja-graph-core, sruja-scan, sruja-diagnostics
- Extraction (2): sruja-extract, sruja-export
- Delivery (2): sruja-cli, sruja-wasm
- Secondary (4): sruja-diff, sruja-intent, sruja-agent, sruja-memory
Full architecture brief: llms-architecture.txt
Key Rules
- Lower-tier crates must not depend on higher-tier crates
- sruja-cli is the top-level aggregator — no other crate should depend on it
- WASM-only crates must not use native-only APIs (tree-sitter, fastembed)
- Use
thiserrorfor error types, neveranyhow
Commands
| Command | Purpose |
sruja classify -r . | Generate architecture classification |
sruja sync-ide-rules -r . | Generate IDE context files |
sruja drift -r . | Check architecture enforcement |
sruja focus --file <path> | Task-scoped context briefing |
sruja mcp -r . | Start MCP server |
Before Committing
just check # fmt + lint + test + validate-book-dslFull Guidelines
Read AGENTS.md for complete workflow, code style, and architecture patterns.
graphify
This project has a knowledge graph at graphify-out/ with god nodes, community structure, and cross-file relationships.
Rules:
- For codebase questions, first run
graphify query "<question>"when graphify-out/graph.json exists. Usegraphify path "<A>" "<B>"for relationships andgraphify explain "<concept>"for focused concepts. These return a scoped subgraph, usually much smaller than GRAPH_REPORT.md or raw grep output. - If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.
- Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context.
- After modifying code, run
graphify update .to keep the graph current (AST-only, no API cost).
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
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.

