Skip to content
Skillpedia
General coding30k · #9346

commit-history

What it does

This skill lists the commits that agent sessions produced, optionally filtered by branch or repository. Each commit shows the session it came from.

When to use it

  • ✓When you want to see the commits an agent has shipped recently.
  • ✓When you want a list of linked commits for one branch or repository.
  • ✓When you want each commit shown with its session details.

Skill link

https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/commit-history/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/rohitg00/agentmemory/blob/main/plugin/skills/commit-history/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Show me the last 20 commits the agent made on main, with their sessions.”

5 new skills a week. 1 minute to read.

How it works

The agent calls the commit listing tool with your branch and limit, then shows the results newest first. Each entry includes the short SHA, message, linked session, and observation count.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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 TROUBLESHOOTING.md if memory_commits is not available.

FAQ

What if the list is empty?

It means the filter matched nothing. Try removing the branch or repository filter.

How many commits can it show?

The default is 100, and the maximum is 500.

Does it show files changed?

Yes, when file information is available for a commit.

Details

Original description by the author

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.

repo: rohitg00/agentmemory

Popularity

GitHub stars
30k
Ranking position
#9346
License
Apache-2.0
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills