You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(claude+pr): first-class Claude Code integration and gx pr command suite (#600)
- skill_guard.py: add claude/, codex/, cursor/ to default agent-branch
prefixes (was agent/ only) so the harness-managed branches each tool uses
are recognized without env-setup. Add GUARDEX_AGENT_BRANCH_PREFIXES_ONLY
env to lock down namespaces. Generalize the in-hook regex allowlist for
push/checkout to cover all four prefixes.
- src/pr.js + src/cli/commands/pr.js: new `gx pr` command suite that
centralizes PR-from-worktree plumbing — open (idempotent), status,
sync, watch, list, ready, review. Detects base branch from origin/HEAD,
generates titles/bodies from commits, supports auto-merge with
configurable strategy, watches CI/merge state until merged / failed /
timeout.
- src/cli/commands/claude.js: new `gx claude install / check / doctor /
uninstall`. Installs .claude/settings.json (deep-merging with any
user-defined hooks so we never clobber custom entries), copies managed
hooks + slash commands, ensures the gitguardex skill is present, and
repairs the CLAUDE.md -> AGENTS.md symlink. `check` is read-only;
`doctor` is `check --fix`.
- .claude/commands/: ship /gx-status, /gx-doctor, /gx-pivot, /gx-pr,
/gx-finish, /gx-setup slash commands documenting the canonical flow.
- AGENTS.md: add a Claude Code quickstart block at the top covering
branch awareness, slash commands, PR flow, and `gx claude install`.
- Tests: claude-install (12 cases) and pr-module (8 cases) covering
settings merge idempotency, hook/slash install, symlink repair,
base-branch + title + body generation, and error paths. Updated
skill-guard-hook test to reflect the new default prefixes (claude/,
codex/, cursor/) and the new exclusive-mode env. Local repos in test
helpers now disable commit signing so sandboxes with broken signing
servers don't poison the suite.
https://claude.ai/code/session_01P6xFS4dDv2MnJ63XyxRbid
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments