agentleFS
sruja-aisruja-ai/sruja/.gemini/AGENTS.md

sruja

AGENTS.md24 starsChanged 6 months agoApache-2.0View on GitHub

This file is auto-generated by sruja ai-context -r . -f cursor-rules MCP: sruja_list_architecture_index → sruja_get_topology → sruja_get_elements → sruja_get_task_context (cache_friendly optional). Compact brief: llms-architecture.txt. Full DSL only via MCP sruja://architecture/main. When making architectural changes, you MUST follow this loop: 1. Run sruja_evaluate_proposal to validate the health of your changes. 2. If it fails, run sruja_record_learning to document the failed hypothesis and update your approach. 3. Only present the final code to the user after achieving a successful evaluation.

The file

We split this AGENTS.md into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No external dependencies allowed.

    line 13
  2. Distinctive:

    Use existing patterns in the codebase

    line 38
  3. Distinctive:

    If adding a new dependency, verify it does not violate boundaries

    line 39
  4. Very specific:

    Run sruja drift -r . after changes to verify architecture health

    line 40
  5. Distinctive:

    When making architectural changes, you MUST follow this loop:

    line 44
  6. Very specific:

    Run sruja_evaluate_proposal to validate the health of your changes.

    line 45
  7. Very specific:

    If it fails, run sruja_record_learning to document the failed hypothesis and update your approach.

    line 46
  8. Distinctive:

    Only present the final code to the user after achieving a successful evaluation.

    line 47

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

Sruja Architecture Context

This file is auto-generated by sruja ai-context -r . -f cursor-rules

Architecture Overview

  • Crates: 14
  • Databases: 1

Layers

CORE ENGINE (6 crates)

No external dependencies allowed.

EXTRACTION (2 crates)

No external dependencies allowed.

DELIVERY (2 crates)

No external dependencies allowed.

SECONDARY (4 crates)

No external dependencies allowed.

Boundary 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)

Architecture retrieval (MCP)

MCP: sruja_list_architecture_index → sruja_get_topology → sruja_get_elements → sruja_get_task_context (cache_friendly optional). Compact brief: llms-architecture.txt. Full DSL only via MCP sruja://architecture/main.

When suggesting code

  1. Respect layer boundaries - check imports before suggesting
  2. Use existing patterns in the codebase
  3. If adding a new dependency, verify it does not violate boundaries
  4. Run sruja drift -r . after changes to verify architecture health

Agentic Optimization Loop

When making architectural changes, you MUST follow this loop:

  1. Run sruja_evaluate_proposal to validate the health of your changes.
  2. If it fails, run sruja_record_learning to document the failed hypothesis and update your approach.
  3. Only present the final code to the user after achieving a successful evaluation.

Global AI Agent Guidelines

You MUST read and strictly adhere to the instructions located in AGENTS.md before proceeding with any task.

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.