
coopersimson96/aar-loop
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
どのAIセッションの後にアクションレビューを実行し、具体的なレッスンを記述すると、エージェントは間違いを繰り返すのを防ぎます。 米国軍のAAR法に組み込まれたマニュアル反射ループ.
概要
軍用法に組み込まれたAIエージェントのヒューマンランバージョンのReflexion(Reflexion for AIエージェント)は、50年以上にわたり標準的な練習をしています。 タスクやセッション後に/aar-loopを実行します。 3つのことを行います。 1。 アクションレビューの後、米国の軍隊の4-探求。 2. あなたのスキルやルールファイルへの改善をまっすぐに書き込むので、修正はどこかに書かれているだけでなく、再び必要な前にあります。 3。 永続的な LESSONS.md ファイルに、AI が次回読み込まれます。 次のセッションをそのファイル(スキルやルールがパッチを当てたもの)でポイントし、エージェントは同じミスを繰り返し停止します。 セッションごとに実行し、エージェントのコンパウンドは、毎回ゼロから再起動します。 米軍は、トレーニング演習のための構造の破片として、ベトナムの年後の1970年代半ばのAfter Action Reviewを正式化しました.
概要(AI 翻訳)
軍用法に組み込まれたAIエージェントのヒューマンランバージョンのReflexion(Reflexion for AIエージェント)は、50年以上にわたり標準的な練習をしています。
タスクやセッション後に[/aar-loop]を実行します。 3つのことを行います。
1。米国軍の4つの質問の後アクションレビューでセッションを見直します。 2。修正する価値があるものを見つけます そして、あなたのスキルやルールファイルへの改善をまっすぐに書き込むので、修正は、どこかに書かれていないだけでなく、再びそれを必要とする前にあります。 3。**レッスンは、AIが次回に読み込まれる永続的なLESSONS.md ファイルに保存します。
次のセッションをそのファイル(スキルやルールがパッチを当てたもの)でポイントし、エージェントは同じミスを繰り返し停止します。 セッションごとに実行し、エージェントのコンパウンドは、毎回ゼロから再起動します。
メソッドがどこから来るか
米軍は、トレーニング演習のための構造の破片として、ベトナムの年後の1970年代半ばのAfter Action Reviewを正式化しました。 フィールドマニュアルTC 25-20で1993年に正式なDoctrineとなり、ナショナルトレーニングセンター、フォート・アイウィン、世界で最も現実的な戦闘訓練環境の1つで、すべての回転が終わる.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
AAR Loop
A human-run version of Reflexion for AI agents, built on a military method that’s been standard practice for fifty years.
Run /aar-loop after any task or session. It does three things:
- Reviews the session with the US Army’s 4-question After Action Review.
- Finds what’s worth fixing and writes the improvement straight into your skills or rules files, so the fix is there before you need it again, not just written down somewhere.
- Saves the lessons to a persistent LESSONS.md file that your AI loads next time.
Point the next session at that file (and at whatever skill or rule got patched) and the agent stops repeating the same mistake. Run it every session and the agent compounds instead of restarting from zero each time.
Where the method comes from
The US Army formalized the After Action Review in the mid-1970s, in the years after Vietnam, as a structured debrief for training exercises. It became official doctrine in 1993 with field manual TC 25-20, and it’s still run after every rotation at the National Training Center, Fort Irwin, one of the most realistic combat training environments in the world. Fifty years of continuous use on one method, because the mechanism is simple and hard to argue with: separate the debrief from blame, ask what was supposed to happen versus what actually happened, and the gap tells you exactly what to fix before the next fight.
The 4 questions, verbatim:
- What was supposed to happen?
- What actually happened?
- Why was there a difference?
- What do we do the same or differently next time?
The research parallel
This is also, functionally, a manual version of Reflexion (Shinn et al., 2023, arXiv:2303.11366): an agent framework where a model generates a verbal self-reflection after a failed attempt, stores it in an episodic memory buffer, and carries it into the next attempt. Reflexion agents that keep their reflections outperform agents that start every attempt from scratch.
Nobody’s wired that loop into your AI harness by default. This skill is the manual version: you run the reflection step yourself, once per session, and LESSONS.md is the buffer. Same idea, no automation, and it costs you five minutes.
Install
Paste this into Claude Code, Codex, or your AI harness:
Install this skill globally: https://github.com/coopersimson96/aar-loop
Use
/aar-loop
or just say “run an aar” after finishing something. Sample output:
AAR · production deploy
1. What was supposed to happen?
Deploy the new build and have all three services (web, worker,
scheduler) come up on the new version.
2. What actually happened?
The deploy script reported success and exited 0. Web and worker were on
the new version, but the scheduler was still running the old one; it had
never actually restarted.
3. Why was there a difference?
The deploy script only checks the exit code of the restart command, not
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add coopersimson96/aar-loop