Agent skill

agentmemory Architecture

by rohitg00 in rohitg00/agentmemory

Explains how agentmemory is built: the iii engine it runs on, hybrid retrieval, the storage lifecycle, port layout and the web viewer.

Apache-2.0Auto-check passedAgent Workflows

Install agentmemory Architecture

skills CLI
$ npx skills add rohitg00/agentmemory --skill agentmemory-architecture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rohitg00/agentmemory agentmemory-architecture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rohitg00/agentmemory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugin/skills/agentmemory-architecture .claude/skills/agentmemory-architecture && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agentmemory-architecture
GitHub stars
29k
Token cost
~476 tokens
SKILL.md length
228 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

Explains how agentmemory is built: the iii engine it runs on, hybrid retrieval, the storage lifecycle, port layout and the web viewer.

  • Answering how agentmemory stores and retrieves memories end to end
  • SKILL.md covers iii primitives, Retrieval model, Storage and lifecycle and Ports, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Extending agentmemory with a new function and trigger

What it does

agentmemory is a local memory server for coding agents. It captures observations, indexes them for hybrid retrieval and serves them back over REST and MCP. This reference describes it as built on the iii engine, where everything is a function, a trigger or worker state: the worker registers `mem::*` functions and `api::*` HTTP triggers, and new capability means a new function plus a trigger rather than a plugin.

Recall combines BM25 keyword search, vector similarity and graph expansion over linked concepts, and the default install needs no API key because embeddings run on-device. Memories hold content, concepts, files, importance and timestamps, grouped by session and optionally linked to commits, and a cycle of capture, compress, consolidate and forget keeps the store from growing without bound. REST is anchored at port 3111, and a web viewer at `http://localhost:3113` shows memory building during sessions.

When your agent uses it

  • Answering how agentmemory stores and retrieves memories end to end
  • Extending agentmemory with a new function and trigger
  • Working out which ports an agentmemory instance uses

Example prompts

  • “Explain how agentmemory finds a memory, from the query to the ranked result.”
  • “I want to add a new capability to agentmemory. Where does it plug in?”
  • “Which ports will agentmemory use if I start a second instance?”

What it can do on your machine

Read from SKILL.md and the folder at commit 007a1a7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

agentmemory Architecture loads about 476 tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 228 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~476

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from rohitg00/agentmemory at commit 007a1a7, republished under its Apache-2.0 licence (© rohitg00). 228 words, ~476 tokens.

