Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TonyCasey/git-mem

Repository files navigation

git-mem

Track AI contributions in your git history.

AI commit metadata

Why?

AI writes code now. Your commits should show when, which agent, and which model.

git-mem adds AI metadata to every commit automatically — no workflow changes, no extra steps.

How?

Every commit gets AI trailers:

feat: add user authentication
AI-Agent: claude-code
AI-Model: claude-sonnet-4-5-20250929
AI-Decision: JWT over sessions — stateless API, scales horizontally
AI-Context: [pattern/middleware, entity/auth-module]

That's it. Your git history now tracks AI contributions.

Install

npm install -g git-mem
cd your-repo
git-mem init

30 seconds. Done.

What else?

git-mem also extracts decisions, conventions, and gotchas from your commit history — and makes them available to your AI agent as persistent memory.

Your agent stops re-learning your codebase every session.

# Extract knowledge from recent commits
git-mem extract
# Query what git-mem knows
git-mem recall "authentication"

See the Getting Started Guide for CLI and MCP setup.

License

MIT

About

Git and AI for memory

Resources

Stars

Watchers

Forks

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /