netwaif

Agentlayer — Development skill for Claude Code

Development community

iTerm2+tmux 멀티 에이전트 관제탑 — Claude·Codex·Gemini 상태·알림·worktree.

How to install Agentlayer

This entry records only its repository, not the path inside it, so there is no exact command to give. Open netwaif/agentlayer and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agentlayer does

iTerm2+tmux 멀티 에이전트 관제탑 — Claude·Codex·Gemini 상태·알림·worktree.

Alternatives in Development

  • Clean Worktree (Interactive) — Interactive cleanup of worktrees: lists merged/stale branches and asks confirmation before deleting 25.5k ★
  • Worktree Cleanup — Remove worktrees and branches that have been merged: $ARGUMENTS 23.4k ★
  • Cancel Pua Loop — 取消当前活跃的 PUA Loop(原子级联:state + worktree + 记录) 19.5k ★

README

![agentlayer — The best of every tool. 도구의 장점을 흡수하는 마스코트](docs/assets/agentlayer-banner.png)

agentlayer — iTerm2+tmux 멀티 에이전트 관제탑

tmux 안에서 돌아가는 Claude Code / Codex / Gemini 에이전트들이 **누가 일하는 중이고, 누가 입력을 기다리고, 누가 끝났는데 아직 안 봤는지**를 한 화면에서 보여주는 터미널 도구.

Orca ADE의 관제 기능을 일반 tmux 위에 재현한다 — 자체 터미널도, GUI도, 데몬도 없다. tmux가 이미 잘하는 것(세션 유지, SSH 재접속)은 tmux에 맡기고, tmux가 모르는 것(에이전트의 의미 상태)만 채운다.

[coach](https://github.com/netwaif/usage-coach)(사용량 코칭) · [mat](https://github.com/netwaif/mat)(MultiAgent 작업 관제)의 자매 도구.

상태 모델

● WORK   일하는 중 (hook heartbeat)
◆ WAIT   사용자 입력·승인 대기  ← 가장 위에 정렬
✔ DONE   끝났는데 아직 안 봄 (읽음 처리 전까지 유지)
✖ ERR    비정상 종료
· idle   대기
  dead   pane 소실 (24시간 뒤 자동 정리)

상태는 **화면 스크래핑 없이** 에이전트 공식 hook과 tmux 메타데이터로만 판정한다. `DONE → idle` 전환은 반드시 사용자 행동(점프·읽음 키)으로만 일어난다 — "끝났는데 안 본 것"을 놓치지 않는 게 이 도구의 존재 이유다.

설치

brew install netwaif/tap/agentlayer                 # macOS
# 리눅스 / Windows WSL2 (brew 없이) — 맥도 가능. 릴리즈 tar.gz를 ~/.local/bin 에 놓는다
curl -fsSL https://raw.githubusercontent.com/netwaif/agentlayer/main/install.sh | bash
# 또는 소스 빌드 (Go 1.22+)
git clone https://github.com/netwaif/agentlayer.git && cd agentlayer
make install   # ~/.local/bin/agentlayer

리눅스는 Ubuntu 24.04(VM)에서 관제탑·hook·worktree·Discord를 검증했고, 창이 필요한 에이전트 브라우저는 WSL2(WSLg) 기준이다. 리눅스에서 다른 점: iTerm2 링크 라우팅 없음(터미널 링크는 `agentlayer browser open `로), 데스크톱 알림은 `notify-send`가 있을 때만, `cookies import`는 macOS 전용(실사용 Chrome이 윈도우 쪽이라 에이전트 브라우저 창에서 직접 로그인). 깨끗한 Ubuntu에는 Chrome for Testing이 쓰는 공유 라이브러리와 한글 폰트가 없으니 먼저 깐다:

sudo apt install -y libnss3 libnspr4 libatk-bridge2.0-0 libgtk-3-0 libgbm1 libasound2t64 fonts-noto-cjk
# Ubuntu 24.04 이전은 libasound2t64 대신 libasound2

Win10도 스토어판 WSL(2.x)이면 WSLg가 있어 브라우저 창이 뜬다. 상세는 `docs/linux-wsl2-verification.md`.

**WSL2 주의 — 배포판은 wsl.exe 클라이언트가 하나도 안 붙어 있으면 약 1분 안에 내려간다**(Win11 실측 2026-10-03, `.wslconfig`의 `vmIdleTimeout=-1`로도 못 막음). 그러면 tmux·에이전트·채널 서버가 전부 죽는다. Windows 터미널의 Ubuntu 탭을 하나는 열어 두거나(탭이 곧 클라이언트), 봇을 상주시키려면 작업 스케줄러에 `wsl.ex