Agent skill · Audited from source

agentmemory-hooks

skill · rohitg00/agentmemoryApache-2.0 licenceAudited 28 Oct 2026 · source 03d581f00d50

★ 29,972pushed today
✓SAFEGrade B · 89/100 · 28 Oct 2026 · 03d581f
29,972repo stars · whole rohitg00/agentmemory

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 03d581f00d50 and found no filesystem, network or shell access and no hard-coded secrets. What it does: The 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…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “agentmemory-hooks (rohitg00/agentmemory)”. Retrieved 28 Oct 2026. https://modelsatlas.com/skills/rohitg00/agentmemory-hooks

Trust audit

Audit 0.4.1 · source read 28 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low1 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 13,985 of 14,816 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS1
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (1)

INFOPrompt injectionprompt.credential_read · TROUBLESHOOTING.md:49
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
and do not read local credential files.
Why
asks the agent to read credentials
Fix
—

Audit 0.4.1 · source sha 03d581f00d50 · 28 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

  • Publisherrohitg00 GitHub userOwner of the repository this skill is read from
  • Source folderrohitg00/agentmemory/plugin/skills/agentmemory-hooksThe exact folder we audited
  • LicenceApache-2.0As the repository states it
  • Commit pinned for this verdict03d581f00d50A new audit runs when the source changes
  • Repository statusNot archivedPushed today
  • Sandboxed runNot runSkills are read, not executed; layer L4 is skipped

What it tells the agent

Full source on GitHub ↗

Its description: The 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…

---
name: agentmemory-hooks
description: The 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.
user-invocable: false
---

The agentmemory plugin registers lifecycle hooks so memory is captured automatically. You do not have to call `memory_save` for routine work; the hooks observe tool use, prompts, and session boundaries and write observations for you.

## Quick start

For Claude Code, install its plugin:

```bash
/plugin marketplace add rohitg00/agentmemory
/plugin install agentmemory
```

For Devin CLI and Devin Desktop, install the plugin and start a new session:

```bash
devin plugins install rohitg00/agentmemory#plugin
```

Run `/hooks` inside Devin to confirm the agentmemory hooks are loaded. Plugin hooks run only in local Devin sessions, not in cloud sessions.

Pi and OMP install native recall and capture with `agentmemory connect pi --with-mcp` or `agentmemory connect omp --with-mcp`. Reload Pi or restart OMP, then inspect `/agentmemory-status`. DSH requires `agentmemory connect dsh --with-hooks` and a restart. Cursor lifecycle hooks come from its enabled plugin, separately from `connect cursor`'s MCP setup.

Hermes and OpenClaw use their native integrations and lifecycle contracts. Follow the matching integration setup instructions and verify a real turn creates an observation. Installing shared skills or connecting MCP alone does not enable automatic capture. Watch recorded observations in the viewer at `http://localhost:3113` when using the default port. A pending capture queue is not proof that the daemon stored the event.

## What the hooks do

- Session start and end frame each unit of work and let `handoff` resume it.
- Tool-use hooks capture what changed and why, the raw material for `recall` and `recap`.
- Prompt-submit captures intent. Pre-compact preserves context before the host trims it.
- A post-commit hook links commits to sessions, which powers `commit-context` and `commit-history`.

## Important

- The plugin hooks capture by default without an LLM. Per-observation LLM compression (`AGENTMEMORY_AUTO_COMPRESS`) and hook context injection (`AGENTMEMORY_INJECT_CONTEXT`) are separate options. Session summaries can use a configured LLM provider independently of automatic observation compression. Native integrations have their own recall/capture settings; inspect the host configuration instead of assuming these flags control every plugin.
- If observations are missing, confirm the plugin is enabled and the server is running. See [TROUBLESHOOTING.md](TROUBLESHOOTING.md).

## See also

- agentmemory-config for the capture and injection flags.
- The handoff, recap, and session-history skills consume what these hooks record.

## Reference

The exact registered hook events live in REFERENCE.md, generated from `plugin/hooks/hooks.json`.

Excerpt, first 2,990 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit 03d581f

Download folder ↗
git clone https://github.com/rohitg00/agentmemory
git -C agentmemory checkout 03d581f00d50

The author documents no install command, so this uses the repository directly. Our verdict covers commit 03d581f00d50 only.

Works in which agents?

What its own text says, not a test

AgentStatusMore
Claude CodeMentioned in its text, not testedSkills for Claude Code · About Claude Code
CodexMentioned in its text, not testedSkills for Codex · About Codex
CursorMentioned in its text, not testedSkills for Cursor · About Cursor
OpenClawMentioned in its text, not testedSkills for OpenClaw · About OpenClaw
“Mentioned” means the skill’s text names the agent. We have not run it there.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source 03d581f00d50

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/rohitg00/agentmemory-hooks/badge.svg)](https://modelsatlas.com/skills/rohitg00/agentmemory-hooks/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Similar skills

agentmemory-mcp-tools✓SAFE

rohitg00/agentmemory

Map 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.

★ 30kGrade B
agentmemory-config!CAUTION

rohitg00/agentmemory

Set 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…

★ 30kGrade B
agentmemory-agents✓SAFE

rohitg00/agentmemory

How 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.

★ 30kGrade B
agentmemory-architecture✓SAFE

rohitg00/agentmemory

How 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…

★ 30kGrade B
Commit Context✓SAFE

rohitg00/agentmemory

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", "who wrote this", or wants…

★ 29kGrade B
Commit History✓SAFE

rohitg00/agentmemory

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…

★ 29kGrade B

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/rohitg00/agentmemory-hooks/badge.svg)](https://modelsatlas.com/skills/rohitg00/agentmemory-hooks/)

Questions about agentmemory-hooks

What does the agentmemory-hooks skill do?
#1 Persistent memory for AI coding agents based on real-world benchmarks
Is agentmemory-hooks safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can agentmemory-hooks access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does agentmemory-hooks work with?
Its documentation mentions claude-code, codex, cursor and openclaw. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (03d581f00d50), read on 2026-10-28. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.