Commit History
Lists recent git commits linked to agent sessions, filterable by branch, repo, and limit.
- CCM score
- 75 of 100
- skills.sh installs
- 14.8K
- GitHub stars
- 30.7K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers reverse-chronological listing of commits tied to agent sessions, with branch, repo, and limit filters
- Renders short sha, branch, timestamp, message, linked session ids, observation counts, and file counts
- Caps results at 500 and enforces URL-encoding of filter values in the REST fallback path
- Designed for reviewing what an agent has shipped, with
commit-contextandrecallas follow-ups
Install
$ npx -y skills add rohitg00/agentmemory --skill commit-history -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
- Parse
$ARGUMENTSforbranch=<name>,repo=<url-or-fragment>,limit=<n>. A bare numeric token is the limit. Defaults: no branch, no repo, limit 100, max 500. - Call
memory_commitswith the parsed filters. - 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
filesis present. - 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.
Details
- Repository
- github.com/rohitg00/agentmemory
- Categories
- Git & Releases, Memory & Context
- First seen
- Jul 14, 2026
Questions
What does the commit-history skill do?
It lists recent git commits that were linked to agent sessions, newest first, and can filter them by branch or repo. Each entry shows the short sha, branch, timestamp, message and the linked session with its observation count.
How do I install the commit-history skill?
Run npx -y skills add rohitg00/agentmemory --skill commit-history -y in your project. After that, the agent can list the commits its sessions have shipped.
Where does commit-history rank in the Git & Releases category?
It ranks in the top 25 on the Git & Releases category page. It sits alongside triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit and pr.
Can I filter the commit list by branch or limit how many commits appear?
Yes, you can pass branch=, repo= and limit= arguments to filter the output. A bare number is treated as the limit, which defaults to 100 and is capped at 500.
What should I do if the commit-history query returns nothing?
An empty result means the filter matched no commits, so the skill suggests dropping the branch or repo filter. It also points to the TROUBLESHOOTING.md file if the memory_commits tool is not available.
More from rohitg00/agentmemory
All 15Similar to Commit History
More Git & Releasescommit-contextSkillrohitg00/agentmemory14.8K installsTrace a file, function, or line back to the agent session that produced it.
session-historySkillrohitg00/agentmemory14.9K installsClean reverse-chronological timeline of recent project sessions, pulled strictly from the memory tool with no invented history.
statusSkillalirezarezvani/claude-skills1.6K installsLive status report for an AgentHub session, covering DAG state, per-agent progress, and branch status.
Git Mcp ServerMCP servercyanheads246 starsNative git operations for AI agents across repositories, branches, remotes, and worktrees.
weekly-reviewSkillcursor/plugins2.7K installsWeekly recap of authored git commits, classified into bug fixes, tech debt, and net-new work.
Git CourerMCP serveralejandro-m-p46 starsGit Courer gives agents a safe, structured interface to Git with automatic backups before every mutation.