distilly

distilly is a skill for Claude Code, Codex from titanwings/distilly. It costs 56 tokens per session (3,239 once invoked), scanned A, original, MIT.

A skill for turning source material about a person into a reusable profile for AI agents.

In plain words
What is it for?
Use it to distill information about colleagues, relationships, or celebrities into English- or Chinese-language person profiles.
Why use it?
It organizes scattered information into a consistent profile that agents can reuse in later conversations or tasks.

Skill for Claude CodeCodex

Part of the distilly plugin — 1 skill shipped together

About the project

Distilly is a local-first tool that turns a person’s source material, habits, judgment, and writing style into a versioned profile that an AI agent can temporarily recall or install as a persistent skill. It is for creating reusable agent or bot behavior profiles, and the catalogue includes a plugin and skill for using it.

titanwings/distilly · 24,319 stars · on GitHub

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 skills/titanwings/distilly/distilly
Any agent
npx skills add titanwings/distilly --skill distilly
Clone the repo
git clone --depth 1 https://github.com/titanwings/distilly

Made for: Claude Code, Codex.

Or install distilly, the plugin that ships this one along with the rest of its 1 skill.

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 distilly

README.md
[![agentmods](https://agentmods.dev/badge/skills/titanwings/distilly/distilly.svg)](https://agentmods.dev/skills/titanwings/distilly/distilly)
Your own site
<a href="https://agentmods.dev/skills/titanwings/distilly/distilly"><img src="https://agentmods.dev/badge/skills/titanwings/distilly/distilly.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,239 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 $0.00056 $0.03239
Opus 5 $0.00028 $0.01620
Sonnet 5 $0.00011 $0.00648
Haiku 4.5 $0.00006 $0.00324

Measured today against content hash 071b1764af19, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

distilly 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 today.

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.

plugins/claude-code/skills/distilly/SKILL.md · 175 lines

How it starts

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

Distilly

Keep person memory local, evidence-bound, and reviewable. Use only these model-facing tools:

  • distilly_get
  • distilly_ingest
  • distilly_pending
  • distilly_commit
  • distilly_correct

Do not invent a create, research, flush, capture, or review tool. Do not use shell commands or direct file writes to change Distilly state.

Gate the runtime

The installed host binding completes trusted preflight before it starts the MCP server and binds the verified briefing capacity to the runtime session. That internal result is not model-facing: do not ask the user for it or require a HostPreflight object in the conversation.

Before any source research or distilly_* call, check that all five exact Distilly tools are available in the current session. Their availability is sufficient to begin; the runtime still fails closed if its trusted preflight, capacity binding, or wire handshake is invalid. If the runtime or MCP server is unavailable, any tool is missing, or a call returns a host-capability or handshake failure, report that narrow failure and stop immediately. Do not research, ingest, acquire a lease, simulate tool results, use shell commands as a fallback, or write persona content into global instruction files.

Establish the task

  1. Identify the requested person, space, scope, and whether the user wants retrieval, new research, an update, or a correction.
  2. Call distilly_get with action: resolve before collecting or writing material.
  3. Handle resolution exactly:
    • For resolved, retain the returned subject id.
    • For ambiguous, show the candidates and ask the user to choose. Never guess.
    • For not_found, create the subject only together with the first non-empty material batch through distilly_ingest using subject.kind: create.
  4. For a retrieval-only request, call distilly_get with action: profile, prompt, or status after resolution and stop. Never create an empty subject.

Every tool input includes top-level wireVersion: "3" and a requestId shaped as req_ plus 32 lowercase hexadecimal characters. Use a fresh request id for each logical call. Reuse an id only when retrying the identical request; never reuse it for changed arguments. Do not hand-build variable-length counting sequences. When a safe host-local UUID or 16-byte random-hex facility is available, use it only to generate the suffix, remove UUID hyphens, lowercase it, and verify that the suffix matches ^[0-9a-f]{32}$ before the tool call; this must not read user data or mutate Distilly.

Read the full file on GitHub · 175 lines

Files

What ships with it

1 file 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. today Changed · -1,344 lines · +36 tokens per session scan C → A 071b1764af19
  2. 5d ago First seen · 1,519 lines · 20 tokens per session scan C b91bbfc6b750

Subscribe to this mod's changes

distilly is a skill published in the GitHub repository titanwings/distilly (24,319 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 3,239 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-30.

Related

Other skills, from other repositories

mnemosyne-context

Load this when working on the mnemosyne memory system — its repo, sync server, memory databases, or CI. Covers architecture, the surface/sync data model, dev workflow (tests/ruff/CI matrix), release policy, and known gotchas that are easy to get wrong. Use for any "mnemosyne" dev or devops task, or when a…

mnemosyne-oss/mnemosyne · 88 tokens

hermes-memory-providers

Install and configure Mnemosyne as a Hermes Agent memory provider — local SQLite with vector search, episodic consolidation, and temporal knowledge graphs.

mnemosyne-oss/mnemosyne · 34 tokens

mnemosyne

Persistent cross-session memory via Mnemosyne — store, recall, and consolidate facts, preferences, and context.

mnemosyne-oss/mnemosyne · 22 tokens

mnemosyne-memory-override

Hard rule override that forces Mnemosyne for all durable memory storage. The legacy memory tool is DEPRECATED for user preferences, credentials, and project conventions. Use memory ONLY for ephemeral session state.

mnemosyne-oss/mnemosyne · 46 tokens

hermes-context-optimization

Use this when the user asks about Hermes prompt/context size, “hello” startup cost, compression behavior, memory/profile bloat, tool-schema overhead, skill loading, session-store/search-index storage, or multimodal/visual-context approaches such as Snapcompact.

AtlasOmnia/donna-starter · 35 tokens

hermes-mnemosyne

Mnemosyne is Hermes' primary local-first memory engine — SQLite with vector + FTS5 hybrid search, 19+ tools, auto-consolidation, and a standalone CLI. It's a pip-installed plugin (not a built-in toolset) discovered via $HERMESHOME/plugins/mnemosyne/.

AtlasOmnia/donna-starter · 30 tokens