Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By dullfigv1.1.1In 1 marketplace
Variable-resolution context: folds bulky stale tool output to disk behind always-visible stubs; hydrate() recovers detail on demand.
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; writes files; reads files; calls a model on your account.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Min fold mass (tokens)minFoldMass
Candidate token mass that triggers a sweep
numberdefault 20000
Fold age (turns)foldAgeTurns
Results younger than this many turns are never fold candidates
numberdefault 3
Librarian modellibrarianModel
Model alias for the librarian
stringdefault haiku
Working set budget (tokens)workingSetBudget
Absolute live-context tokens; above it sweeps turn aggressive
numberdefault 100000
Min reduction ratiominReductionRatio
Below this estimated reduction a sweep is skipped
numberdefault 0.15
Pin after hydrationspinAfterHydrations
Hydration count at which a fold is pinned open
numberdefault 2
Preserve recent turnspreserveRecentTurns
Turns the rebuilder never touches
numberdefault 3
Your agent reads a 500-line file, reasons about it, and keeps working. Ten turns later the context fills up and Claude Code compacts it — that file becomes a sentence in a summary. The details are gone, and the model doesn't know they're gone.
Origami refuses that trade. When context needs to shrink, it folds the bulky tool result to disk and leaves a link in its place:
[origami fold-012 · Read result folded] src/auth.ts (480 lines):
[JWT validation](hydrate://fold-012#jwt),
[refresh flow](hydrate://fold-012#refresh),
[SECRET_ROTATION constant](hydrate://fold-012#rotation)
Nothing was summarized away. The exact bytes are one hydrate("fold-012")
call from coming back. The conversation you and the model actually had is
never rewritten. That's the whole idea:
Curate context, not compress it.
A stub is not a lossy summary — it's a retrieval handle. It's written by a small librarian model while it can still see the full content, as 2–4 concept-level links, so the agent knows exactly what's inside and exactly how to get it back. Compaction stops being amnesia and becomes an index.
hydrate returns the whole result; the link it
followed is logged, groundwork for future prefetch.hydrate
tells you so, handing you the original snapshot plus a pointer to re-read
the current version. It never passes off stale bytes as current.Origami rides Claude Code's early-access function hooks ("Claude Mods"),
so that flag must be on. Set it once for every session in
~/.claude/settings.json:
{ "env": { "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1" } }
Then add the marketplace and install:
claude plugin marketplace add dullfig/claude-plugins
claude plugin install origami@dullfig-plugins
…or interactively: /plugins → dullfig-plugins → origami. To try it from
a checkout without installing, launch with --plugin-dir /path/to/origami.
If you install before setting the flag, origami still loads and tells you at
session start instead of silently doing nothing — run /origami:enable
once and it performs that one setup step for you.
Prerequisite: Claude Code ≥ 2.1.259.
origami@dullfig-plugins is listed by dullfig/claude-plugins — review the source before installing
npx claudepluginhub dullfig/claude-plugins --plugin origamiBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground