agentleFS
VoDaiLoczVoDaiLocz/kilo-kit-mcp/AGENTS.md

kilo-kit-mcp

AGENTS.md27 starsChanged 3 months agoApache-2.0View on GitHub

Applies to: Antigravity, Gemini CLI, Claude Code, OpenAI Codex

The file

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

11 rules. About 0 are common, 2 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Call MCP tool kilo_orchestrate_task with the user's request as your FIRST action.

    line 13
  2. Very specific:

    For Features / Architecture: MUST call kilo_think_step (DAG with 3 trade-off options) and kilo_grill_plan (Adversarial Red-Team stress …

    line 17
  3. Very specific:

    For Bugs / Errors: MUST call kilo_trace_root_cause with { errorLog, failingFile } to extract the 5-Whys causal chain before writing any fix.

    line 18
  4. Very specific:

    For Context Overload (>4 files read): Call kilo_compact_context to lock invariants and prevent attention degradation.

    line 19
  5. Very specific:

    Call kilo_orchestrate_task with brainstormingApproved=true.

    line 22
  6. Very specific:

    Dimension 1 (Spec Fidelity): Verify against user requirements using Given-When-Then acceptance criteria …

    line 31
  7. Very specific:

    Dimension 2 (Clean Code): Verify deep module interfaces and zero dead code (engineering/clean-code).

    line 32
  8. Very specific:

    Dimension 3 (UX & Aesthetics): Verify responsive layout and mobile touch safety (design/aesthetic, design/mobile-design).

    line 33
  9. Distinctive:

    Dimension 4 (Empirical & Playwright): Run compile/build commands AND execute tests before claiming completion.

    line 34
  10. Very specific:

    Continuous Reflection: Call kilo_record_reflection with sessionId to persist lessons learned into SQLite memory.

    line 35
  11. Distinctive:

    Iron Law: NEVER execute a tool call with an empty text response.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
<!-- KILO-KIT:C4:START -->

Kilo-Kit C4 v3.0 Cognitive Protocol

Applies to: Antigravity, Gemini CLI, Claude Code, OpenAI Codex

🧠 DIVISION OF LABOR (VỎ NÃO & CHÂN TAY):

  • Kilo-Kit MCP (Cortex): High-level cognitive reasoning, 5-Whys root cause tracing, Tree-of-Thoughts DAG planning, adversarial red-teaming, context compaction, skill delivery, and SQLite learning memory.
  • Execution Limbs: Perform surgical changes with defense-in-depth using your native tools or Kilo-Kit tools with Kilo-Sentinel supervision.

🏛️ MANDATORY 5-GATE COGNITIVE PROTOCOL:

  1. Gate 1 (Hard-Gate & Grounded Probe):
    • Call MCP tool kilo_orchestrate_task with the user's request as your FIRST action.
    • Perform read-only exploratory probing (view_file, grep_search, or kilo_read_file) to build a Grounded Diagnostic Model.
  2. Gate 2 (Substantive Cognitive Reasoning & Benchmarking):
    • For Features / Architecture: MUST call kilo_think_step (DAG with 3 trade-off options) and kilo_grill_plan (Adversarial Red-Team stress test). Call kilo_benchmark_solution to audit against industry standards.
    • For Bugs / Errors: MUST call kilo_trace_root_cause with { errorLog, failingFile } to extract the 5-Whys causal chain before writing any fix.
    • For Context Overload (>4 files read): Call kilo_compact_context to lock invariants and prevent attention degradation.
  3. Gate 3 (Approval & Skill Delivery):
    • Call kilo_orchestrate_task with brainstormingApproved=true.
    • Load required workflow skills using kilo_get_skill (supports aliases like brainstorming, diagnose, playwright, tdd, clean-code).
    • (Optional) Check supervisor status via kilo_sentinel_status.
  4. Gate 4 (Surgical Implementation & Defense-in-Depth):
    • Apply problem-solving/defense-in-depth (validation at input, logic, and persistence layers).
    • Maintain engineering/clean-code standards with zero bloat.
  5. Gate 5 (4D Quality Assurance & Reflection):
    • Dimension 1 (Spec Fidelity): Verify against user requirements using Given-When-Then acceptance criteria (productivity/spec-driven-development).
    • Dimension 2 (Clean Code): Verify deep module interfaces and zero dead code (engineering/clean-code).
    • Dimension 3 (UX & Aesthetics): Verify responsive layout and mobile touch safety (design/aesthetic, design/mobile-design).
    • Dimension 4 (Empirical & Playwright): Run compile/build commands AND execute tests before claiming completion.
    • Continuous Reflection: Call kilo_record_reflection with sessionId to persist lessons learned into SQLite memory.

📢 MANDATORY INTER-TOOL NARRATION (ZERO SILENT CHAINS):

  • Iron Law: NEVER execute a tool call with an empty text response. Every turn that invokes a tool call MUST include a visible 1-2 sentence text body to the terminal user before the tool executes.
  • Micro-Narration Format (MANDATORY in every single tool response):
    • [DECISION]: State what you just concluded, selected, or verified cụ thể.
    • [NEXT]: State what tool you are calling next and for what purpose.
  • STRICT PROHIBITION: Emitting tool calls with empty text content (content: "") or chaining 2+ tool calls silently without user-facing text between them is a strict protocol violation.
<!-- KILO-KIT:C4:END -->

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.