neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
Task-based Git worktrees, made easy.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Manage Git worktree task spaces without memorizing git worktree commands. workbranch creates one task folder per feature, works with one repo or many repos, and keeps branch refresh commands short and safe. The CLI reads shared workbranch project state and runs the task worktree/Git flow. Companion shows each task's AI agent sessions on a 내 응답 대기 | 실행 중 | 턴 종료 · 검토 (waiting on you | running | turn ended, review) board in the macOS menu bar, so you can see which agent needs your reply. Its Activity view builds a timeline from the separate local append-only activity log.README 전문 보기 ↗
English | 한국어
Manage Git worktree task spaces without memorizing git worktree commands.
workbranch creates one task folder per feature, works with one repo or many repos, and keeps branch refresh commands short and safe.
The CLI reads shared workbranch project state and runs the task worktree/Git flow. Companion shows each task's AI agent sessions on a 내 응답 대기 | 실행 중 | 턴 종료 · 검토 (waiting on you | running | turn ended, review) board in the macOS menu bar, so you can see which agent needs your reply. A usage summary above the board and the Usage view show Claude Code and Codex token usage and plan limits, read from the agents' own local files.
| When you need to | Use | Role | Install |
|---|---|---|---|
| Create, refresh, land, or push task workspaces | workbranch CLI | Runs the actual Git/worktree workflow | brew install tkhwang/tap/workbranch |
| See which agent sessions wait on you, run, or need review; open tasks in your IDE; check repository state | Workbranch Companion | Shows hook observations and Git facts from the menu bar | brew install --cask tkhwang/tap/workbranch-companion |
brew install tkhwang/tap/workbranch
workbranch init # register a project and repos; can create the first task
workbranch add login # create another task whenever you need one
cd feat-login # task root: run your AI agent here
workbranch status # check every repo in the task
On macOS, install Companion too:
brew install --cask tkhwang/tap/workbranch-companion
brew install tkhwang/tap/workbranch
If you prefer to add the tap first:
brew tap tkhwang/tap
brew install workbranch
curl -fsSL https://raw.githubusercontent.com/tkhwang/workbranch/main/install.sh | bash
Homebrew installs published releases. The curl installer tracks main.
workbranch init walks you through setup and can create your first task on the spot.
workbranch init
# Project name, then register one repo (name + Git URL + base branch)
# "Add another repo?" -> N # one repo is enough to start
# "Add your first task?" -> login # creates the feat-login workspace
Need another task later? Create one anytime with workbranch add.
workbranch add login # (branch) feat/login
# (folder) feat-login/<repo>
These quick-start examples assume a main/master base. If every repo is based on the same parent feature branch, such as feature/cpq, workbranch add login asks only for the task name and creates folder feature-cpq-login/<repo> with branch feature/cpq-login.
For every task, the CLI creates linked worktrees under one shared task directory:
my-app-workspace
├── .workbranch.config
├── _base
│ ├── frontend
│ └── backend
└── feat-login // task root: not git-managed; run your AI agent here
├── frontend // Git repo worktree
└── backend // Git repo worktree
For multi-repo products, workbranch gathers every repo an agent needs into one task folder. That makes AI-agent sessions easier to start, inspect, and clean up than juggling separate clones or unrelated worktrees.
Before an agent starts, workbranch refresh <task> brings every repo in the task up to the latest base in one command — no per-repo pulling or rebasing.
See AI agent workflows for the multi-repo benefits.
Companion reads this structure through workbranch list --global --json. Below the runtime board, the Main view's collapsible Base repositories section shows each base repo's branch, dirty state, and ahead/behind counts against cached origin/<baseBranch> refs. PULL/PUSH/CHECK pills are guidance only; dirty + behind advises CHECK first, and an unreadable repo shows UNAVAILABLE without hiding healthy data. Reads do not fetch. Task creation, refresh, land, and push remain CLI actions.
Now work inside the task workspace. The task root (<task>) is a non-git workbranch metadata/agent workspace; the actual Git repos live under <task>/<repo>. Before editing a repo, read and follow repo-local agent instructions such as <task>/<repo>/AGENTS.md, <task>/<repo>/CLAUDE.md, or <task>/<repo>/.claude/ when present.
# macOS: open code repos in the IDE, and the task root in the terminal
workbranch ide feat-login # opens feat-login/<repo> worktrees
workbranch terminal feat-login # opens feat-login task root
# or anywhere
cd feat-login/<repo>
# edit code and run git commands in the repo
Need the latest base while you work? See Staying up to date. When the work is done, ship it.
To bring a single task up to the latest base, pull the base from its remote and update <task> to apply it to the task.
workbranch pull # pull every base from its remote
workbranch update feat-login # apply local base updates to every repo in the task
# combined: pull + update in one step
workbranch refresh feat-login
Working in several tasks at once? Run them without a task name to refresh every task in one go.
workbranch pull # update local bases
workbranch update # apply local bases to every task
# combined
workbranch refresh # pull bases, then update every task
update and refresh stop when a task worktree is dirty. Add --autostash to set the changes aside, update, and restore them in every dirty repo. Changes are saved under each branch with workbranch stash, not in the git stash list that every worktree shares:
workbranch refresh --autostash # every task
workbranch update feat-login --autostash # one task
Preflight first replays the rebase and the restore in a scratch worktree; if any repo would conflict, nothing changes. To do the same by hand in one repo:
workbranch stash # run inside <task>/<repo>
workbranch refresh feat-login
workbranch stash pop # restores only this branch's changes
To refresh the base, apply it to a task, and land in one step, use finalize.
workbranch finalize feat-login # base pull → feat-login update → land
What push publishes depends on your base branch.
| Feature flow | Stacked flow | |
|---|---|---|
| Base branch | main / master | a feature branch, e.g. feat/login |
| Task branch (folder) | feat/login (feat-login) | feat/login-part1 (feat-login-part1) |
| Ship | push the task branch, open a PR | land into base, then push the base |
| Command | workbranch push feat-login | workbranch land feat-login-part1workbranch push |
| Pushes | task branch | base branch |
# edit code in feat-login/<repo>
workbranch push feat-login # local feat/login -> origin/feat/login
# edit code in feat-login-part1/<repo>
workbranch land feat-login-part1 # fast-forward feat/login-part1 into local base (feat/login)
workbranch push # local feat/login -> origin/feat/login
| Command | Use it to |
|---|---|
workbranch init | Create or clone base worktrees from config |
workbranch add [<task>] | Create a task workspace |
workbranch list [--json] | Show repos and task workspaces; --json is machine-readable output |
workbranch noti ... | Add, list, or clear task notifications |
workbranch status | Show base remote diff, task diff, and dirty state |
workbranch update [task] | Update every repo in the task from local base (no pull) |
workbranch land <task> | Fast-forward task work into local base branches |
workbranch push [task] | Push base or task branches |
workbranch doctor [--fix] | Diagnose project health; safe fixes include stale worktree pruning and brief H1 repair |
Combined flow shortcuts:
| Command | Use it to |
|---|---|
workbranch refresh [task] | Pull base branches, then update task workspaces |
workbranch finalize <task> | Pull base branches, update one task, then land it |
workbranch prune | Remove clean task workspaces already merged into local base branches |
Workbranch Companion is a macOS menu bar app with Main, Usage, and Settings views.
내 응답 대기 (waiting on you) means the agent needs your permission, answer, plan approval, or input; 실행 중 (running) means it is working; 턴 종료 · 검토 (turn ended, review) means its turn ended and it is your turn to review, not that the task is done. A task appears once, in its lead session's column. Tasks with no session, an unknown (stale) observation, or only inactive sessions are listed under WORKSPACES below the board. A usage summary above the board shows Claude Code and Codex side by side: plan limits (Claude 5h and weekly, Codex weekly) with time to reset and today's tokens, then the last seven days by day with both agents' totals●N dirty files, ↑N ahead, ↓N behind, or CLEAN) are visible without expanding, next to the latest request, state, provider icon (Claude Code, Codex, or Grok Build), and observation age. Click a card for last commits and session details; double-click opens the task in your IDE. Each repo row keeps a note~/.claude/projects and its cached /usage result in ~/.claude.json, and Codex rollouts in ~/.codex/sessions. Limits are the agents' last observation, so each shows its age and dims when stale; Claude's limits refresh when Claude Code refreshes /usage, or live while a Claude Code session is open once Settings > General > Live Claude Limits is on (opt-in: it points statusLine in ~/.claude/settings.json at a relay that saves the status line's rate_limits and still runs your previous status line; turning it off restores it)CL 5h 42% · W 63% CO W 18% · 31.0M; refreshed every minute, – when a reading is stale), the interface font and text size, the Claude Code or Codex theme, the screen saver, and CLI/agent connectionsCompanion reads hook-driven runtime snapshots separately from Git status. No TASK-WORKBRANCH.md reporting is required. Install hooks with workbranch hooks install --provider claude or --provider codex, then review provider hook trust. Grok Build needs explicit trust: inspect the plugin source with workbranch hooks describe --provider grok, and only if you trust it run workbranch hooks install --provider grok --trust. Companion's Grok connect button shows the same source first. See Companion installation and agent connections.
Install:
brew install --cask tkhwang/tap/workbranch-companion
Use Companion onboarding or Settings to install the CLI with Homebrew and connect Claude, Codex or Grok.