katashiro: Instructions file for Codex

AGENTS.md

katashiro AGENTS.md is an instructions file for Codex, OpenCode from nahisaho/katashiro. It costs 1,262 tokens per session, scanned A, original, MIT.

A set of instructions for the Katashiro AI coding agent, including rules for handling research requests through its command-line tool.

In plain words
What is it for?
Use it when working with Katashiro to run deep research, market or competitor analysis, SWOT or 3C analysis, and report generation from the terminal.
Why use it?
It keeps research tasks from being implemented in the wrong way, such as writing a TypeScript script when a direct command should be run.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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 katashiro AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nahisaho/katashiro/agents-md"><img src="https://agentmods.dev/badge/instructions/nahisaho/katashiro/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,262 This file is loaded in full into every session.
When invoked 1,262 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.01262 $0.01262
Opus 5.5 $0.00505 $0.00505
Sonnet 5.5 $0.00252 $0.00252
Haiku 4.5 $0.00126 $0.00126

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

Security

Grade A, and why

katashiro 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 2mo 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 · 137 lines

How it starts

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

KATASHIRO - AI Coding Agent Guide

AI Coding Agent向け: このファイルを読み込んだAIエージェントは、ユーザーの課題を解決するためにKATASHIROライブラリの機能を自動的に活用できます。


🚨🚨🚨 最重要: 調査依頼への対応ルール 🚨🚨🚨

⛔ 絶対禁止事項

ユーザーが以下のキーワードを含む依頼をした場合、TypeScriptスクリプトを作成してはいけません:

  • 「調べて」「調査して」「リサーチして」
  • 「〜について教えて」「〜を分析して」
  • 「レポート作成」「報告書作成」「提言書作成」
  • 「市場調査」「競合分析」「SWOT」「3C」

✅ 正しい対応: CLI実行

# ターミナルで直接実行
npx katashiro deep-research "トピック" --iterations 5 > reports/output.md

依頼→CLIコマンド変換表

ユーザーの依頼 実行すべきコマンド
「AIについて調べて」 npx katashiro deep-research "AI"
「中国のレアメタル輸出禁止の影響を調査」 npx katashiro deep-research "中国 レアメタル 輸出禁止 日本産業 影響"
「競合のSWOT分析」 npx katashiro deep-research "競合" --framework swot
「市場の3C分析」 npx katashiro deep-research "市場" --framework 3c
「提言書を作成」 npx katashiro deep-research "トピック" --iterations 10 > reports/report.md

CLI オプション

npx katashiro deep-research "トピック" [オプション]

オプション:
  --iterations <n>    反復回数(デフォルト: 5)
  --framework <type>  フレームワーク(swot/3c/4p/5forces/auto)
  --threshold <n>     収束閾値(0.0-1.0、デフォルト: 0.1)
  --focus <areas>     フォーカスエリア(カンマ区切り)
  --format <type>     出力形式(markdown/json)

判定フローチャート

ユーザー依頼を受信
    ↓
「調べて」「調査」「分析」「レポート」「提言」を含む?
    ├── Yes → npx katashiro deep-research を実行
    └── No  → 以下の課題タイプ判定へ

📋 課題タイプ別の対応

課題タイプ キーワード 対応方法
調査・リサーチ 調べて、検索、情報収集 npx katashiro deep-research (CLI)
分析・解析 分析して、傾向、特徴 TextAnalyzer / EntityExtractor
要約 要約、まとめて SummaryGenerator
検索のみ 検索結果だけ npx katashiro search "クエリ"
スクレイピング URLから取得 npx katashiro scrape <url>

🛠️ CLI コマンド一覧

# Deep Research(調査系はすべてこれ)
npx katashiro deep-research "トピック"

# 検索
npx katashiro search "クエリ"

# スクレイピング
npx katashiro scrape https://example.com

# テキスト分析
npx katashiro analyze document.txt

# エンティティ抽出
npx katashiro extract article.txt

# 要約
npx katashiro summarize long-document.txt --length 500

Read the full file on GitHub · 137 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. 2mo ago First seen · 137 lines · 1,262 tokens per session scan A 6f2f24eaa484

Subscribe to this mod's changes

katashiro AGENTS.md is an instructions file published in the GitHub repository nahisaho/katashiro (0 stars, last pushed 9mo ago), licensed MIT. It adds 1,262 tokens to every session, about $0.0050 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

katashiro AGENTS.md compared with instructions from other repositories

katashiro AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
katashiro AGENTS.mdnahisaho/katashiroInstructions file09mo agoMITA1,262Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode