sync-manifest

sync-manifest is a command for Claude Code from ChrisDBaldwin/Masques. It costs 12 tokens per session (637 once invoked), scanned A, original, Apache-2.0.

A command that rebuilds YAML summary files used to list available masques quickly. A masque is a stored persona or configuration described by a .masque.yaml file.

In plain words
What is it for?
Use it to regenerate the private manifest, the shared manifest, or both from the available masque files.
Why use it?
It avoids reading every full masque file whenever a listing is requested and keeps private and shared listings current.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the masques plugin — 8 commands 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 commands/chrisdbaldwin/masques/sync-manifest
Clone the repo
git clone --depth 1 https://github.com/ChrisDBaldwin/Masques

Made for: Claude Code.

Or install masques, the plugin that ships this one along with the rest of its 8 commands.

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 sync-manifest

README.md
[![agentmods](https://agentmods.dev/badge/commands/chrisdbaldwin/masques/sync-manifest.svg)](https://agentmods.dev/commands/chrisdbaldwin/masques/sync-manifest)
Your own site
<a href="https://agentmods.dev/commands/chrisdbaldwin/masques/sync-manifest"><img src="https://agentmods.dev/badge/commands/chrisdbaldwin/masques/sync-manifest.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 637 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.00012 $0.00637
Opus 5 $0.00006 $0.00318
Sonnet 5 $0.00002 $0.00127
Haiku 4.5 $0.00001 $0.00064

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

Security

Grade A, and why

sync-manifest 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.

commands/sync-manifest.md · 81 lines

How it starts

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

Sync Manifest Command

Regenerate manifest files containing summary data for fast /list lookups.

Overview

Manifests are pre-built YAML files containing the summary fields needed for listing masques. This avoids reading every *.masque.yaml file on each /list call.

Manifest Locations

  • Private: ${MASQUES_HOME:-~/.masques}/manifest.yaml
  • Shared: ${CLAUDE_PLUGIN_ROOT}/personas/manifest.yaml

Instructions

  1. Determine scope from the argument:

    • No argument: sync both private and shared
    • private: sync only ${MASQUES_HOME:-~/.masques}/manifest.yaml
    • shared: sync only ${CLAUDE_PLUGIN_ROOT}/personas/manifest.yaml
  2. For each location in scope, generate a manifest:

    a. Glob for *.masque.yaml files in the directory

    b. For each masque file, extract:

    • name - Display name (required — skip file with warning if missing)
    • version - Version string (required — skip file with warning if missing)
    • attributes.domain - Domain area (use "unknown" if attributes or domain is missing)
    • attributes.tagline - Brief description (fallback to attributes.philosophy if no tagline; use "" if neither exists)

    c. Sort entries by name (case-insensitive)

    d. Write manifest with this format (use the current ISO 8601 timestamp for generated_at):

    # Auto-generated by /sync-manifest - do not edit manually
    generated_at: 2026-01-26T15:42:00Z  # ← use current time
    masques:
      - name: Codesmith
        version: "0.1.0"
        domain: systems-programming
        tagline: "every line should teach"
      - name: Mirror
        version: "0.1.0"
        domain: masque-creation
        tagline: "who do you need to become?"
    
  3. Report results:

    Manifest sync complete:
    
    Private (~/.masques/manifest.yaml):
      2 masques indexed
    
    Shared (personas/manifest.yaml):
      4 masques indexed
    

    If a directory has no masque files:

    Private (~/.masques/manifest.yaml):
      No masques found, manifest not created
    

Read the full file on GitHub · 81 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 · 81 lines · 12 tokens per session scan A c4ce617704f6

Subscribe to this mod's changes

sync-manifest is a command published in the GitHub repository ChrisDBaldwin/Masques (14 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 12 tokens to every session and 637 once invoked, about $0.0001 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.