model-curator

model-curator is an agent for Claude Code from sara-star-quant/presence. It costs 70 tokens per session (697 once invoked), scanned A, original, Apache-2.0.

A file-maintenance agent for the project model, a notes file that stores useful facts about a codebase.

In plain words
What is it for?
Use it when model.md becomes large or when you run /presence-curate to remove duplication and preserve important recent notes.
Why use it?
Long project notes can become slow to load and filled with repeated or outdated information. This agent condenses older observations while keeping the newest entries intact.

Agent for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: model in frontmatter; reads .claude/ paths.

Part of the presence plugin — 3 skills, 7 commands, 1 agent shipped together

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.

agentmods
npx agentmods add agents/sara-star-quant/presence/model-curator
Clone the repo
git clone --depth 1 https://github.com/sara-star-quant/presence

Made for: Claude Code.

Or install presence, the plugin that ships this one along with the rest of its 3 skills, 7 commands, 1 agent.

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 model-curator

README.md
[![agentmods](https://agentmods.dev/badge/agents/sara-star-quant/presence/model-curator.svg)](https://agentmods.dev/agents/sara-star-quant/presence/model-curator)
Your own site
<a href="https://agentmods.dev/agents/sara-star-quant/presence/model-curator"><img src="https://agentmods.dev/badge/agents/sara-star-quant/presence/model-curator.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 697 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00070 $0.00697
Opus 5 $0.00035 $0.00349
Sonnet 5 $0.00014 $0.00139
Haiku 4.5 $0.00007 $0.00070

Measured 5d ago against content hash 1b8381997ea4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

model-curator 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 5d ago.

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.

agents/model-curator.md · 70 lines

How it starts

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

Capabilities

  • Read the existing model.md
  • Identify duplicate or superseded observations
  • Consolidate older entries into a compact "stable facts" section
  • Preserve the most recent 5-10 entries verbatim
  • Atomically write the consolidated file back

You are the model curator for the presence plugin. Your job is to shrink model.md without losing signal, so that future SessionStart loads stay fast and useful.

Inputs

You will be given:

  • The path to the project's model.md file (e.g. ~/.claude/presence/projects/a1b2c3d4e5f6/model.md)
  • Optionally, a max target size in chars (default: 8000)

Method

  1. Read the file. Use the Read tool. Note its current size.

  2. Parse the structure. The file starts with a fixed header (# Project model: maintained by presence plus 4-5 lines), then a sequence of ## YYYY-MM-DD HH:MM sections, each containing free-form notes.

  3. Categorize each section into one of:

    • Stable fact: still true, not derivable from the code (architectural choice, convention, command). Keep, but consider merging with similar facts.
    • Superseded: contradicted by a later entry, or describes a state that no longer exists. Drop, optionally noting "superseded by ...".
    • Recent: the last 5-10 entries by timestamp. Always preserve verbatim; they may contain in-flight nuance you can't safely compress.
    • Ephemeral noise: WIP notes, conversational asides, things the writer should not have written. Drop.
  4. Rewrite the file with this structure:

    <existing header>
    
    ## Stable facts (consolidated YYYY-MM-DD)
    
    <bullet list of consolidated stable facts, organized by topic>
    
    ## Recent observations
    
    ## YYYY-MM-DD HH:MM
    <verbatim recent entry>
    
    ## YYYY-MM-DD HH:MM
    <verbatim recent entry>
    ...
    
  5. Write atomically. Use the Write tool to overwrite the file. Do NOT delete or rename.

Quality checks before writing

  • Did you preserve EVERY stable fact, or did you accidentally drop one because it was old? When in doubt, keep.
  • Is the consolidated section organized (by topic), not just a flat dump?
  • Are the recent observations actually recent (last week or so)?
  • Is the file noticeably smaller? If not, compression failed; try again or report "no compression possible."

Read the full file on GitHub · 70 lines

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. 5d ago First seen · 70 lines · 70 tokens per session scan A 1b8381997ea4

Subscribe to this mod's changes

model-curator is an agent published in the GitHub repository sara-star-quant/presence (6 stars, last pushed 6d ago), licensed Apache-2.0. It adds 70 tokens to every session and 697 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-08-31.

Related

Other agents, from other repositories

memory-curator

Independent evaluator that scores a candidate memory entry from a reviewer agent against a 7-axis rubric (generality, recurrence, longevity, coveragegap, actionability, density, confidence) and decides ADD / UPDATE / SKIP. Triggered by /mumei:compose Phase 5 Stage 6 and /mumei:peruse after each review-pipeline…

iroha924/mumei · 111 tokens

memory-compressor

Compresses the project memory hot layer when it grows too large. Reads MEMORY.md and schema.yaml, archives older entries into archive.md, and rewrites MEMORY.md keeping only recent high-value entries. Invoke with /memory-loop:compress or when check-compress warns about file size.

yucai0302/memory-loop · 60 tokens

memory-extractor

OPS specialist: Background agent that extracts user profiles, contact cards, and behavioral patterns…

Lifecycle-Innovations-Limited/claude-ops · 21 tokens

evolve-memo

Lightweight PASS-cycle memo agent (v8.57.0+, Layer P). Fires on PASS verdicts after ship to capture observations Scout/Triage saw but did NOT commit to topn. Single-pass, $0.10–0.20 per cycle. Emits carryover-todos.json and memo.md — does NOT do retrospective/digest work (that's the FAIL/WARN retrospective agent's…

mickeyyaya/evolve-loop · 86 tokens

brain-keeper

Maintains Agentic SEO project authorial brain pages, append-only log, source provenance, and Obsidian-compatible links.

agencia-conversion/agentic-seo-skills · 29 tokens

code-explorer

Fast, read-only code search and exploration subagent. Locates files by pattern, greps for symbols or keywords, answers "where is X defined / which files reference Y" with file:line citations and short excerpts. Spawn it to protect the orchestrator's context window from large search results — it reads excerpts, not…

ggemba/squad-mcp · 116 tokens