Skip to content

demo: sample commit with AI-* trailers#45

Closed
TonyCasey wants to merge 1 commit intomainfrom
git-trailer-demo
Closed

demo: sample commit with AI-* trailers#45
TonyCasey wants to merge 1 commit intomainfrom
git-trailer-demo

Conversation

@TonyCasey
Copy link
Copy Markdown
Owner

@TonyCasey TonyCasey commented Feb 13, 2026

Summary

  • Demo commit showing AI-* trailers on a GitHub commit

Check the commit message to see the trailers:

  • AI-Decision
  • AI-Confidence
  • AI-Memory-Id
  • AI-Tags

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Restructured README with a clearer, structured layout and less marketing-style copy.
    • Clarified rationale to emphasize storing AI involvement metadata per commit.
    • Added guidance on Git Trailers and Git Notes, plus an AI ignore/example block.
    • Replaced explicit init details with a concise pointer to the Getting Started guide.
    • Retained Install and License sections; updated navigation to Getting Started.

Copilot AI review requested due to automatic review settings February 13, 2026 13:52
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 13, 2026

📝 Walkthrough

Walkthrough

The README.md is restructured with improved sectioning and headings to better explain how AI knowledge is captured and stored. Content is reorganized from narrative prose into labeled sections (Git Trailers, Git Notes) with clearer examples and references to the Getting Started Guide instead of inline initialization details.

Changes

Cohort / File(s) Summary
Documentation
README.md
Restructured README with new section headings (Store AI knowledge IN each commit, Extract from historical commits, Git Trailers, Git Notes). Replaced descriptive marketing copy with explicit metadata concepts and examples. Updated references to point to Getting Started Guide instead of inline init steps.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title 'demo: sample commit with AI-* trailers' describes a demo of git trailers, but the actual changes are a substantial README restructure with documentation about storing AI metadata, git trailers, and git notes. Update the title to reflect the main change: 'docs: restructure README with AI metadata documentation and examples' or similar, to accurately represent the primary update to documentation structure and content.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch git-trailer-demo

No actionable comments were generated in the recent review. 🎉


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🤖 Fix all issues with AI agents
In `@README.md`:
- Line 22: Remove the trailing spaces reported by markdownlint on the README
lines containing the AI-Agent entries (for example the line "**AI-Agent:**
Claude/Opus-4.5" and the similar AI-Agent line at line 28); edit those lines to
delete any trailing whitespace characters so they end immediately after the last
visible character (no extra spaces or tabs).
- Line 9: The README has incorrect heading level jumps (MD001): change the
headings currently using "#### We should store information about the AI
involvement in each commit." and the other h4 at line 17 to h3 (replace "####"
with "###") so the document increments heading levels by only one and satisfies
markdownlint; update any surrounding headings if needed to keep consistent
hierarchy.
- Line 59: Replace the typo "auto-popuplate" in the README text with the correct
word "auto‑populate" so the sentence reads "auto‑populate the trailers & notes"
(update the single occurrence in the sentence that mentions Claude Code cli and
git-mem hooks).
- Line 5: The line containing "### Extract from historical commits." has
trailing whitespace causing markdownlint MD009; remove the trailing space
characters at the end of that line so it becomes "### Extract from historical
commits." with no trailing spaces to satisfy the linter.
- Around line 19-20: Add a blank line above and below the "Git Trailers" heading
to satisfy MD022, and update the following sentence under that heading to
hyphenate "key‑value" so it reads "Metadata key‑value pairs that exist inside a
commit message (visible)"; locate the "Git Trailers" heading in README.md to
make these two small text edits.

Comment thread README.md
It just needs to be extracted for agents....
## Store AI knowledge IN each commit.

### Extract from historical commits.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove trailing whitespace.

Markdownlint flags trailing spaces on Line 5. Clean up the trailing space to satisfy MD009.

🧰 Tools
🪛 markdownlint-cli2 (0.20.0)

[warning] 5-5: Trailing spaces
Expected: 0 or 2; Actual: 1

(MD009, no-trailing-spaces)

🤖 Prompt for AI Agents
In `@README.md` at line 5, The line containing "### Extract from historical
commits." has trailing whitespace causing markdownlint MD009; remove the
trailing space characters at the end of that line so it becomes "### Extract
from historical commits." with no trailing spaces to satisfy the linter.

Comment thread README.md
## Why?

Your git history already contains the decisions, conventions, and gotchas that matter — git-mem extracts them and makes them available to Claude automatically.
#### We should store information about the AI involvement in each commit.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix heading level jumps (h2 → h4).

Lines 9 and 17 skip from h2 to h4; markdownlint expects only +1 level increments. Use h3 for those headings (or adjust surrounding headings) to satisfy MD001.

Also applies to: 17-17

🧰 Tools
🪛 markdownlint-cli2 (0.20.0)

[warning] 9-9: Heading levels should only increment by one level at a time
Expected: h3; Actual: h4

(MD001, heading-increment)

🤖 Prompt for AI Agents
In `@README.md` at line 9, The README has incorrect heading level jumps (MD001):
change the headings currently using "#### We should store information about the
AI involvement in each commit." and the other h4 at line 17 to h3 (replace
"####" with "###") so the document increments heading levels by only one and
satisfies markdownlint; update any surrounding headings if needed to keep
consistent hierarchy.

Comment thread README.md
Comment on lines +19 to +20
### Git Trailers
Metadata key value pairs that exist inside a commit message (visible)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Add blank line around the heading and hyphenate “key‑value”.

Line 19 needs a blank line below/above to satisfy MD022. Also, Line 20 should read “Metadata key‑value pairs…” per the grammar hint.

