gwq

A Git worktree manager with a built-in fuzzy finder, built for running parallel branches and AI coding agents side by side.

Source repo
d-kuro/gwq
Stars
★ 484
Last updated
1mo ago
FARS reviewed
Nov 27, 2026
License
Apache-2.0
Primary language
Go

At a glance

Works with
Universal · cross-platform
You'll need
Git 2.5+Go 1.27+ (only for building from source)tmux (for gwq tmux sessions)Shell / CLILocal filesystem
Typical use
Developers juggling several feature branches who are tired of stashing and switching in one directory.
Main limitation
It depends on Git 2.5+ worktree support and is a wrapper — it does not replace knowing Git.
Maintenance
Commits in the last 6 monthslast commit 2026-10-02

What does this agent do, and when should you use it?

gwq is a Go CLI that manages Git worktrees the way ghq manages repository clones: create, list, jump to, execute in, and delete worktrees through an intuitive interface backed by a fuzzy finder. It discovers all worktrees under a configured base directory by scanning the filesystem, so no registry is needed and global worktrees can be listed from outside any repository. A status dashboard (gwq status) shows git status, changes, and activity across worktrees with table, JSON, and CSV output plus a --watch refresh mode. The tool also ships a gwq tmux subcommand for long-running processes and shell completion plus integration for Bash, Zsh, Fish, and PowerShell, letting gwq cd and gwq add change the current shell's directory instead of spawning a nested shell. The README explicitly targets parallel AI coding workflows: one worktree per task so multiple agents work in isolated directories without merge conflicts.

gwq wraps Git's worktree capability, creating directories under the configured basedir (default ~/worktrees) following the naming template {{.Host}}/{{.Owner}}/{{.Repository}}/{{.Branch}}. gwq add creates a worktree from a new or existing branch and can copy files matched by copy_files globs (with ** support) and run setup_commands, rendered with Go text/template and executed via POSIX sh -c. gwq list/ls prints worktrees (-v verbose, -g global, --json), gwq get prints a path for cd $(gwq get ...), gwq exec runs a command inside a worktree, and gwq remove deletes a worktree, optionally deleting the branch, with --dry-run preview. gwq status aggregates git status across worktrees with --watch, --filter, --sort, --json, and --csv; gwq tmux manages tmux sessions (list/run/attach/kill); gwq config reads and writes the global ~/.config/gwq/config.toml and local .gwq.toml; gwq prune cleans up stale worktree information.

  1. Developers juggling several feature branches who are tired of stashing and switching in one directory.
  2. Teams that want one isolated worktree per task and several AI coding agents running concurrently with a shared status view.
  3. Engineers who need to run tests or installs in an isolated directory without disturbing the main workspace.
  4. People working across many repositories who want to fuzzy-find and jump to any worktree from anywhere.
  5. Users who keep long-running dev servers alive in tmux and want that tied to worktree management.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • brew install d-kuro/tap/gwq
  • go install github.com/d-kuro/gwq/cmd/gwq@latest
Config files
~/.config/gwq/config.toml .gwq.toml
Runtime
Go 1.27+
Install notes cover
macOS · Linux

How do you install or deploy this agent?

Install with Homebrew (macOS/Linux):

brew install d-kuro/tap/gwq

Or install with Go:

go install github.com/d-kuro/gwq/cmd/gwq@latest

Build from source:

git clone https://github.com/d-kuro/gwq.git
cd gwq
go build -o gwq ./cmd/gwq

Runtime requirement: Git 2.5+. Building from source requires Go 1.27+.

How do you use this agent?

Create a worktree, inspect it, and clean up:

gwq add -b feature/new-ui
gwq list
gwq status
cd $(gwq get feature)
gwq exec feature -- npm test
gwq remove feature/old-ui

Set up parallel AI coding agents and watch them:

gwq add -b feature/authentication
gwq add -b feature/data-visualization
cd $(gwq get authentication) && claude
cd $(gwq get visualization) && claude
gwq status --watch

Write configuration (global ~/.config/gwq/config.toml, or --local to write .gwq.toml):

gwq config set worktree.basedir ~/worktrees
gwq config set --local finder.preview false

Enable shell completion (Zsh shown; set cd.launch_shell = false to let shell integration change the current shell's directory):

source <(gwq completion zsh)

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

What are this agent's strengths and limitations?

Pros
  • A built-in fuzzy finder means creating, switching, and deleting worktrees without hand-writing git worktree commands.
  • Global discovery scans the filesystem instead of maintaining a registry, so all worktrees can be listed even outside a repository.
  • gwq status offers table, JSON, and CSV output with a --watch refresh mode, making it practical to audit many parallel working directories.
  • Per-repository copy_files and templated setup_commands let new worktrees come pre-configured automatically.
  • Completion for Bash, Zsh, Fish, and PowerShell, with shell integration that makes gwq cd act in the current shell rather than a nested one.
Limitations
  • It depends on Git 2.5+ worktree support and is a wrapper — it does not replace knowing Git.
  • PowerShell has no shell integration, so directory-changing workflows are limited on Windows.
  • setup_commands run through sh -c, so a local .gwq.toml is a code-execution vector that must be trusted first.
  • The command surface is broad (add/list/get/cd/exec/remove/status/tmux/config/prune) and takes some reading to learn.
  • tmux features depend on an external tmux installation; the README documents no fallback when tmux is absent.

How does this agent compare with similar options?

The README frames gwq as doing for worktrees what ghq does for repository clones — note the objects differ (clones versus worktrees). It also documents combining gwq with ghq and fzf to get one unified fuzzy search across clones and worktrees.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
gwq This agent 53 · Major gaps — ★ 484 1mo ago Go —
Agetor 76 · Good — ★ 140 today TypeScript Codex · Claude Code
NTM (Named Tmux Manager) 61 · Some gaps CLIFree + model costs ★ 468 today Go Codex · Claude Code
Yardsort 83 · Good Desktop appFree ★ 15 1d ago Rust Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
53/ 100 5-point scale 2.7 / 5
Trust 12/29
Reliability 8/14
Adaptability 12/18
Convention 9/18
Effectiveness 9/13
Verifiability 3/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

README explicitly states setup_commands run via sh -c and are a code-execution vector requiring local .gwq.toml to be trusted, which is a transparency plus; however the trust-prompt implementation and pre-execution confirmation flow are not shown in the packet, so least_privilege and sensitive_data_handling score 1. remove offers --dry-run and -f flags showing some confirmation awareness (user_confirmation=2), but default behavior and force-delete boundaries are not corroborated in source. Dependencies are ordinary Go libraries with no known-vulnerability evidence, but no audit or lockfile discussion, so dependency_security=1. rollback only has prune and dry-run with no post-deletion recovery, deducted. source_attribution only cites Apache-2.0 and LICENSE; publisher identity unverified, so 1.

Reliability8 / 14 · 2.9/5

README commands, flags and config keys are internally consistent, and CLAUDE.md matches Makefile targets (build/test/lint), self_consistency=2. go.mod dependencies are public modules and CI enforces go mod tidy, dependency_availability=2. Failure messages: README notes unknown template variables log an error to stderr, but overall error handling and exit codes are not shown, failure_messages=1.

Adaptability12 / 18 · 3.3/5

README clearly frames the CLI tool, parallel AI workflow scenarios and multi-platform install, audience_and_scenarios=2. capability_boundaries is shown via the command list and the note that PowerShell lacks shell integration, score 2. trigger_precision: the SKILL.md description names explicit triggers (release, tag, bump version, /release-gwq), score 2. environment_fit covers Homebrew, Go, source build and multi-shell completion, score 2.

Convention9 / 18 · 2.5/5

README is well-structured with clear sections, information_architecture=2; install_notes=2; examples_and_faq=2; LICENSE is full Apache-2.0, license=2. However CLAUDE.md explicitly disclaims backward compatibility, so naming_stability=1; known_limitations are only scattered (PowerShell unsupported), score 1; versioning_changelog only appears via the release skill with no in-repo CHANGELOG, score 1; maintenance_responsibility is only implicit in the release skill and CI with unverified publisher, score 1.

Effectiveness9 / 13 · 3.5/5

Output usability is strong: list/status support JSON/CSV, get supports command substitution, output_usability=2. marginal_value comes from the parallel AI workflow and global worktree management differentiation, score 2. cost_benefit: single Go binary with simple install, score 2; no performance or resource data provided, so not 3.

Verifiability3 / 8 · 1.9/5

Most README claims are traceable to command and config examples, claim_traceability=1 (some claims like fuzzy finder behavior are not corroborated in the source sample). cross_source_corroboration: README, CLAUDE.md, CI workflows and SKILL.md mutually confirm build and release flow, score 1 (limited sample). fact_inference_separation: docs distinguish facts from advice but do not label inferences, score 1.

Risks and how to mitigate them
  • setup_commands execute arbitrary commands via sh -c; local .gwq.toml is a code-execution vector and must be trusted before use.
  • CLAUDE.md explicitly disclaims backward compatibility, so upgrades may break existing configs or scripts.
  • Publisher identity is unverified by FollowAgents; the release flow relies on GitHub App secrets and goreleaser, so assess supply-chain risk yourself.
  • remove's force-delete and branch-deletion options can cause unrecoverable data loss; prefer --dry-run first.
  • This is a static source review with no commands executed; functionality and safety are not independently verified.
Evidence confidence: Low Reviewed Nov 27, 2026 Reviewed revision ec0a9f3d6aef
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/gwq.svg)](https://followagents.com/en/agents/gwq)
<a href="https://followagents.com/en/agents/gwq"><img src="https://followagents.com/badge/gwq.svg" alt="FARS review"></a>

FAQ

Does gwq rewrite my repository history or touch remotes?
No. It wraps git worktree to create, list, and remove worktrees under the basedir, and can optionally delete the corresponding branch with gwq remove -b. Deletion can be previewed with --dry-run, and unmerged branches require --force-delete-branch.
Can I change how worktree directories are laid out?
Yes. The default is {{.Host}}/{{.Owner}}/{{.Repository}}/{{.Branch}}; naming.template can be changed, for example to {{.Repository}}/{{.Branch}}. Note that naming.template is global and applies to every repository, while basedir can be overridden per repository in repository_settings.
Are setup_commands a security risk?
They are code execution: each string is rendered with Go text/template and run via POSIX sh -c, and a local .gwq.toml must be trusted before its commands run. Variables are substituted textually, so quote them when values may contain spaces or shell metacharacters.
Is tmux required?
No. Core commands (add, list, get, cd, exec, remove, status, config, prune) work without tmux; only the gwq tmux session commands (list, run, attach, kill) need a tmux environment.
How well does it work on Windows?
PowerShell completion is supported, but the README states PowerShell has no shell integration, so current-shell cd for gwq cd and auto_cd_on_add are not available there.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts