agentleFS
laithalsaadoonlaithalsaadoon/erpaval/kiro/AGENTS.md

erpaval / kiro

AGENTS.md28 starsChanged 7 months agoMITView on GitHub

Project-level memory for the Kiro CLI port of erpaval-plugin. Kiro reads AGENTS.md natively — see https://kiro.dev/docs/cli/steering/. This file is NOT the methodology — that lives in skills/erpaval/SKILL.md. This file is the install map and the "where things are" pointer. --trust-all-tools auto-approves every tool call so subagents can write, shell out, and call MCP servers without prompting. For unattended runs add --no-interactive and set KIRO_API_KEY. For least-privilege scoping use --trust-tools=read,grep,glob,write,execute_bash instead. All three agents pin model: claude-opus-4-7. Override per-invocation with --model…

  • Reads credentials

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    All three agents pin model: claude-opus-4-7.

    line 55
  2. Very specific:

    All hooks are fail-open (framework.run_hook catches exceptions and exits 0).

    line 73

≈ “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

erpaval — Kiro CLI distribution

Project-level memory for the Kiro CLI port of erpaval-plugin. Kiro reads AGENTS.md natively — see https://kiro.dev/docs/cli/steering/.

This file is NOT the methodology — that lives in skills/erpaval/SKILL.md. This file is the install map and the "where things are" pointer.

Bundle layout

kiro/
├── AGENTS.md                          # this file
├── README.md                          # user-facing entry point
├── KIRO-COMPATIBILITY.md              # design notes + gap inventory
├── install.sh                         # bash installer (--workspace, --dry-run, --uninstall)
├── settings/
│   └── mcp.json                       # mirrors root .mcp.json (4 research servers)
├── skills/
│   ├── erpaval/                       # core methodology (SKILL.md + references/ + assets/ + scripts/)
│   ├── product-discovery/             # HMW + EARS substeps (hard-dep for CL-RIGOR)
│   └── product-design-shared/         # shared design references
├── agents/
│   ├── erpaval-orchestrator.json      # main agent — hosts hooks inline
│   ├── erpaval-researcher.json        # research delegate
│   ├── erpaval-explorer.json          # read-only codebase explorer (replaces built-in Explore)
│   └── prompts/                       # system prompt bodies referenced via file://
└── hooks/
    ├── framework.py                   # Pydantic framework for Kiro's 5 hook events
    ├── kiro_session_start_bootstrap.py
    ├── kiro_validate_packet.py
    └── kiro_compound_nudge.py         # advisory-only — Kiro stop hooks cannot block

Install

./install.sh                # user scope: ~/.kiro/
./install.sh --workspace    # workspace scope: <cwd>/.kiro/
./install.sh --dry-run      # preview only
./install.sh --uninstall    # remove installer-created symlinks

Run

kiro-cli chat --agent erpaval-orchestrator --trust-all-tools

--trust-all-tools auto-approves every tool call so subagents can write, shell out, and call MCP servers without prompting. For unattended runs add --no-interactive and set KIRO_API_KEY. For least-privilege scoping use --trust-tools=read,grep,glob,write,execute_bash instead.

All three agents pin model: claude-opus-4-7. Override per-invocation with --model <id> or edit the JSONs.

ERPAVAL_HOME

The installer substitutes ${ERPAVAL_HOME} into the agent JSONs at install time, pointing at <target>/erpaval. Skills, hooks, and assets resolve relative to it. This is the Kiro-distribution analogue of Claude Code's ${CLAUDE_PLUGIN_ROOT} (which doesn't exist in Kiro).

Hooks

Three of Kiro's five hook events are wired (per the orchestrator agent JSON):

  • agentSpawn → kiro_session_start_bootstrap.py — emits prior-lesson summary on session start
  • postToolUse (matcher: fs_write) → kiro_validate_packet.py — Pydantic schema check on .erpaval/ writes
  • stop → kiro_compound_nudge.py — advisory only; Kiro stop hooks cannot block-and-re-prompt the agent the way Claude Code's Stop channel does

All hooks are fail-open (framework.run_hook catches exceptions and exits 0).

Tools

PEP 723 Python scripts under kiro/skills/erpaval/scripts/. Run with uv run:

  • erpaval-new.py --request "<text>" — scaffold a session
  • erpaval-recall.py bootstrap — session-start summary
  • erpaval-recall.py search --module <p> --tags <csv> — per-task lesson retrieval
  • erpaval-validate.py <path> — schema-check a packet

Differences from the Claude Code distribution

ConcernClaude CodeKiro
Plugin root env var${CLAUDE_PLUGIN_ROOT}${ERPAVAL_HOME} (set by installer)
Hook confighooks/hooks.json (plugin-global)hooks field inside the orchestrator agent JSON
Stop channeldecision: "block" + reason (re-prompts)STDOUT to context (advisory)
Built-in Exploresubagent_type: "Explore"bundled erpaval-explorer custom agent
Task depsaddBlockedBy enforced by TaskCreate/TaskUpdatefilesystem-driven; /todo is advisory UI

See KIRO-COMPATIBILITY.md for the full 30-row capability mapping table.

Adding skills

Same two-tier pattern as Claude Code: SKILL.md ≤ 500 lines (Kiro spec), heavy content in references/. Layout: SKILL.md + references/ + assets/ + scripts/. Drop new skills under kiro/skills/<name>/.

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.