ClaudeCode-StartUpTools-New
AGENTS.md2 starsChanged 6 months agoMITView on GitHub
このファイルは、Codex をこのプロジェクトにおける自律型実行エンジンとして使うための正式テンプレートです。 共通思想: - 11_自律開発コア.md Codex 固有の前提: - 管理者-担当者オーケストレーション - exec / review / resume / fork - .codex/config.toml と MCP を組み合わせた再現可能な実行 - ランチャーの標準起動は codex --full-auto - 必要時だけ .codex/config.toml の yolo profile を明示利用する yolo profile は常用しません。通常の自律実行は codex --full-auto を基準にします。 動的再配分: CI失敗時 Verify+20/Build-20、安定時 Improve+10/Build-10 state.json で残時間を自己管理: - < 30分: Improve スキップ - < 15分: Verify のみ - < 10分: 終了準備 - < 5分: 即終了 以下すべて成功時のみ: - install / lint / test / build / CI - error 0 / security issue…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- Claude/CLAUDE.mdCLAUDE.md
- .claude/claudeos/examples/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 150
commit / push / PR(Draft可)
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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.
Files
AGENTS.md
Codex 自律開発システム(5時間最適化・Token管理版)
このファイルは、Codex をこのプロジェクトにおける自律型実行エンジンとして使うための正式テンプレートです。
共通思想:
- 11_自律開発コア.md
Codex 固有の前提:
- 管理者-担当者オーケストレーション
exec/review/resume/fork.codex/config.tomlと MCP を組み合わせた再現可能な実行- ランチャーの標準起動は
codex --full-auto - 必要時だけ
.codex/config.tomlのyoloprofile を明示利用する
起動時表示
Codex 自律開発システム(5時間最適化版)
モード: 自動モード
オーケストレーション: 管理者-担当者分担
実行: `exec` / `review` / `resume` / `fork`
MCP: 設定時に有効
Sandbox: プロファイルで制御
Approval: プロファイルで制御
最大作業時間: 5時間推奨プロファイル
| プロファイル | 用途 | 推奨度 |
default | 手動確認を残した通常運用 | 中 |
full_auto | ランチャー標準。自動実行を優先しつつ workspace-write に留める | 高 |
yolo | 強い権限が必要な限定作業。danger-full-access を使う | 低 |
yolo profile は常用しません。通常の自律実行は codex --full-auto を基準にします。
時間制御
- 最大5時間
- 到達時は即安全停止
- 未完でも必ず引継ぎ
ループ構成(5時間最適化)
| ループ | 時間 | 責務 |
| Monitor | 30m | 要件確認、Git/CI状態確認、タスク分解 |
| Build | 2h | 設計、実装、テスト追加 |
| Verify | 1h | test/lint/build確認、STABLE判定 |
| Improve | 1h | リファクタリング、docs更新、再開メモ |
トークン制御
- 70% → Improvement スキップ
- 85% → Verify のみ
- 95% → 即終了
Token フェーズ別配分(v6)
| フェーズ | 配分 |
| Monitor | 10% |
| Build | 40% |
| Verify | 30% |
| Improve | 20% |
動的再配分: CI失敗時 Verify+20/Build-20、安定時 Improve+10/Build-10
残時間管理
state.json で残時間を自己管理:
- < 30分: Improve スキップ
- < 15分: Verify のみ
- < 10分: 終了準備
- < 5分: 即終了
システム目的
- 自動設計補助
- 自動実装
- 自動検証
- 自動修復
- 再現可能な実行ループの維持
標準ロール
| ロール | 役割 |
| Manager | 要件整理、分解、統合、終了判断 |
| Architect | 影響範囲、構造、境界を確認 |
| Build | 実装担当 |
| Test | テスト、build、lint 実行 |
| Review | 差分レビュー |
| Research | 必要時の調査 |
| Ops | CI、MCP、実行環境確認 |
CI Manager(自動修復)
- CI失敗は必ず失敗として扱う
- 成功偽装禁止(|| true 禁止)
- 修復は最小差分、1修復 = 1仮説
- 最大15回リトライ、同一エラー3回 → Blocked
STABLE判定
以下すべて成功時のみ:
- install / lint / test / build / CI
- error 0 / security issue 0
標準ループ
状況分析
↓
Manager ディスカッション
↓
タスク分解
↓
担当割当
↓
`exec` による実装
↓
テスト / build / lint
↓
レビュー
↓
改善または完了運用ルール
mainへ直接 push しない- write-heavy task は責務分離してから並列化する
- unsafe profile は限定利用にする
- Issue 駆動開発
- PR 必須、CI 成功のみ merge
停止条件
- STABLE + Merge 成功
- 5時間到達
- Blocked(同一エラー3回)
終了処理(必須)
- commit / push / PR(Draft可)
- CI結果整理
- 残課題・再開ポイント明確化
承認ルール
自動で進めてよいもの:
- 調査、設計、実装、テスト、review
- sandbox 内の安全なコマンド
ユーザー確認を入れるもの:
push/merge/delete branch/release- 破壊的変更
- 認証 / secret / 権限変更
行動原則
Small change / Test everything
Stable first / Deploy safely
Improve continuously / Stop at 5 hours safely
Think within budget / Use tokens wisely
Simplest first / Complicate only where stuckCodex コマンドの使い分け (参考)
| コマンド | 用途 | 使うタイミング | 注意 |
exec | 新規実装・修正 | 1 ファイル修正 / 通常の Developer 作業 | Orchestrator 自身の分解には使わない |
review | 差分レビュー | PR 作成前 / PR 更新時 | Claude 単独判断の代わりにする |
adversarial-review | 対抗レビュー | 認証・権限・DB スキーマ・並列同期・リリース直前 | 軽微な差分に無条件起動しない |
rescue | 原因調査・最小修正案 | CI 失敗 / test 失敗 / unknown / 3 ファイル以上の regressions | 1 rescue = 1 仮説、深追い禁止 |
resume | 中断中の job 再開 | 前回セッションからの継続作業 | 結果未確認のまま再投入しない |
fork | 並列な別仮説 | 同一問題への複数仮説検証 | 担当ファイル境界を先に宣言 |
推奨返却フォーマット (参考)
サブエージェントからの返却を以下の 4 セクション固定にすると Orchestrator の検証が機械化しやすい。既存運用と並行して試験的に採用できる:
## Summary
- 1〜3 行の結論 (最も重要なリスクから書き始める)
## Risks
- 未確認点・副作用候補 (空なら "none")
- 重大度 (high / medium / low) を付与
## Findings
- 観測事実のみ (根拠ファイル:行番号)
## Next Action
- Orchestrator の次の 1 手候補順序は Summary → Risks → Findings → Next Action 固定。 Risks を Findings より前に配置するのは、重要な論点が埋もれないようにするため。
この形式は .claude/claudeos/system/role-contracts.md で提案されているリファレンスパターンである。既存の Codex プラグイン運用と競合せず、将来的に段階的に採用する候補。
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
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.

