KiroCrew: Instructions file for Claude Code

AGENTS.md

KiroCrew AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from kirodotdev/KiroCrew. It costs 7,082 tokens per session, scanned A, original, Apache-2.0.

A project instruction file for Kiro Crew, an open-source personal AI agent that works through a web dashboard, command line, Slack, or Discord. It describes the system structure and rules agents must read before changing different parts.

In plain words
What is it for?
Use it when modifying Kiro Crew, its dashboard, agent connections, scheduled tasks, memory storage, MCP tools, packaging, or deployment files.
Why use it?
It helps agents understand the split between the Python backend and React frontend and protects security rules such as sensitive-path restrictions.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PreToolUse hook event, but also the file is AGENTS.md. Also seen: mentions subagents; mentions AGENTS.md.

This is kirodotdev/KiroCrew's own configuration. It tells Claude Code, Codex and OpenCode how to work on KiroCrew itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything KiroCrew configures →

About the project

Kiro Crew is a persistent development workspace where agents continue multi-step software work across sessions, schedules, and connected interfaces. Developers use it locally or remotely through a desktop app, web dashboard, CLI, Slack, or Discord, with unattended tasks and recurring jobs. The catalogue contains skills and instructions for working with this workspace.

kirodotdev/KiroCrew · 4,644 stars · on GitHub · kiro.dev

Reuse

Borrowing it

Nothing to install: this file belongs to kirodotdev/KiroCrew. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kirodotdev/KiroCrew/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/kirodotdev/KiroCrew

