PluginBench
Skill
Fail
Audit score 45

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-history
Claude Code
Cursor
Windsurf
Cline

How to use commit-history

  1. 1.Invoke the skill with optional filters: branch=<name>, repo=<url-or-fragment>, or limit=<n>
  2. 2.The skill parses arguments and calls memory_commits with the filters
  3. 3.Review the returned commits in reverse-chronological order (newest first)
  4. 4.Each line shows: short SHA, branch, date, commit message, and linked session ID with observation count
  5. 5.If no results appear, try removing the branch or repo filter to broaden the search

Use cases

Good for
  • 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
Who it's for
  • 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

What happens if I don't provide any filters?

The skill returns up to 100 recent commits linked to agent sessions, in reverse-chronological order.

Can I filter by multiple branches or repositories?

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.

What does the observation count mean?

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.

What is the maximum limit I can request?

The limit is capped at 500 commits. Any value above 500 will be reduced to 500.

How do I drill deeper into a specific commit?

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

  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.

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.