agentleFS
sruja-aisruja-ai/sruja/CLAUDE.md

sruja

CLAUDE.md22 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…

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
  1. Very specific:

    Use thiserror for error types, never anyhow

    line 34
  2. Distinctive:

    Read AGENTS.md for complete workflow, code style, and architecture patterns.

    line 54
  3. Very specific:

    If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.

    line 62
  4. Very specific:

    Read graphify-out/GRAPH_REPORT.md only for broad architecture review or when query/path/explain do not surface enough context.

    line 63
  5. Very specific:

    After modifying code, run graphify update .

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 thiserror for error types, never anyhow

Commands

CommandPurpose
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-dsl

Full 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. Use graphify path "<A>" "<B>" for relationships and graphify 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).

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.