b2-team

workspace 하나에 tab 둘, tab마다 pane을 나눠 agent를 둔다

workspace demo tab 인사 hi-claude claude hi-codex codex tab 개발 pm claude front claude back claude ~/herdr-demo git init 인사 hi-claude hi-codex agent prompt agent read 답 개발 pm SendMessage front 화면 back server, 데이터 준비됨 준비됨 --ratio 0.6 만드는 순서 1 workspace create 2 tab rename 3 pane split 4 agent start 5 /rename 6 agent prompt (역할) ID는 응답에서, focus는 그대로 개념도만 크게 보기

화면은 workspace > tab > pane 세 층이고, agent는 pane 안에서 돈다. CLI로 만들면 새 ID는 응답으로 오고, 사람의 focus는 그대로다.

명령

준비

  1. mkdir -p ~/herdr-demo && git -C ~/herdr-demo init -q -b main
  2. herdr workspace create --cwd ~/herdr-demo --label demo --no-focus
    • .result.workspace.workspace_id가 <ws>, .result.tab.tab_id가 <t1>, .result.root_pane.pane_id가 <a>

인사 탭

  1. herdr tab rename <t1> 인사 -> herdr pane split <a> --direction right --no-focus -> <b>
  2. agent 둘을 띄운다.
    • herdr agent start hi-claude --kind claude --pane <a> -- --allowedTools "Bash(herdr *)"
    • herdr agent start hi-codex --kind codex --pane <b>
  3. 아래 문구를 Write 도구로 /tmp/tour-hi.txt에 쓰고(따옴표와 backtick이 섞여 있다) herdr agent prompt hi-claude "$(cat /tmp/tour-hi.txt)" --wait --timeout 120000

    옆 pane의 codex(herdr agent 이름 hi-codex)에게 인사해 줘. herdr agent prompt hi-codex "<네 인사 한 줄>" --wait --timeout 60000으로 보내고, herdr agent read hi-codex --source recent-unwrapped --lines 15로 답을 읽은 뒤, 그 답에 한 줄로 화답해.

개발 탭

  1. herdr tab create --workspace <ws> --label 개발 --no-focus -> .result.root_pane.pane_id가 <pm>
  2. herdr pane split <pm> --direction right --ratio 0.6 --no-focus -> <front>, herdr pane split <front> --direction down --no-focus -> <back>
    • --ratio는 원래 pane의 몫이다. 0.6이면 pm이 폭의 60%다.
  3. herdr pane rename <pm> pm, front와 back도 같은 식으로
  4. agent 셋을 동시에 띄운다. 신뢰는 hi-claude에서 한 번 수락하면 같은 폴더에 남는다.
    • herdr agent start <이름> --kind claude --pane <pane> -- --permission-mode acceptEdits(pm, front, back)
    • 클로드 세션 이름: 셋마다 herdr agent prompt <이름> "/rename <이름>"(--wait 없이). SendMessage는 이 세션 이름으로 서로를 찾는다.
  5. pm에게 먼저, 그다음 front와 back에게 동시에 역할을 보낸다: herdr agent prompt <이름> "<문구>" --wait --timeout 120000
  1. herdr agent read pm --source recent-unwrapped --lines 20으로 두 보고가 왔는지 본다.

신뢰 질문

새 폴더에서는 agent start가 agent_not_ready를 돌려준다. herdr agent read <이름> --source visible로 커서 위치를 보고 바로 수락한다.

참고