commit-history
rohitg00/agentmemory
List recent git commits linked to agent sessions, filtered by branch or repo.
What is commit-history?
Retrieves a reverse-chronological list of git commits associated with agent work sessions. Use this when you need to see what the agent has shipped, review commit history with session context, or filter commits by branch or repository.
- Parse filter arguments (branch, repo, limit) from user input
- Call memory_commits to retrieve agent-linked commits
- Render commits reverse-chronologically with short SHA, branch, timestamp, message, and linked session IDs
- Display observation counts and file counts when available
- Cap limit at 500 and default to 100 commits
- Handle empty results by suggesting filter adjustments
How to install commit-history
npx skills add https://github.com/rohitg00/agentmemory --skill commit-historyHow to use commit-history
- 1.Invoke the skill with optional filters: branch=<name>, repo=<url-or-fragment>, or limit=<n>
- 2.The skill parses arguments and calls memory_commits with the filters
- 3.Review the returned commits in reverse-chronological order (newest first)
- 4.Each line shows: short SHA, branch, date, commit message, and linked session ID with observation count
- 5.If no results appear, try removing the branch or repo filter to broaden the search
Use cases
- Show all commits the agent has made in the current session
- List commits on a specific branch linked to agent work
- Retrieve the last N commits with their associated session context
- Filter commits by repository to track multi-repo agent activity
- Review what has been shipped by examining commit messages and session observations
- Developers tracking agent-assisted work
- Teams reviewing agent-generated commits
- Users auditing agent activity and output
- Engineers managing multi-session agent workflows
commit-history FAQ
The skill returns up to 100 recent commits linked to agent sessions, in reverse-chronological order.
The current implementation filters by a single branch and/or single repo. To see commits across multiple branches, run the skill multiple times with different branch filters.
The number in parentheses (e.g., '14 obs') indicates how many observations were recorded in that linked session, providing context on the depth of agent work.
The limit is capped at 500 commits. Any value above 500 will be reduced to 500.
Use the commit-context skill to examine the session and observations linked to a particular commit.
Full instructions (SKILL.md)
Source of truth, from rohitg00/agentmemory.
name: commit-history description: List recent git commits linked to agent sessions, optionally filtered by branch or repo. Use when the user asks "show agent commits", "what has the agent shipped", "list linked commits", or wants commits with their session context. argument-hint: "[branch=... repo=... limit=...]" user-invocable: true
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.
RIGHT: URL-encode every value with URLSearchParams/encodeURIComponent before
appending to GET /agentmemory/commits.
Checklist
- Filters parsed; bare number treated as limit; limit capped at 500.
- Output is reverse-chronological.
- Session ids and observation counts come straight from the response.
- REST fallback URL-encodes branch, repo, and limit.
See also
commit-context: drill into one commit's session.recall: search the observations behind a linked session.
Troubleshooting
See ../_shared/TROUBLESHOOTING.md if memory_commits is not available.
Related skills
More from rohitg00/agentmemory and the wider catalog.

forget
Delete specific memories from agentmemory with explicit user confirmation.

handoff
Resume the most recent agent session for your project, picking up from any unanswered question.

lesson
Save confidence-weighted behavioral rules that resurface before similar work.

memory-discipline
Recall before work, save at decisions—the discipline that makes agent memory actually pay off.

recall
Search past observations and learnings using hybrid BM25+vector+graph search.

recap
Summarize recent agent sessions grouped by date with key observations from project memory.