Skip to content

Help Claude Code to not hallucinate git commit refs#1034

Open
onnimonni wants to merge 1 commit intoduckdb:mainfrom
onnimonni:add-ref-verification-tooling
Open

Help Claude Code to not hallucinate git commit refs#1034
onnimonni wants to merge 1 commit intoduckdb:mainfrom
onnimonni:add-ref-verification-tooling

Conversation

@onnimonni
Copy link
Contributor

@onnimonni onnimonni commented Jan 1, 2026

Intention of this PR is to add documentation for Claude Code on how to verify that the git commit refs in the description.yml actually exist and are not hallucinated. This should make it less error prone for anyone to add community extensions with Claude Code.

For me it has struggled to do this properly and I see that many others are using Claude Code in the community so hopefully this helps a lot of people in a single one fell swoop.

Adds CLAUDE.md instructions and pre-commit hook script to verify git refs in description.yml files exist remotely before committing.

This prevents Claude Code from hallucinating non-existent commit refs when creating/updating extensions, saving debugging time.

Uses only built-in tools (bash, curl, grep, sed) - works on MacOS & Ubuntu without dependencies.
@onnimonni onnimonni force-pushed the add-ref-verification-tooling branch from 385e2c0 to b9faa42 Compare January 1, 2026 07:59
@onnimonni onnimonni changed the title Add ref verification tooling for Claude Code Help Claude Code to not hallucinate git commit refs Jan 1, 2026
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.

2 participants