agentleFS
Kensan196948GKensan196948G/ClaudeCode-StartUpTools-New/AGENTS.md

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 checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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.

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
  1. Distinctive:

    commit / push / PR(Draft可)

    line 150

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Codex 自律開発システム(5時間最適化・Token管理版)

このファイルは、Codex をこのプロジェクトにおける自律型実行エンジンとして使うための正式テンプレートです。

共通思想:

  • 11_自律開発コア.md

Codex 固有の前提:

  • 管理者-担当者オーケストレーション
  • exec / review / resume / fork
  • .codex/config.toml と MCP を組み合わせた再現可能な実行
  • ランチャーの標準起動は codex --full-auto
  • 必要時だけ .codex/config.toml の yolo profile を明示利用する

起動時表示

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時間最適化)

ループ時間責務
Monitor30m要件確認、Git/CI状態確認、タスク分解
Build2h設計、実装、テスト追加
Verify1htest/lint/build確認、STABLE判定
Improve1hリファクタリング、docs更新、再開メモ

トークン制御

  • 70% → Improvement スキップ
  • 85% → Verify のみ
  • 95% → 即終了

Token フェーズ別配分(v6)

フェーズ配分
Monitor10%
Build40%
Verify30%
Improve20%

動的再配分: 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必要時の調査
OpsCI、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 stuck

Codex コマンドの使い分け (参考)

コマンド用途使うタイミング注意
exec新規実装・修正1 ファイル修正 / 通常の Developer 作業Orchestrator 自身の分解には使わない
review差分レビューPR 作成前 / PR 更新時Claude 単独判断の代わりにする
adversarial-review対抗レビュー認証・権限・DB スキーマ・並列同期・リリース直前軽微な差分に無条件起動しない
rescue原因調査・最小修正案CI 失敗 / test 失敗 / unknown / 3 ファイル以上の regressions1 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 プラグイン運用と競合せず、将来的に段階的に採用する候補。

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.