Made for: Claude Code, Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for KiroCrew AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kirodotdev/kirocrew/agents-md/github.svg)](https://agentmods.dev/instructions/kirodotdev/kirocrew/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kirodotdev/kirocrew/agents-md"><img src="https://agentmods.dev/badge/instructions/kirodotdev/kirocrew/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for KiroCrew AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kirodotdev/kirocrew/agents-md"><img src="https://agentmods.dev/badge/instructions/kirodotdev/kirocrew/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,082 This file is loaded in full into every session.
When invoked 7,082 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.07082 $0.07082
Opus 5.5 $0.02833 $0.02833
Sonnet 5.5 $0.01416 $0.01416
Haiku 4.5 $0.00708 $0.00708

Measured yesterday against content hash b137659dd530, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

KiroCrew AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 381 lines

How it starts

The opening of the file, as written. The whole thing — 381 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rules for AI Assistants

This file is a ROUTER, not a manual. It carries only the rules whose violation causes damage before a pointer could be read. Everything else is a link you MUST open before touching that subsystem: see Read before you touch. The frontend has its own router, website/AGENTS.md.

What this is

Kiro Crew is an open-source personal AI agent: chat from the web dashboard, the CLI, or a messaging channel like Slack and Discord; run multi-step tasks unattended; schedule cron jobs; keep memory across sessions.

Kiro Crew's sole LLM provider speaks ACP. Its default backend runs kiro-cli over ACP JSON-RPC; other verified ACP harnesses are selected with agent.acp_backend. MCP tools supply the agent's host capabilities.

  • Backend: Python package kiro_crew in src/kiro_crew/. Frontend: React
    • TS + Vite SPA in website/, built into src/kiro_crew/static/dist/ and served by the backend.
  • Data home: ~/.kiro/crew, overridden with KIROCREW_HOME.
  • Distribution: public GitHub, plain setuptools, public PyPI / public npm.

Full map: overview. This repo is the de-Amazoned public fork of an internal package; what must never come back is oss-fork-boundaries, gated by the internal-content-scan check (blocking on pull requests, forks included) and the no-new-builtin-apps rule in AUTOSDE.yaml.

Read before you touch

Load the doc for the row you are working in before you change code. Update it in the same commit when you change what it documents.

If you are touching… Read first
platform/, editions, CPP seam, governance platform-context + governance
security.py, hooks.py, hook_runtime/, denied commands, sensitive paths security + sel
config/ — the live watcher, restart=True marks, appliers, config.json writes config
the security model as a whole, threat boundaries security-deep-dive
computer_use/ computer-use
monitoring loops, monitoring/, irq.py, watches monitor-architecture (the paradigm) + agent-interrupt-controller + babysit-pr-watch
acp/, kiro-cli transport, providers acp-client + providers
picking or defaulting a model anywhere model-selection + model-fallback
adding or adapting an agent harness (BYO, KAS, claude) harness-parity (invariants) + harness-parity-gate (CI)
an agent spec: agent_discovery.py and its agent_discovery_parts/ owners, agent_spec_format.py, agent.py's spec writers, its agent_parts/ owners and agent_materialization/, acp/kas_agents.py, or any field a spec carries agent-spec-fields (what each field does, per backend) + agent-host-contract (the per-harness table)
the publicly selectable Claude backend claude-code-provider
sessions, slots, session keys, PIDs session + history
shared_crew/, attributing work to a person, per-person fair admission, presence, shared approvals shared-crew
killing a runtime, leases and tenancies, sweeps and reapers, runtime_ownership.py, runtime_reconcile.py, the kill paths of session_pid.py and its session_pid_*.py owners runtime-ownership
session summaries, the chat summary panel, intent extraction session-summary
memory, embeddings, vectors, lessons, skills, hooks memory-skills-hooks
context.py, context_blocks.py, context_assembly/, what reaches the model's context context-management + memory-skills-hooks: Context Builder (module ownership)
MCP servers or tools (adding, changing, statelessness) mcp
mcp_gateway/ — gatewayd.py, daemon/, the daemon's lifecycle and facade mcp-gateway-daemon-lifecycle + mcp
apps, App Kit, manifests, app agents app-kit-platform + app-kit/
artifacts, companion chat artifacts
stt/, transcribe.py and its transcribe_*.py owners, voice_reply.py, the mic, dictation, TTS stt-streaming + voice-streaming
cron, learn, dashboard handlers learn-cron-dashboard
Slack, Discord, any channel, messaging, approvals messaging + slack-gateway
subagents, spawn, orphan recovery subagent
crews, select_crew, crew bindings, Crew Mode slots crew-mode
the pipeline conductor agent or its skill pipeline-conductor
task runner task + taskrunner
workflows/ (the dynamic-workflow engine) workflows
themes themes + theming-contract
anything under website/ website/AGENTS.md
user-facing strings, dates, numbers, sort order i18n-catalog (authoring) + i18n-gates (CI)
tests: flakes, hangs, speed, memory, fixtures, sharding, side effects, host state (~/.kiro, Path.home(), the systemd user manager), conftest isolation, monkeypatch.undo(), env-var leaks, host-dependent tests (Windows, Python 3.13, per-user tools, version-manager shims), spawning a real child or reaping one, .worktrees/ in a repo-wide scan, what TMPDIR must not be, what a worker costs, collection-time probes that build a singleton, a MagicMock the code converts with int(), sizing a ReDoS / complexity guard, clocks and time, sleeps, ordering and timestamp ties, ports, timezone and locale, randomness, repeat and shuffle proof, a flaky CI red testing-conventions + the writing-tests skill; frontend and Electron tests: website/docs/testing.md
browser E2E e2e-gate
proving a worktree change against an isolated running gateway worktree-verification-recipes
CI, PR flow, review gates (a lane says PASS or BLOCK, with a Trigger and an Outcome), commit messages ci-and-reviews + CONTRIBUTING.md
a PR that hides, deletes, tightens or migrates something (the Reader: list) take-away-changes
constants, comments, lint, code style, the brand name code-style
connections, connectors, an external account link connections
the connector campaign's manifest schema or work-stream DAG connector-capability-manifest
the GitHub connector's operation data or wire parsing (pagination, rate limits, error mapping) connector-github
connections/vendors/microsoft/graph/, the Microsoft Graph runtime base (locator, payload shaping, @odata.nextLink paging) microsoft-graph-runtime
connections/vendors/zoom/ — Zoom identity/paging/processing/errors contract logic connector-zoom
a POSIX call: locks, signals, PIDs, chmod, RSS platform-compat + windows-install
injected [Cron notification] / [Subagent completion event] injected-messages
build, install, dev mode CONTRIBUTING.md + install
cutting a release release
CHANGELOG.md changelog
a user-facing label, wording, placement or behaviour a person may already have decided docs/decisions/README.md
errors, retries, user-facing failure text error-handling
what this public fork must never re-introduce oss-fork-boundaries
any doc: moving, renaming, indexing it docs/README.md

Read the full file on GitHub · 381 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +3 lines · +86 tokens per session b137659dd530
  2. 2d ago Changed · +3 lines · +54 tokens per session 54a37a65a2e5
  3. 5d ago Changed · +10 lines · +148 tokens per session f10bfcabbbdf
  4. 7d ago Changed · +5 lines · +84 tokens per session 152e96c25f28
  5. 8d ago Changed · +22 tokens per session 97e5e786e0d3
  6. 9d ago Changed · +3 lines · +71 tokens per session 88feea72f997
  7. 10d ago Changed · +10 tokens per session a11ac0eaf848
  8. 14d ago Changed · +17 tokens per session bcedc2c222a3
  9. 15d ago Changed · +6 lines · +104 tokens per session 6d1f8f35db52
  10. 17d ago First seen · 351 lines · 6,486 tokens per session scan A 0a545a3e2a89

Subscribe to this mod's changes

KiroCrew AGENTS.md is an instructions file published in the GitHub repository kirodotdev/KiroCrew (4,644 stars, last pushed today), licensed Apache-2.0. It adds 7,082 tokens to every session, about $0.0283 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens