Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

commit-history — Claude Code skill: what it does, how to install

Lists git commits linked to agent sessions with optional filters for branch, repo, and limit.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add rohitg00/agentmemory --skill commit-history -a claude-code
Open on GitHub

What commit-history does

The skill calls the memory_commits tool to inspect git commits recorded during agent runs. Output arrives in reverse-chronological order. Each entry displays the short sha, branch name, author timestamp, commit subject line, linked session IDs, and observation counts.

Arguments accept branch=<name>, repo=<url-or-fragment>, and limit=<n>. A bare numeric token acts as the limit, with a default of 100 and a ceiling of 500. When falling back to REST requests against GET /agentmemory/commits, the workflow URL-encodes every parameter.

The tool cannot return data if memory_commits is not available in the environment. An empty list simply means the filter matched nothing, so dropping the branch or repo argument is the first step to verify.

What it helps with

  • inspect git commits created across agent sessions
  • filter agent commit history by branch or repository
  • find linked session identifiers and observation counts for commits
  • cap the returned commit list with custom limits up to 500

Example prompts for the agent

  • show agent commits branch=main limit=20
  • what has the agent shipped recently?
  • list linked commits repo=my-org/project

How to install commit-history

1Skills CLI (Vercel)

npx skills add rohitg00/agentmemory --skill commit-history -a claude-code

2Manually: put the files in place

~/.claude/skills/commit-history/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/commit-history/

From the same set11

The whole set →
remember rohitg00 Saves insights, decisions, and learnings to agentmemory long-term storage with concept tags so agents can retrieve them later. Claude Code CX Codex Cursor +1 14,000installs recall rohitg00 Searches past observations, sessions, and learnings through agentmemory. Use it to recover context when you need to know what a project already covered. Claude Code CX Codex Cursor +1 13,900installs forget rohitg00 Deletes selected durable memories from agentmemory after explicit confirmation. Useful when scrubbing secrets or obsolete notes. Claude Code CX Codex Cursor +1 13,800installs session-history rohitg00 Shows recent project sessions as a clean timeline. Use it to recover past decisions, observations, and session status. Claude Code CX Codex Cursor +1 13,800installs handoff rohitg00 Resumes the latest agent session for the current directory and surfaces any unanswered questions first. Claude Code CX Codex Cursor +1 13,400installs agentmemory-agents rohitg00 Guides coding agents on linking the memory server via agentmemory connect. It safely merges host configurations without wiping existing MCP servers. Claude Code CX Codex Cursor +1 11,000installs agentmemory-mcp-tools rohitg00 Index of every agentmemory MCP tool with its parameters and workflows. Helps agents pick the right memory tool and format valid arguments. Claude Code CX Codex Cursor +1 10,900installs agentmemory-config rohitg00 This skill helps configure local agentmemory and check its MCP connection. Use it to enable features, inspect authentication, or diagnose a connection failure. Claude Code CX Codex Cursor +1 10,900installs

Similar

stitch::generate-design official google-labs-code Turns a text prompt or an image into a finished UI screen through Stitch MCP, then edits it with targeted prompts. Claude Code CX Codex Cursor +1 10,700installs skill-creator official openai Official guide for drafting and updating agent skills. It structures procedures, bundled scripts, and documentation while keeping token overhead low. Claude Code CX Codex Cursor +1 4,900installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs writing-plans Jesse Vincent This skill turns requirements for a multi-step task into an implementation plan before code changes begin. It helps when another engineer needs exact files, interfaces, and checks. Claude Code CX Codex 282,859installs stitch-loop official google-labs-code Guides agents through iterative website creation with Stitch MCP. The agent reads the baton file, generates UI, integrates the page, and prepares tasks for the next run. Claude Code CX Codex Cursor +1 56,300installs improve shadcn Surveys any codebase in read-only mode and writes self-contained implementation plans for other models to execute. Helps audit bugs, tech debt, and security without touching code. Claude Code CX Codex Cursor +1 37,500installs typesafe-ai typesafe-ai Guides agents on integrating TypeSafe Decision Models like Jev, answering typed questions about state with calibrated probabilities instead of brittle prompts. Claude Code CX Codex Cursor +1 95,600installs

Questions about commit-history

How to install commit-history in Claude Code?

Run npx skills add rohitg00/agentmemory --skill commit-history -a claude-code.

What does commit-history do?

It queries the memory_commits tool to show git commits linked to agent sessions, sorted newest first.

What arguments does commit-history take?

It accepts branch, repo, and limit up to 500, parsing any bare number as the limit.

Source text

SKILL.md · Apache-2.0
---
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

```json
memory_commits { "branch": "main", "limit": 20 }
```

Expected output:

```text
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](TROUBLESHOOTING.md) if `memory_commits` is not available.

© rohitg00 · Apache-2.0 · rohitg00/agentmemory

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor