plugin/skills/commit-history/SKILL.md
List recent git commits that are linked to agent sessions, optionally filtered by branch or repo. Use when the user asks "show agent commits", "what has the agent shipped", or wants a list of commits with their session context.
npx skillsauth add rohitg00/agentmemory commit-historyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The user wants a list of agent-linked commits. Filter args: $ARGUMENTS
Parse $ARGUMENTS for optional branch=<name>, repo=<url-or-fragment>, and limit=<n> tokens. A bare numeric token becomes the limit. Defaults: no branch filter, no repo filter, limit 100, max 500.
Call the memory_commits MCP tool with the parsed filters. If the MCP tool is unavailable, fall back to HTTP: build GET $AGENTMEMORY_URL/agentmemory/commits and append each filter as a URL-encoded query parameter (use URLSearchParams or encodeURIComponent on branch, repo, and limit) so values containing ?, &, or # cannot corrupt the request. Include Authorization: Bearer $AGENTMEMORY_SECRET when set.
Render the result as a reverse-chronological list:
files is providedIf the result is empty, tell the user the filter matched no commits and suggest dropping the branch/repo filter. Do not invent commits.
data-ai
Summarize the last N agent sessions for the current project, grouped by date. Use when the user asks "recap", "what have we been doing", "this week", "today", or wants a rollup of recent work.
data-ai
Resume the most recent agent session for the current working directory. Use when the user says "where were we", "resume", "handoff", "pick up where I left off", or starts a session with no fresh context.
development
Trace a file, function, or line back to the agent session that produced its current commit. Use when the user asks "why is this code here", "what was the agent doing when this changed", or wants context on a specific location in the codebase.
tools
Show what happened in recent past sessions on this project. Use when user asks "what did we do last time", "session history", "past sessions", or wants an overview of previous work.