Download SKILL.mdSave it as .claude/skills/agentmemory-architecture/SKILL.md (or your agent's skills folder).
name
agentmemory-architecture
description
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 answering how agentmemory works under the hood.
user-invocable
false

agentmemory is a memory server for coding agents. It runs locally, captures observations, indexes them for hybrid retrieval, and serves them back over REST and MCP. It is built on the iii engine.

iii primitives

Everything is a function, a trigger, or worker state on the iii engine. There is no separate plugin system; the worker registers functions (mem::*) and HTTP triggers (api::*) and the engine routes calls. agentmemory does not bypass iii; new capability is a new function plus a trigger.

Retrieval model

Recall is hybrid: BM25 keyword search plus vector similarity plus graph expansion over linked concepts. The default install needs no API key because embeddings run on-device and BM25 needs none. An LLM provider only adds richer summaries and auto-injection, both opt-in.

Storage and lifecycle

Memories carry content, concepts, files, importance, and timestamps, grouped into sessions and optionally linked to commits. A lifecycle of capture, compress, consolidate, and forget keeps the store useful over time rather than letting it grow unbounded.

Ports

REST is the anchor at 3111. Streams = N+1 (3112), viewer = N+2 (3113), engine = N+46023 (49134). --instance N shifts the whole block by N*100.

Viewer

A real-time web viewer at http://localhost:3113 shows memory building as sessions run. Useful for demos and for confirming capture is working.

See also

  • agentmemory-mcp-tools and agentmemory-rest-api for the surfaces.
  • agentmemory-hooks for automatic capture.
  • agentmemory-config for ports and feature flags.

© rohitg00, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugin/skills/agentmemory-architecture of rohitg00/agentmemory.

Open the folder on GitHubat commit 007a1a7

Compare with similar skills

agentmemory Architecture next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

agentmemory Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
agentmemory Architecture this skillrohitg00/agentmemory29k—~476Automated safety check: PassApache-2.0
MemPalace Memory SearchMemPalace/mempalace59k—~1.4kAutomated safety check: PassMIT
MemPalace Setup and OperationMemPalace/mempalace59k—~2.2kAutomated safety check: PassMIT
Qmdbreferrari/obsidian-mind4.9k—~1.7kAutomated safety check: PassMIT
Memori MCP Memory UsageMemoriLabs/Memori17k—~3.8kAutomated safety check: PassMIT
Ourmemourmem/omem1741 repos~3.4kAutomated safety check: PassCustom licence

Similar skills

  • MemPalace Memory Search

    MemPalace/mempalace

    Mines project files and conversation exports into a local, searchable memory palace and recalls past work by semantic search through the mempalace CLI.

    59k GitHub stars~1.4k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Installs and configures MemPalace as a private local palace, a shared-brain hub or a client of an existing hub, including MCP registration and version-correct initialization.

    59k GitHub stars~2.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Qmd

    breferrari/obsidian-mind

    Search the vault using QMD semantic search. An agent skill from breferrari/obsidian-mind.

    4.9k GitHub stars~1.7k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Memori MCP Memory Usage

    MemoriLabs/Memori

    Teaches an MCP-connected agent when and how to call Memori's recall, summary, compaction, augmentation, feedback and quota tools to keep context across sessions.

    17k GitHub stars~3.8k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check passed
  • Ourmem

    ourmem/omem

    Shared memory that never forgets. An agent skill from ourmem/omem.

    174 GitHub starsUsed in 1 repo~3.4k tokens
    Agent WorkflowsAuto-check passed
  • Agent Memory

    tigerless-labs/agent-memory

    Read and write the shared long-term memory store. An agent skill from tigerless-labs/agent-memory.

    2.4k GitHub stars~1.3k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from rohitg00/agentmemory

All 17 skills in this repo
  • Sets up and troubleshoots a local agentmemory install, covering the MCP connection, environment variables, ports, authentication and optional feature flags.

    29k GitHub stars~1k tokensUpdated yesterday
    Auto-check: notes
  • Commit Context Lookup

    rohitg00/agentmemory

    Traces a file, function or line back to the agent session behind its current commit, using git blame and a memory lookup, and reports only what the records show.

    29k GitHub stars~522 tokensUpdated yesterday
    Auto-check passed
  • Agent Commit History

    rohitg00/agentmemory

    Lists recent git commits linked to agent sessions, filterable by branch, repository or a result limit, showing the session id and observation count behind each one.

    29k GitHub stars~524 tokensUpdated yesterday
    Auto-check passed
  • Agentmemory Forget

    rohitg00/agentmemory

    Deletes chosen memories from agentmemory only after showing the matches and getting an explicit yes, for privacy requests and cleanup of outdated notes.

    29k GitHub stars~612 tokensUpdated yesterday
    Auto-check passed
  • Session Handoff Resume

    rohitg00/agentmemory

    Resumes the most recent agent session for the current directory, leading with any question left unanswered and ending with a concrete next step.

    29k GitHub stars~678 tokensUpdated yesterday
    Auto-check passed
  • Lesson Memory Recorder

    rohitg00/agentmemory

    Distills a user correction or hard-won rule into a confidence-weighted lesson that resurfaces automatically before similar future work.

    29k GitHub stars~721 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about agentmemory Architecture

What does agentmemory Architecture do?

Explains how agentmemory is built: the iii engine it runs on, hybrid retrieval, the storage lifecycle, port layout and the web viewer. agentmemory is a local memory server for coding agents. It captures observations, indexes them for hybrid retrieval and serves them back over REST and MCP.

When should I use agentmemory Architecture?

agentmemory Architecture fits situations like: answering how agentmemory stores and retrieves memories end to end; extending agentmemory with a new function and trigger; working out which ports an agentmemory instance uses.

How do I install agentmemory Architecture in Claude Code?

Run `npx skills add rohitg00/agentmemory --skill agentmemory-architecture -a claude-code`. Or copy the skill folder (plugin/skills/agentmemory-architecture in rohitg00/agentmemory) into .claude/skills/agentmemory-architecture in your project. Claude Code loads it when a task matches its description.

How do I install agentmemory Architecture in Codex?

Run `npx skills add rohitg00/agentmemory --skill agentmemory-architecture -a codex`. Or copy the skill folder (plugin/skills/agentmemory-architecture in rohitg00/agentmemory) into .agents/skills/agentmemory-architecture in your project. Codex loads it when a task matches its description.

Can I use agentmemory Architecture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rohitg00/agentmemory --skill agentmemory-architecture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agentmemory-architecture, .gemini/skills/agentmemory-architecture, .github/skills/agentmemory-architecture and .opencode/skills/agentmemory-architecture in your project.

What does agentmemory Architecture need to run?

SKILL.md names no scripts, command-line tools or credentials: agentmemory Architecture is instructions for the agent only.

Does agentmemory Architecture access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is agentmemory Architecture safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does agentmemory Architecture use?

agentmemory Architecture is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does agentmemory Architecture use?

About 476 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to agentmemory Architecture?

Skills that share tags, products or a category with agentmemory Architecture: MemPalace Memory Search (MemPalace/mempalace, 59k stars), MemPalace Setup and Operation (MemPalace/mempalace, 59k stars), Qmd (breferrari/obsidian-mind, 4.9k stars) and Memori MCP Memory Usage (MemoriLabs/Memori, 17k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains agentmemory Architecture?

rohitg00 (a GitHub user) maintains it in rohitg00/agentmemory, which has 29,222 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 6, 2026.

Source: rohitg00/agentmemory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.