Skip to content

chore(git): integrate Entire CLI pre-push hook into hk.pkl #1135

Description

@chrisdoc

Problem Description

Entire CLI tracks agent checkpoints as local Git refs (refs/entire/checkpoints/*). By default, Entire installs a .git/hooks/pre-push hook that pushes these refs alongside normal branch pushes to GitHub so entire.io can ingest and display agent sessions.

However, in this repository, Git hooks are managed by hk via hk.pkl. When hk install runs, it overwrites .git/hooks/pre-push with repository:pre-push (npx nx run repository:pre-push), omitting Entire's pre-push hook. As a result, agent checkpoints are not automatically synced on git push.

Proposed Solution

Add an entire step to the pre-push hook definition in hk.pkl:

    ["pre-push"] {
        steps {
            ["entire"] {
                check = "entire hooks git pre-push origin"
            }
            ["repository-control-plane"] {
                check = "npx nx run repository:pre-push"
            }
        }
    }

Then regenerate git hooks with:

mise exec hk -- hk install --mise

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions