aishell: Instructions file for Codex

AGENTS.md

aishell AGENTS.md is an instructions file for Codex, OpenCode from kitepon/aishell. It costs 1,919 tokens per session, scanned A, original, Apache-2.0.

Project instructions for AIShell, a macOS tool that observes the computer’s live state and provides the information and actions needed for AI development tasks. They describe the product purpose, boundaries, and reference rules.

In plain words
What is it for?
Working on AIShell’s operating-system integration, file and process handling, worktrees, artifacts, state changes, diagnostics, recovery, and project documentation.
Why use it?
They keep changes aligned with AIShell’s design and prevent agents from adding unrelated tools or making unsupported performance claims.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents.

This is kitepon/aishell's own configuration. It tells Codex and OpenCode how to work on aishell 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 aishell configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kitepon/aishell. 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/kitepon/aishell/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/kitepon/aishell

Made for: 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 aishell AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kitepon/aishell/agents-md/github.svg)](https://agentmods.dev/instructions/kitepon/aishell/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kitepon/aishell/agents-md"><img src="https://agentmods.dev/badge/instructions/kitepon/aishell/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 aishell AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kitepon/aishell/agents-md"><img src="https://agentmods.dev/badge/instructions/kitepon/aishell/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,919 This file is loaded in full into every session.
When invoked 1,919 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.01919 $0.01919
Opus 5.5 $0.00768 $0.00768
Sonnet 5.5 $0.00384 $0.00384
Haiku 4.5 $0.00192 $0.00192

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

Security

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 1mo ago.

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 · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 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と所要時間を減らすこと。

優先順位:

  1. correctness / task success
  2. total model tokens per solved task
  3. wall time / model・tool往復
  4. compatibility

Direct OSは交換可能なbackendではなく、効率化を生む設計上の根である。AIShellがfile identity、OS変更の観測・照合state、process lifecycle、worktree、artifactをモデルより下で所有する。TrashとSHA競合検出を維持するが、現在の最適化対象ではない。

操作対象フォルダの事前登録や許可一覧は持たない。絶対パスはその対象、相対パスと省略時はMCP起動ディレクトリを基準にする。

新機能は、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と混ぜない。

操作機能と認証・UI

OS操作のツールと挙動を維持する。認証や管理UIの廃止を理由に、検索・一括読取り・変更待機・実行監視・影響解析・複数ファイル編集・artifact読取りを削らない。 管理UIと停止設定、Keychainアクセスは廃止した。runtime_open_managerは互換名だけを残し、廃止済みの明示エラーを返す。 編集状態は平文で保存し、新しい暗号鍵と所有者証明は作らない。旧暗号化記録の読取りと更新契約はdocs/setup.mdを参照する。使用ログは従来のactivity.jsonlへ保存する。

アーキテクチャ境界

  • AIShellは単独でinstall、config、state/schema、migration、diagnostics、recovery、 update、releaseできる契約を本repo内に持つ。dotagentsは製品横断wireと互換projectionを 統合するだけで、AIShellの内部状態や運用判断を制御しない。
  • 製品単体の準備・AI登録・読戻し・MCP実操作はaishell-setupが所有する。Mac/AI別の差はscripts/setup/へ置き、管理UIとKeychain認証は持たない。npm install lifecycleでは起動しない。公開契約はdocs/setup.mdを正とする。
  • AI hostがreasoning、thread、compaction、sub-agent、汎用PTYを所有する。AIShellで再実装しない。
  • AIShellは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-v1 fullは高密度9+control 2+legacy 18の29 toolである。

Read the full file on GitHub · 90 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. 1mo ago Changed · +10 lines · +278 tokens per session efc6ba8021b8
  2. 2mo ago Changed · +1 lines · +88 tokens per session 1b49e9d85a63
  3. 2mo ago Changed · +2 lines · +38 tokens per session 4aeb10b05255
  4. 2mo ago First seen · 77 lines · 1,515 tokens per session scan A 2d8393a9f90b

Subscribe to this mod's changes

aishell AGENTS.md is an instructions file published in the GitHub repository kitepon/aishell (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 1,919 tokens to every session, about $0.0077 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-31.

Related

aishell AGENTS.md compared with instructions from other repositories

aishell AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aishell AGENTS.mdkitepon/aishellInstructions file01mo agoApache-2.0A1,919Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot