gitguardex
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 28 GitHub stars
Code Basarisiz
- child_process — Shell command execution capability in .claude/hooks/abide_hook.js
- os.homedir — User home directory access in .claude/hooks/abide_hook.js
- process.env — Environment variable access in .claude/hooks/abide_hook.js
- fs module — File system access in .claude/hooks/abide_hook.js
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Run Codex and Claude in parallel. Each agent gets its own Git worktree. File locks prevent edit conflicts; changes land through pull requests.
GitGuardex
Run Codex, Claude, and humans in parallel on one repo without overwriting each other's work. Claim files before editing in isolated worktrees, then see what was checked before merging. One task → one worktree → one PR.
Install · Use it · AI code review · Impact Assist · How it compares
Install
You need Node.js 18+, Git, and the GitHub CLI logged in (gh auth login). Linux and macOS work; on Windows, use WSL.
npm install -g @imdeadpool/guardex
cd your-repo && gx setup
gx setup runs once per repo. It adds the hooks and the agent rules (AGENTS.md / CLAUDE.md) that Codex and Claude Code follow.
Use it
With Codex or Claude Code: give the agent a task as usual. The rules from gx setup tell it to open its own worktree, claim the files it edits, and ship a PR when it is done. Start as many agents as you like. Each one works in its own lane, and none of them edits main directly.
By hand: it takes two commands.
gx branch start "Add checkout validation" "me" # new branch + worktree; cd into the printed path
gx ship # commit, open the PR, AI review, merge, clean up
Between the two, edit and test as usual. gx ship merges only after a clean review and passing checks, and it never overrides GitHub branch protection. The review uses your Codex or Claude Code CLI; without one, run gx ship --no-gate-review.
Want to see it first? Run node examples/agent-collision-demo.js from a checkout. Two simulated agents share a temporary repo, and GitGuardex stops the second one before it overwrites the first one's file.
Code-assist review gate
For AI code review, install and authenticate the Codex or Claude Code CLI.
gx pr-review --pr 123 --post
Review an existing PR using your local Codex CLI. GitGuardex falls back to Claude Code if Codex cannot launch; pin either with --provider (or --review-provider when finishing). The review posts severity, file and line, and the reason a finding matters. Posting a review does not merge the PR.
With --gate-review, high and critical findings block the finish. Add --gate-autofix to attempt fixes and review the new head before merging. A green CI run is not a substitute for a clean review, or vice versa.
How to improve this PR lists required changes. Gated finish passes them to autofix and requires a fresh review to verify each on the updated diff. Impact estimates and High-impact opportunities remain advisory.
Set GUARDEX_REVIEW_BUG_HUNTER=1 to add one read-only BugHunter pass to the
PR review or finish review gate. It uses the same Codex or Claude provider and
reads only the PR diff. With --gate-review, every BugHunter finding blocks
the merge, including low and medium findings. An incomplete pass also blocks.
With --gate-autofix, GitGuardex includes those findings in the repair round
and reviews the new commit before merging.
gx branch finish --via-pr --wait-for-merge --cleanup --gate-review --gate-autofix
If a diff exceeds the review size limit, split the PR to continue. A standalone review may report partial findings, but cannot pass the gate. See preflight setup for local checks.
Real GitHub review

