setup.sh does not run pre-commit install, so commits land unverified #127

Closed
opened 2026-06-02 06:56:04 +00:00 by coilysiren · 0 comments
Owner

Problem

setup.sh symlinks host config and installs the agent-name / session-pulse wiring, but never runs pre-commit install. A fresh checkout therefore has no git hooks, so the .pre-commit-config.yaml hooks do not fire on git commit and commits land unverified (discovered in #126: that commit ran unverified and had to be validated after the fact).

Fix

Add an idempotent block to setup.sh that, when pre-commit is on PATH and SCRIPT_DIR is a git checkout, runs pre-commit install plus pre-commit install --hook-type commit-msg. Skips with a notice otherwise.

## Problem `setup.sh` symlinks host config and installs the agent-name / session-pulse wiring, but never runs `pre-commit install`. A fresh checkout therefore has no git hooks, so the .pre-commit-config.yaml hooks do not fire on `git commit` and commits land unverified (discovered in #126: that commit ran unverified and had to be validated after the fact). ## Fix Add an idempotent block to `setup.sh` that, when `pre-commit` is on PATH and SCRIPT_DIR is a git checkout, runs `pre-commit install` plus `pre-commit install --hook-type commit-msg`. Skips with a notice otherwise.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/agentic-os#127
No description provided.