/agentmemory:commit-context [file, function, or line]from agentmemory
Traces a file, function, or line back to the agent session that produced its current commit. Answers "why is this code here" using git blame and session lookup.
Ships in agentmemory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The user wants commit context for: $ARGUMENTS
git blame -L 40,52 src/auth/refresh.ts # -> SHA 9a1b2c3d
memory_commit_lookup { "sha": "9a1b2c3d4e5f60718293a4b5c6d7e8f901234567" }
Expected output:
9a1b2c3 on main by dev: "rotate refresh tokens"
Linked session 7f3a9c2 "Auth refresh rework", 14 obs.
Report only what git and the lookup return. When the lookup gives commit: null,
the commit predates session linking; do not invent intent.
git blame -L <start>,<end> <file> for a line range;
git log -L :<function>:<file> for a function; git log -n 1 -- <file> for a
bare path.memory_commit_lookup { "sha": "<full-sha>" }.memory_recall when available.WRONG: lookup returns { "commit": null }, you narrate "the agent was
refactoring auth" from the diff alone.
RIGHT: "This commit predates session linking, so there is no recorded agent
session. From git show: it changed token rotation in refresh.ts."
commit: null reported as "predates linking", no fabricated session.commit-history: list many agent-linked commits at once.recall: dig deeper into the linked session's observations.See TROUBLESHOOTING.md if memory_commit_lookup is not available.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rohitg00/agentmemory --plugin agentmemory17 skills in this plugin
/agentmemory-agentsHow agentmemory wires into host coding agents via the connect command. Use when installing agentmemory into a specific agent, when asked which agents are supported, or when a connect adapter writes the wrong config path./agentmemory-architectureHow agentmemory is built, the iii engine primitives it runs on, its storage model, ports, and the viewer. Use when reasoning about how memory is stored or retrieved end to end, when extending the system, or when answering how agentmemory works under the hood./agentmemory-configSet up and diagnose local agentmemory, including MCP, environment variables, ports, and feature flags. Use when getting started, checking a connection, enabling a feature, configuring auth, or explaining why a feature is off by default./agentmemory-hooksThe agentmemory plugin hooks that capture observations automatically across the agent session lifecycle. Use when explaining how memory gets captured without manual saves, when debugging missing observations, or when tuning what gets recorded./agentmemory-mcp-toolsMap of every agentmemory MCP tool, what each does, and its parameters. Use when choosing which memory tool to call, when a tool name or argument is unclear, or when answering what agentmemory can do via MCP./agentmemory-rest-apiThe agentmemory HTTP REST API surface, the primary protocol for talking to the memory server. Use when calling agentmemory over HTTP, when MCP is unavailable and you need a fallback, or when integrating a host that does not speak MCP.Other plugins' skills for the same job