Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Multi-Agent並列開発を 安全に回すための技術 / Technology for Sa...

Multi-Agent並列開発を 安全に回すための技術 / Technology for Safely Multi-Agent Parallel Development

## 概要

コーディングエージェントを複数並行で動かしたい場合、git worktreeを使えば作業空間は分けられる。

しかし、複数agentが同じファイルをそれぞれのworktreeで編集することで発生する競合までは防げない。

本LTでは、git worktreeをdeterministicに管理し、ファイル単位のseal claimとpre-commit hookによって同一ファイル編集の衝突を事前検知するツール、git-kuraの設計と実例を紹介する。

## 記事版

https://zenn.dev/philomagi/articles/tech_for_safely_multi-agent_parallel_dev

## git-kura

https://github.com/tooppoo/git-kura

## 発表

コーディングエージェント ハーネスエンジニアリング LT大会!!
https://mlops.connpass.com/event/395882/

Avatar for philomagi

philomagi

June 29, 2026

More Decks by philomagi

Other Decks in Technology

Transcript

  1. 今日のテーマ 3 • Multi Agent による並行開発 • git worktreeの活用 •

    並行作業につきまとうconflictの危険 • conflictを防ぐための技術
  2. git-kura • AI friendly • deterministic worktree management • repository

    shared lock system 21 $ git kura open <key> $ git kura get <key> $ git kura seal claim <file> $ git kura seal unclaim <file> $ git kura close <key>
  3. git-kuraの仕組み 25 <repository root> worktree a worktree b worktree c

    <a> seal file1.txt git kura seal claim file1.txt
  4. git-kuraの仕組み 26 <repository root> worktree a worktree b worktree c

    <a> seal file1.txt a: [file1.txt] git kura seal claim file1.txt
  5. git-kuraの仕組み 28 <repository root> worktree a worktree b worktree c

    a: [file1.txt] <b> seal file1.txt git kura seal claim file1.txt
  6. git-kuraの仕組み 29 <repository root> worktree a worktree b worktree c

    a: [file1.txt] file1.txt sealed by a exit non-zero git kura seal claim file1.txt
  7. git-kuraの仕組み 30 <repository root> worktree a worktree b worktree c

    a: [file1.txt] file1.txt sealed by a 処理が失敗したので 続行できない exit non-zero
  8. git-kuraを効果的に使うために 33 • “$ git kura tools install --all” を提供

    • git-kura を効果的に使うためのtool setをrepository local に追加できる ◦ Codex用Skill ◦ Claude用Skill ◦ バージョン管理可能な pre-commit hook ▪ husky方式 ( https://typicode.github.io/husky/ )