Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Loop Engineering これくらいでいい
Search
mikan
October 06, 2026
Technology
280
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Loop Engineering これくらいでいい
https://cybozu.connpass.com/event/402785/
mikan
October 06, 2026
More Decks by mikan
See All by mikan
形式手法を使って仕様をコーディングしよう
mikanichinose
0
220
Navigation3でやりとりした画面引数をSavedStateHandleから引き出せない理由
mikanichinose
0
41
Lazy APIを使ってGradleビルド速度を改善する
mikanichinose
1
94
Navigation3でViewModelにデータを渡す方法
mikanichinose
0
770
「脳に収まるコードの書き方」を読んで学んだこと
mikanichinose
1
250
RepositoryのSSoT化
mikanichinose
0
110
Kotlin Multiplatform 始めました
mikanichinose
1
170
Web APIをなぜつくるのか
mikanichinose
0
4.4k
イベントをどう管理するか
mikanichinose
3
420
Other Decks in Technology
See All in Technology
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
400
「私が一番顧客に詳しい」を捨てる~ 全員が一次情報に精通する開発チームをつくり、PMが次のボトルネックへ染み出すまで
kaminashi
3
2.1k
古い指輪から広がった JAVA コミュニティ とのつながり
yamad
0
140
Browser Spec: Testing Hotwire with Ruby
takahashim
1
170
From Developer Experience to Agentic Experience: The Next Evolution of APIs
benjagm
0
120
freeeにおけるSoftware Factory
freee
PRO
0
430
dbt Semantic Layerで進めるenechainのデータ民主化
akizhou
1
250
野良MCPサーバーを排除せよ!MCPサーバーのガバナンス
yukiogawa
1
210
僕のハーネスを紹介します
watany
5
1.6k
スクラム祭り2026福井トラック_閉じたループから価値のスパイラルへ
kc_nakanishi
0
110
小規模OSSモデルは サイバーセキュリティ業務に どこまで使えるか
bbrbbq
0
260
React改造してみた
tsukina_7mochi
0
160
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.8k
What's in a price? How to price your products and services
michaelherold
247
13k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Side Projects
sachag
456
43k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Building Applications with DynamoDB
mza
96
7.2k
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Darren the Foodie - Storyboard
khoart
PRO
4
4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
810
Transcript
DroidKaigi × iOSDC After Night Loop Engineering これくらいでいい エージェントにプロンプトを書かせて、人間はループ を設計する
m mikan( 一瀬喜弘) 10 20 30 40 60 80 95
自己紹介 Speaker object Mikan { val name = "一瀬喜弘" val
occupation = Engineer.Android val company = "AbemaTV" val favoriteBooks = listOf( "ソフトウェア設計の結合バランス", ) } X @mikanIchinose GitHub @mikanIchinose 02 / 20
01 ループエンジニアリングとは
言い出した人の言葉 Loop Engineering I don’t prompt Claude anymore. I have
loops running that prompt Claude. My job is to write loops. Loop engineering is replacing yourself as the person who prompts the agent. You design the system that does it instead. 1 都度プロンプトを打つのをやめて、 エージェントにプロンプトを書かせる 2 人間は ループを設計する 04 / 20
ピンとこない …… 言葉は分かる。で、何をすればいいのか 05 / 20
ループの作り方は色々ある How を監視させる 1 CI 2 GitHub 3 目標を決めて/goalを実行 4
etc... 上のイベントをフックさせる 06 / 20
僕がやっているループ タスクをマークダウンとして出力させて、 全部完了するまでループさせる 07 / 20
02 commander プラグイン
commander-claude/ tree . ├── agents │ ├── actor.md │ ├──
adversarial-reviewer.md │ └── experimenter.md └── skills ├── commander │ ├── backlog-format.md │ ├── backlog.schema.json │ └── SKILL.md └── delegate-to-codex └── SKILL.md 09 / 20
skills/commander/SKILL.md Markdown --argument-hint: <達成したいこと> disable-model-invocation: true --# Commander あなたはcommander。要求の理解、実装の分析、タスク分解、委譲、進捗管理、レビュー統合が仕事。 ##
入力 $ARGUMENTS ## 役割分担 commanderが行うのは、分析・タスク分解・backlogの管理・コマンドの実行・コミット。 コードを書く作業はAgent toolでsubagentに委譲する。commanderが自分で実装することはしない。 Codexへの委譲やworktreeの管理には `orchestration` skillを使う。 | 役割 | subagent_type | 起動条件 | プロンプトに渡す情報 | |---|---|---|---| | experimenter | `commander-claude:experimenter` | 実装してみないと解けない不確実性があるとき。コード読解で解けるなら起動しない | 検証したい仮説、既知 10 / 20
skills/commander/backlog-format.md Markdown --# フロントマターの構造は ./backlog.schema.json を参照 id: 003 slug: viewing-history-usecase
status: todo # todo | doing | done sub_task: [004, 005] # 子タスク parent_task: 001 # 親タスク worktree: # 起動後に埋める。actorのworktree絶対パス branch: # 起動後に埋める。actorのbranch references: [docs/docs/path/to/reference] # 実装する際に参照すべきドキュメント --## 背景 なぜこのタスクが必要か。元の要求のどの部分に対応するか。 前提となる調査結果は`tmp/docs/` の該当ファイルを絶対パスで示す。 ## 変更対象 - 触るファイル・モジュールを列挙する - 触ってはいけない範囲があれば明記する(スコープの境界) ## 完了条件 - [ ] 検証可能な条件を1つずつ書く。「正しく動くこと」は条件ではない 11 / 20
フォーマットはJSON Schemaで縛る 1 フロントマターの構造を機械可読にする Schema "status": { "enum": ["todo", "doing",
"done"] 2 運用規則の詳細はbacklog-format.mdに書 く }, "taskId": { "oneOf": [ { "type": "integer", 3 スキーマは「形」だけを担保する "minimum": 0, "maximum": 999 }, { "type": "string", "pattern": "^[0-9]{3}$" } ] } 12 / 20
agents/actor.md Markdown --name: actor description: backlogタスク1件を実装・テスト実装する実装役。 isolation: worktree --# actor
あなたはactor。プロンプトで渡されたタスクを完了させることが目的。 スコープ外の改善はせず、気づきは報告に書く。 ## ルール - 実装・テストの設計に入る前に、リポジトリの関連ドキュメントを確認する - 手を動かす作業はcodexに委譲する。`delegate-to-codex` skillを使う - codexの出力を鵜呑みにしない。差分を自分で読み、完了条件と突き合わせてから報告する ## 報告フォーマット 1. worktree絶対パスとbranch 2. 完了条件ごとの充足状況 3. 変更ファイル一覧 4. 検証: 自分で確認した範囲と、commanderに実行してほしいコマンド 5. スコープ外の気づき 13 / 20
03 工夫点
メインエージェントに仕事をさせない 理由 長時間動き続けるので、思考が消滅しないようにする commanderはあくまで分析・分解・進捗管理・検証 Tips やらせること / やらせないこと 1 やる:
タスク分解・backlog更新・コマンド実行・コミット 2 やらない: 実装・テスト実装(subagentに委譲) 15 / 20
SKILL.md を極力小さく保つ 1 最近流行っているskillはどれもシンプル 2 短い方が改善しやすい 3 ルールを沢山書いても、長時間実行してる 間に忘れる (grill-me,
ponytail, eli5) Tips ルールを足すより、 ループが拾う場所に置く 長い指示書は、長時間運転には耐えない 16 / 20
04 最近改善したこと
クリーンアップをbacklogに移した Before に「掃除する」と書いていた → 掃除してくれない時が多々あった SKILL.md Update After クリーンアップを最終タスク(id: 999)としてbacklogに出力させる
→ backlogならちゃんと見てくれるだろうという判断 18 / 20
references 課題 で参照先を固定した 開発方針と異なる実装をされることがあった Update 対応 フロントマターに references を追加し、 実装中に参照すべきドキュメントを
commanderに書かせる references: - docs/architecture.md - docs/testing-guideline.md 19 / 20
ご清聴ありがとうございました 20 / 20