Skip to content
rohitg00 avatar

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
View on GitHub

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-context and recall as follow-ups

Install

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

Installs 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

  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.

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 15

Similar to Commit History

More Git & Releases