Skip to content

feat: support git notes as attribution storage backend #2

Description

@codeprakhar25

Feature Request

Add support for storing attribution data in git notes instead of (or in addition to) ledger.jsonl.

Why: Git notes attach metadata to commits without modifying the working tree or requiring an auto-amend. They're first-class git objects, pushable via git push origin refs/notes/*, and don't pollute git log.

What this would look like:

agentdiff init --backend notes   # store attribution in git notes
git log --notes=agentdiff        # see attribution inline with commits
agentdiff log                    # reads from notes instead of ledger.jsonl

Each note would be a JSON blob matching the current ledger entry schema, attached to the corresponding commit SHA.

Trade-offs vs ledger.jsonl:

  • Notes require explicit push/fetch (git fetch origin refs/notes/*) — less portable for new cloners
  • Notes can't be amended after the fact without force-pushing the notes ref
  • Notes are better for clean working trees and no auto-amend noise

Related to #1.

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions