rohitg00 avatar

Commit History

When you need to see what commits an AI agent has actually shipped, this pulls the git history with session context attached. You get short SHAs, branch names, timestamps, and the observation count from each linked session, newest first. Filter by branch, repo, or limit the results. The real win is tying commits back to the agent sessions that produced them, so you can trace from "what shipped" to "what the agent saw and did." Empty results mean your filter matched nothing, not that the agent hasn't been working. Pairs well with commit-context if you need to drill into a specific commit's full session data.

skills.sh installs
14.3K
GitHub stars
30.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add rohitg00/agentmemory --skill commit-history --agent claude-code

Installs into .claude/skills of the current project.

Files

The user wants a list of agent-linked commits. Filter args: $ARGUMENTS

Quick start

memory_commits { "branch": "main", "limit": 20 }

Expected output:

9a1b2c3 main 2026-06-07 "rotate refresh tokens" · session 7f3a9c2 (14 obs)
b21d004 main 2026-06-05 "rate limiter audit"    · session b21d004 (9 obs)

Why

Render only the commits the tool returned, newest first. An empty result means the filter matched nothing, not that work is missing.

Workflow

  1. Parse $ARGUMENTS for branch=<name>, repo=<url-or-fragment>, limit=<n>. A bare numeric token is the limit. Defaults: no branch, no repo, limit 100, max 500.
  2. Call memory_commits with the parsed filters.
  3. Render reverse-chronologically: short sha, branch, authored timestamp, first line of the message, linked session id(s) (first 8) with observation counts, and file count when files is present.
  4. Empty result: tell the user the filter matched nothing and suggest dropping the branch or repo filter.

Anti-patterns

WRONG (REST fallback): concatenate ?branch= + raw branch name, so a name with ?, &, or # corrupts the query string.

Sponsors

Details

Repository
github.com/rohitg00/agentmemory
Categories
Git & Pull Requests, AI & Agent Building
First seen
Jul 14, 2026

More from rohitg00/agentmemory

All 15
1anthropics avatarcode-reviewanthropics/knowledge-work-pluginsReview code changes for security, performance, and correctness. Trigger with a PR URL or diff, "review this before I merge", "is this code safe?", or when check10.1Kskills.sh installs
2alwaysmeticulous avatarmeticulous-reviewalwaysmeticulous/skillsAnalyze a completed Meticulous test run — fetch the diff summary, inspect representative screenshots, DOM diffs, and timelines. Resolves the test run from the l8.9Kskills.sh installs
3composiohq avatarchangelog-generatorcomposiohq/awesome-claude-skillsAutomatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, 7.7Kskills.sh installs
4alibaba avataropen-code-reviewalibaba/open-code-reviewPerforms AI-powered code review on Git changes using the `ocr` CLI from alibaba/open-code-review. Use when the user asks to review code, review a pull request, 7.3Kskills.sh installs
5affaan-m avatargit-workflowaffaan-m/eccGit workflow patterns including branching strategies, commit conventions, merge vs rebase, conflict resolution, and collaborative development best practices for6Kskills.sh installs
6affaan-m avatargithub-opsaffaan-m/eccGitHub repository operations, automation, and management. Issue triage, PR management, CI/CD operations, release management, and security monitoring using the g5.6Kskills.sh installs