Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/kitepon/aishell/agents-mdgit clone --depth 1 https://github.com/kitepon/aishellWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01515 | $0.01515 |
| Opus 5 | $0.00758 | $0.00758 |
| Sonnet 5 | $0.00303 | $0.00303 |
| Haiku 4.5 | $0.00152 | $0.00152 |
Grade A, and why
aishell 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.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AIShell project instructions
製品目的
AIShellのnorth starは、macOSの生きた状態を直接所有し、その状態からAI開発に必要な最小情報と操作を生成して、成功課題あたりの総model tokenと所要時間を減らすこと。
優先順位:
- correctness / task success
- total model tokens per solved task
- wall time / model・tool往復
- compatibility
Direct OSは交換可能なbackendではなく、効率化を生む設計上の根である。AIShellがfile identity、OS変更の観測・照合state、process lifecycle、worktree、artifactをモデルより下で所有する。安全性は現行の許可root、停止、Trash、SHA競合検出を床として維持するが、現在の最適化対象ではない。
新機能は、OS状態を直接観測・保持して再scan、再読、再実行、model往復を減らせる場合だけ採用する。OS状態と無関係な便利toolや薄いwrapperを詰め込まない。
必要時の参照先
- 完了した能力拡張campaignの経緯が必要な時だけ
docs/archive/development-efficiency-plan.mdを読む。現行の製品目的と設計境界は本ファイルを正とする。 - 外部調査の前だけ
rag/INDEX.mdを検索する。 - 公開挙動、配布、利用手順を変える時だけ
README.mdを読む。 - 文書の所有と寿命を判断する時だけ
docs/README.mdを読む。 - legacy挙動の由来が必要な時だけ
docs/archive/direct-os-spike.mdを読む。今後のGUIロードマップには使わない。
削減率は、隔離された同一model snapshot、reasoning、fixture、prompt、sandboxでbaselineと比較できる場合だけ主張する。主KPIは失敗試行のtokenも含むtokens per solved task。wire bytesやtokenizer概算をprovider報告tokenと混ぜない。
アーキテクチャ境界
- AIShellは単独でinstall、config、state/schema、migration、diagnostics、recovery、 update、releaseできる契約を本repo内に持つ。dotagentsは製品横断wireと互換projectionを 統合するだけで、AIShellの内部状態や運用判断を制御しない。
- AI hostがreasoning、thread、compaction、sub-agent、汎用PTYを所有する。AIShellで再実装しない。
- AIShellは許可root、file identity、FSEvents観測とfilesystem照合によるdelta、直接起動したprocess、完全log/artifact、freshnessを所有する。FSEvents単独を完全な履歴とは見なさない。
- Git、
rg、compiler、test runner、SourceKit-LSPはAIShellが直接起動・監視するworkerとして再利用する。状態の所有者や公開toolの寄せ集めにはしない。 - shell文字列を評価せず、executable URL、引数、working directoryを分離したままprocessを起動する。shell群、
env、osascriptのbasename拒否は汎用shell wrapperへ退行させない製品上の設計レールであり、security boundaryではない。許可workerの子processや改名binaryまで阻止するものとして扱わない。 AIShellCoreへdomain機能、AIShellMCPへprotocol変換を置く。MCP handlerへ開発ロジックを埋め込まない。- 既存20 primitiveは互換経路・下位実装としてfull profileに残す。baseline fullは高密度5+control 2+legacy 18の25 tool、
expanded-v1fullは高密度9+control 2+legacy 18の29 toolである。
Tool / result規約
- stable MCP 2025-11-25を実装基準にし、structured resultはtop-level objectと
outputSchemaを持たせる。 - schema、tool順、descriptionは決定的にする。timestamp、cwd、runtime状態をdefinitionへ混ぜない。
- 通常結果は短いsummaryとprimary evidenceだけ。完全結果は
expires_at付きhandleで保持する。 - 省略可能なread/search/run系高密度出力にbudgetを設け、
omitted、has_more、cursor、freshnessを明示する。 - silent truncation、silent full-scan fallback、silent backend fallbackは禁止する。advertised retention中の一次証拠を削除しない。
- cursor失効、内容変更、index staleは機械判定可能なerrorにする。
- 新しい公開toolは、既存toolとの重複とbaseline比較を示してから追加する。
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.
- yesterday First seen · 77 lines · 1,515 tokens per session scan A 2d8393a9f90b
aishell AGENTS.md is an instructions file published in the GitHub repository kitepon/aishell (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,515 tokens to every session, about $0.0076 per session on Opus 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-31.
Other instructions, from other repositories
rustfs CLAUDE.md
Instructions for rustfs/rustfs, covering rustfs — claude.md, commands, where to look (do not duplicate here) and domain conventions worth knowing up front.
apfel CLAUDE.md
Instructions for Arthur-Ficial/apfel, covering apfel - project instructions, the golden goal, core product (this is what apfel is), byproducts (useful, but not the pitch) and readme.md structure rule.
speech-swift AGENTS.md
Instructions for soniqo/speech-swift, covering agent instructions, communication style, workflow, running tests and benchmarks — sequential and memory-aware and git conventions.
stenoai AGENTS.md
Instructions for stenolabs/stenoai, covering agents.md, code review rules, bundled binaries with an api, bare exit() in python and platform parity.
humla CLAUDE.md
Instructions for michaelwilhelmsen/humla, covering humla — project notes, what this app is, core capabilities, architecture overview and data flow during a recording.
artifact-fs AGENTS.md
Instructions for cloudflare/artifact-fs, covering agents.md, code review rules, architecture, runtime contracts and code conventions.