neotoma-agent

neotoma-agent is a skill for Claude Code, Codex from markmhendrickson/neotoma. It costs 63 tokens per session (1,208 once invoked), scanned A, original, MIT.

A protocol for saving an agent's conversation turns and the records they refer to in Neotoma, a state and memory layer.

In plain words
What is it for?
It retrieves matching entities, stores user and assistant messages, links them to the conversation, and records references between messages and related entities.
Why use it?
It keeps user requests, agent replies, and retrieved context available across turns instead of relying only on temporary conversation memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It retrieves matching entities, stores user and assistant messages, links them to the conversation, and records references between messages and related entities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markmhendrickson/neotoma/agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add markmhendrickson/neotoma --skill agent
Clone the repo
git clone --depth 1 https://github.com/markmhendrickson/neotoma

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neotoma-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/markmhendrickson/neotoma/agent/github.svg)](https://agentmods.dev/skills/markmhendrickson/neotoma/agent)
Your own site
<a href="https://agentmods.dev/skills/markmhendrickson/neotoma/agent"><img src="https://agentmods.dev/badge/skills/markmhendrickson/neotoma/agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neotoma-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/markmhendrickson/neotoma/agent"><img src="https://agentmods.dev/badge/skills/markmhendrickson/neotoma/agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,208 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01208
Opus 5 $0.00032 $0.00604
Sonnet 5 $0.00013 $0.00242
Haiku 4.5 $0.00006 $0.00121

Measured 6d ago against content hash 2acb6eaba4aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

neotoma-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (src/diagnose.ts, src/index.ts, src/memory.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/agent/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Neotoma Agent Turn Protocol

This skill describes the canonical protocol an agent follows on every turn when writing to Neotoma. @neotoma/agent enforces this protocol by construction; this document describes what the protocol is and why each step exists, for agents and developers who want to understand or extend it.

The protocol

On every turn:

  1. Bounded retrieval. Extract concrete identifiers (names, ids, quoted strings, capitalized phrases) from the user message. For each, call retrieveEntityByIdentifier. Keep the result set bounded (default 8 entities). Failures are non-fatal — proceed with an empty retrieved set.

  2. Store the user message. Persist a conversation_message entity with:

    • role: "user", sender_kind: "user", content: <exact user text>
    • turn_key: "{conversation_id}:{turn_id}"
    • A PART_OF relationship to the conversation entity (created in the same store if it does not exist).
    • A REFERS_TO relationship to every retrieved entity from step 1.
    • idempotency_key: "conversation-{conversation_id}-{turn_id}-user-..." so re-runs of the same turn collapse onto one observation.
  3. Run the agent. Invoke the underlying LLM with the retrieved entities available as context. The agent may use them to ground its reply.

  4. Store the assistant reply. Persist another conversation_message entity:

    • role: "assistant", sender_kind: "assistant", content: <exact reply text>
    • turn_key: "{conversation_id}:{turn_id}:assistant"
    • A PART_OF relationship to the conversation entity.
    • REFERS_TO relationships to every entity the reply materially cites or produces.
    • idempotency_key: "conversation-{conversation_id}-{turn_id}-assistant-...".

Why each step exists

  • Bounded retrieval before write lets the agent see what is already known, so it can correct or extend rather than re-create. Skipping this step produces duplicate entities and contradicts itself across sessions.
  • PART_OF to the conversation makes the conversation queryable as a single unit: every message hangs off one root.
  • REFERS_TO edges are the agent's working memory in graph form. They let downstream queries answer "which conversations touched this entity?" without re-reading every message.
  • Deterministic idempotency keys mean the same turn replayed (timeouts, retries, hook fires) produces one observation, not many. The key shape conversation-{conversation_id}-{turn_id}-{role} is stable, predictable, and collision-free across turns.
  • Exact content (no summarization at write time) preserves provenance. Summaries are a downstream interpretation, not a substitute for the source.

Read the full file on GitHub · 87 lines

Files

What ships with it

10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 87 lines · 63 tokens per session scan A 2acb6eaba4aa

Subscribe to this mod's changes

neotoma-agent is a skill published in the GitHub repository markmhendrickson/neotoma (32 stars, last pushed yesterday), licensed MIT. It adds 63 tokens to every session and 1,208 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

remember

Routes user requests containing "remember", "recall", "checkpoint", "session", "todo", or "where were we" to the correct OpenEmpiric (OEM) MCP tool. Use when the user wants to persist, retrieve, or contextualize knowledge from project memory.

xpajonx/openempiric · 59 tokens

akf

Trust metadata for files, memories, and skills — check before you trust, stamp what you verify. A stamp costs 15 tokens; re-verifying costs 15,000.

HMAKT99/AKF · 39 tokens

akf

Trust metadata for files, memories, and skills — check before you trust, stamp what you verify. Use before building on existing files, after completing verified work, and when handling agent memories or downloaded skills.

HMAKT99/AKF · 44 tokens

aoa-memo

AoA/Abyss durable memory and owner orientation: use when ongoing work may depend on reviewed prior decisions, provenance, lifecycle/currentness, or an existing memo artifact, even when none is named. Also use to recall, review, or evolve a candidate, export, quarantine packet, object, corpus identity, lifecycle…

8Dionysus/aoa-memo · 116 tokens

soul-archive

Soul Archive — A digital personality persistence system + agentic memory. Builds your digital soul clone through everyday AI conversations, with proactive context injection, cross-session recall, failure-pattern warning, and pattern distillation. All data stored locally as plaintext JSON. Six modes: Soul Extract, Soul…

dqsjqian/soul-archive · 241 tokens

mk:wiki

Capture, gate, query, and render long-term project knowledge through the gated mewkit wiki subsystem. Use to create a wiki, propose/approve candidates (scanner-gated), hand off a skill's terminal artifact as a scanned candidate, recall context, search the FTS index, or list pages. Agents may only PROPOSE candidates…

ngocsangyem/MeowKit · 119 tokens