🧰 Tools
🪛 LanguageTool

[grammar] ~20-~20: Use a hyphen to join words.
Context: ...atically. ### Git Trailers Metadata key value pairs that exist inside a commit m...

(QB_NEW_EN_HYPHEN)

🪛 markdownlint-cli2 (0.20.0)

[warning] 19-19: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)

🤖 Prompt for AI Agents
In `@README.md` around lines 19 - 20, Add a blank line above and below the "Git
Trailers" heading to satisfy MD022, and update the following sentence under that
heading to hyphenate "key‑value" so it reads "Metadata key‑value pairs that
exist inside a commit message (visible)"; locate the "Git Trailers" heading in
README.md to make these two small text edits.

Comment thread README.md
### Git Trailers
Metadata key value pairs that exist inside a commit message (visible)

- **AI-Agent:** Claude/Opus-4.5
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove trailing whitespace.

Markdownlint reports trailing spaces on Lines 22 and 28 (MD009).

Also applies to: 28-28

🧰 Tools
🪛 markdownlint-cli2 (0.20.0)

[warning] 22-22: Trailing spaces
Expected: 0 or 2; Actual: 1

(MD009, no-trailing-spaces)

🤖 Prompt for AI Agents
In `@README.md` at line 22, Remove the trailing spaces reported by markdownlint on
the README lines containing the AI-Agent entries (for example the line
"**AI-Agent:** Claude/Opus-4.5" and the similar AI-Agent line at line 28); edit
those lines to delete any trailing whitespace characters so they end immediately
after the last visible character (no extra spaces or tabs).

Comment thread README.md

Yes, the last thing we want is another command to remember.

If you use Claude Code cli, then git-mem uses the hooks behind the scenes to auto-popuplate the trailers & notes. There is nothing for you to do.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix typo: “auto-popuplate”.

Line 59 has a spelling error. Replace with “auto‑populate.”

🧰 Tools
🪛 LanguageTool

[grammar] ~59-~59: Ensure spelling is correct
Context: ...ses the hooks behind the scenes to auto-popuplate the trailers & notes. There is nothing ...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🤖 Prompt for AI Agents
In `@README.md` at line 59, Replace the typo "auto-popuplate" in the README text
with the correct word "auto‑populate" so the sentence reads "auto‑populate the
trailers & notes" (update the single occurrence in the sentence that mentions
Claude Code cli and git-mem hooks).

AI-Decision: README updated with git trailers and git notes documentation
AI-Confidence: high
AI-Memory-Id: 7c336808-5575-46b4-a835-ee89c68a9162
AI-Tags: docs, readme
AI-Agent: Claude-Code
AI-Model: claude-opus-4-6
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR rewrites the README to better demonstrate git-mem's trailer functionality by adding example trailer blocks and restructuring the documentation. The changes shift focus from historical extraction to showing how AI metadata is stored in commits using both Git Trailers and Git Notes.

Changes:

  • Rewrote introduction to emphasize storing AI knowledge in commits rather than just extracting from history
  • Added detailed examples of Git Trailers (AI-Agent, AI-Decision, etc.) and Git Notes structure
  • Reorganized content to explain the "why" and "how" more clearly with separate sections for trailers vs notes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md

Yes, the last thing we want is another command to remember.

If you use Claude Code cli, then git-mem uses the hooks behind the scenes to auto-popuplate the trailers & notes. There is nothing for you to do.
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of 'auto-popuplate' to 'auto-populate'

Suggested change
If you use Claude Code cli, then git-mem uses the hooks behind the scenes to auto-popuplate the trailers & notes. There is nothing for you to do.
If you use Claude Code cli, then git-mem uses the hooks behind the scenes to auto-populate the trailers & notes. There is nothing for you to do.

Copilot uses AI. Check for mistakes.
Comment thread README.md

See the [Getting Started Guide](./docs/getting-started.md) for full CLI and MCP setup docs.

For more detailed information, see the [Getting Started Guide](./docs/getting-started.md)
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline after the "## License" heading. According to markdown conventions consistently used elsewhere in this file (e.g., lines 3-4, 7-8, 15-16), headings should be followed by a blank line before content.

Suggested change
For more detailed information, see the [Getting Started Guide](./docs/getting-started.md)
For more detailed information, see the [Getting Started Guide](./docs/getting-started.md)

Copilot uses AI. Check for mistakes.
Comment thread README.md
It just needs to be extracted for agents....
## Store AI knowledge IN each commit.

### Extract from historical commits.
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent punctuation in heading. Line 5 ends with a period, but other similar headings in the file (lines 3, 17, 19, 28, 55) do not end with punctuation.

Suggested change
### Extract from historical commits.
### Extract from historical commits

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines 24 to 26
- **AI-Context:** [pattern/middleware, entity/auth-module]
- **AI-Confidence:** 0.95
- **AI-Memory:** milestone/auth-implementation
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trailer keys AI-Context and AI-Memory shown in this example do not exist in the codebase. According to src/domain/entities/ITrailer.ts:26-36, the actual supported trailer keys are: AI-Decision, AI-Gotcha, AI-Convention, AI-Fact, AI-Confidence, AI-Tags, AI-Lifecycle, AI-Memory-Id, and AI-Agent. The example should use actual supported trailer keys. For reference, docs/getting-started.md:74-78 shows a correct example using AI-Decision, AI-Confidence, AI-Memory-Id, and AI-Tags.

Copilot uses AI. Check for mistakes.
@TonyCasey TonyCasey closed this Feb 13, 2026
@TonyCasey TonyCasey deleted the git-trailer-demo branch February 13, 2026 13:58
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