Open the example PR · Full-size screenshot
BugHunter demo
BugHunter flags behavioral bugs, such as a second click queuing the same board twice. In this example, both findings must be fixed before the gated finish can merge.
Impact Assist
Code review asks what could break. Impact Assist asks what the repository gains or gives up by merging. The review renders this as a PR impact section: benefits, trade-offs, links to supporting diff lines, and suggested next steps when available.
The neutral baseline is 50. The score is an estimate based on the diff, not a test result or a merge verdict. If the diff is incomplete or the estimate has no valid supporting evidence, the section reports it as unavailable.
Impact Assist demo
One change, two reviews:
- First review · 55/100: Waiting boards keep their place (+10), but a refused re-CHECK dismisses the active board’s warning (−5). Keep the warning visible until the operator dismisses it.
- Follow-up review · 60/100: In the updated diff, a refused re-CHECK leaves the warning visible. The −5 no longer applies.
Not yet verified: recovery after a restart. First try: restart with two queued boards and check that both jobs resume exactly once, with no data loss.
See Impact Assist on a real GitGuardex PR.
How it compares
| If you use… | It handles… | What GitGuardex adds |
|---|---|---|
Plain git worktree |
Separate checkouts | Task identity, shared file claims, and cleanup that preserves work it cannot safely remove |
| A standalone AI reviewer | Findings on a diff | Optional blocking review and autofix tied to the PR finish, plus a separate impact estimate |
| GitHub Actions and branch protection | Required checks and merge rules | Local preflight, worktree ownership, and a single workflow from task start to cleanup |
GitGuardex works with Git, GitHub, and your existing agent CLI. It does not replace them.
See the problem and capability diagramsThe problem
What GitGuardex can do
More workflows
- See what other agents own:
gx status,gx context path/to/file, or the agent cockpit. - Inspect local agent usage:
gx usagereads local logs through ccusage; it does not install the backend. - Preview cleanup and storage:
gx cleanup --dry-runand the worktree storage guide. - Configure verification: local preflight, OpenSpec (opt-in), or
gx --help. - Advanced worktrees: provisioning, navigation, and lifecycle hooks and VS Code setup.
- Launch with a Cue profile: preview, start, and resume GitGuardex tasks.
npx skills add recodee/gitguardex
gx release # create/update the current GitHub release from README notes
gx setup does not auto-run npx skills add .... If the picker does not show a separate guardex skill, that is expected; use the gitguardex skill.
gx release is the maintainer path for package releases. It reads README.md, finds the last published GitHub release, and writes one grouped GitHub release body.
Contributing · Security · Issues · Third-party notices
GitGuardex is independent and is not affiliated with OpenAI or Anthropic.
OpenViking lane context
GitGuardex can look up relevant context when starting a lane and save a Markdown
summary when finishing one. Set up the endpoint and credentials in your local
Git config or environment. Local Git config is shared by all linked worktrees.
git config --local guardex.openviking.url http://127.0.0.1:1933
git config --local guardex.openviking.account haszno-dev
git config --local guardex.openviking.user agent
git config --local guardex.openviking.root viking://resources/haszno-dev
git config --local guardex.openviking.keyFile '~/.config/haszno/openviking.env'
git config --local guardex.openviking.keyVar OV_ROOT_API_KEY
GUARDEX_OPENVIKING_URL, GUARDEX_OPENVIKING_ACCOUNT, GUARDEX_OPENVIKING_USER,GUARDEX_OPENVIKING_ROOT, GUARDEX_OPENVIKING_KEY_FILE, andGUARDEX_OPENVIKING_KEY_VAR override the corresponding fields. SetOPENVIKING_API_KEY to override the dotenv key file. Relative key paths resolve
from the main worktree. Keep the key file private and outside version control.
The integration requires a configured URL and key. Remote endpoints require HTTPS.
Authentication follows the server's mode. In OpenViking's default api_key mode,
leave account and user unset and use a tenant (user) key: only the bearer key is
sent. In trusted mode (a private gateway such as the example above), set bothaccount and user; they are sent as X-OpenViking-Account / X-OpenViking-User.
Setting only one of the two is rejected. To use an api_key endpoint without
editing the shared local config, set GUARDEX_OPENVIKING_AUTH_MODE=api_key
(or guardex.openviking.authMode api_key); the identity pair is then dropped.
gx branch start and gx agents start show up to five results from the configured
root. Finishes write to <root>/lanes/<host>/<owner>/<repo>/<branch-slug>.md
using the origin remote. Without a network origin, the path is<root>/lanes/local/<repo>-<8-hex-hash>/<branch-slug>.md, with the hash derived
from the absolute common Git directory. A slash in the branch name becomes_2f_, keeping the summary in one file.gx branch finish --no-context, gx finish --no-context, andgx ship --no-context skip the write. OpenViking errors produce a warning and
preserve the lane command's result. gx doctor reports the local configuration state.
Release notes
v8.xv8.4.0
- Added authenticated agent messaging that delivers live when safe and queues
durably when Nodeterm or tmux delivery is unavailable. - Added worktree-shared CLI and MCP inbox operations for reading and
acknowledging queued agent messages. - Improved stale Codex worktree recovery and VS Code visibility for managed
worktrees.
v8.3.0
- Added adaptive direct-main agent work and branch-targeted
gx sync. - Made worktree cleanup safer by preserving active or locked lanes while pruning
only eligible merged or opted-in clean lanes. - Persisted and validated explicit finish bases, recognized SHA-256 null object
IDs, and prevented stale VS Code worktree providers.
v8.2.0
- Reduced agent preflight and finish token overhead.
- Preserved dirty worktrees during stale-worktree cleanup and exposed
command-specific cleanup help. - Added the owning tmux pane and worktree to file-lock conflict output.
v8.1.1
- Prevented
gx doctorfrom pruning dirty detached or managed worktrees during
stale-worktree repair.
v8.1.0
- Added shared Git lock state so independent clones coordinate file ownership.
- Aligned npm repository metadata with
opencue/gitguardexfor trusted OIDC
publishing.
v8.0.0
- Added
gx branch finish --fastfor small tasks that should use the PR +
squash-merge path without repeating local preflight or opt-in AI review. - Removed the legacy
cr.ymlAI-review workflow; repository policy and explicit
Guardex review gates now control merge readiness.
v7.1.1
- Bumped
@imdeadpool/guardexfrom7.1.0to7.1.1so the currentmainpayload can publish under a fresh npm version after7.1.0reached
the registry. - Direct maintainer
npm publishnow checks npm duringprepublishOnlyand
bumps package release metadata to the next unpublished patch version when the
committed version is already published. GitHub Actions release publishes keep
the committed metadata so packed and signed assets stay aligned.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi
