Skip to content

Add ub init and repository hooks for Git, Codex, and Claude - #15

Merged
0xjgv merged 1 commit into
mainfrom
ub-repository-setup
Nov 17, 2026
Merged

0xjgv merged 1 commit into
mainfrom
ub-repository-setup

Conversation

@0xjgv

@0xjgv 0xjgv commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Installing the UB skill makes its commands discoverable, but a repository still needs persistent instructions and a shared check command. Add ub init to create an executable .ub/check, managed instruction blocks in AGENTS.md and CLAUDE.md, and ignores for generated metrics. Source scope and custom test/coverage commands are saved in the script.

Add explicit ub hooks install support for Git pre-push and Codex/Claude Stop hooks. Existing instructions and agent settings are preserved; supported shell hooks retain their original path, arguments, stdin, and failure status. Installation is repeatable, with manual integration guidance for unsupported existing hooks. The bundled skill and README explain discovery, recurring use, and CI integration.

Stop hooks run the configured check on each completion, including turns without edits. They have a configurable 120-second default timeout, terminate descendant test processes, and guard against repeated continuation loops. Required CI remains the final gate.

Validation:

  • make test UV=/opt/homebrew/bin/uv: 111 tests passed after rebasing onto current main.
  • make build-native UV=/opt/homebrew/bin/uv: macOS ARM64 binary built.
  • sh scripts/smoke-release.sh /absolute/path/to/ub: packaged setup, skill installation, and passing/failing Git and agent hook checks passed.
  • Regression coverage includes a real push to a temporary local remote, existing-hook preservation, linked worktrees, literal command arguments, and cancellation of detached mutation-test sessions.

Linux native execution and live Codex/Claude activation were not exercised locally.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T19:16:56.845977Z d7fcf72 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@0xjgv
0xjgv merged commit 03fa17f into main Nov 17, 2026
1 check passed
@0xjgv
0xjgv deleted the ub-repository-setup branch November 17, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant