accordion-context-folding

accordion-context-folding is a skill for Claude Code from larsboes/Axon. It costs 102 tokens per session (735 once invoked), scanned A, a copy of accordion-context-folding, MIT.

A context-recovery tool for Accordion, a desktop application that temporarily folds older conversation text into summaries to save space.

In plain words
What is it for?
Recognising folded context and restoring one or more folded blocks when earlier details are needed.
Why use it?
It lets an agent retrieve information that is no longer fully visible without treating the summary as the complete original text.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the harness plugin — 6 skills shipped together

Good fit Recognising folded context and restoring one or more folded blocks when earlier details are needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/larsboes/axon/accordion-context-folding
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 larsboes/Axon --skill accordion-context-folding
Clone the repo
git clone --depth 1 https://github.com/larsboes/Axon

Made for: Claude Code.

Or install harness, the plugin that ships this one along with the rest of its 6 skills.

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 accordion-context-folding

README.md
[![agentmods](https://agentmods.dev/badge/skills/larsboes/axon/accordion-context-folding/github.svg)](https://agentmods.dev/skills/larsboes/axon/accordion-context-folding)
Your own site
<a href="https://agentmods.dev/skills/larsboes/axon/accordion-context-folding"><img src="https://agentmods.dev/badge/skills/larsboes/axon/accordion-context-folding/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 accordion-context-folding

Your own site · 80×15
<a href="https://agentmods.dev/skills/larsboes/axon/accordion-context-folding"><img src="https://agentmods.dev/badge/skills/larsboes/axon/accordion-context-folding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 735 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.
Origin 100% copy Near-identical to another mod 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.00102 $0.00735
Opus 5.5 $0.00041 $0.00294
Sonnet 5.5 $0.00020 $0.00147
Haiku 4.5 $0.00010 $0.00073

Measured 1mo ago against content hash 50c6fd334dfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

accordion-context-folding 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 1mo 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.

Origin

This is a copy

100% identical to accordion-context-folding — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

Packs/harness/pi-packages/accordion/extension/skills/accordion-context-folding/SKILL.md · 54 lines

How it starts

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

Accordion, an external desktop app, may be folding parts of your context to keep token usage within a budget. This is opt-in and controlled by the human — you cannot disable it, but you can always pull specific blocks back.

What folding looks like

A folded block appears as:

{#3f9a2c FOLDED} Assistant analyzed the test failures: three imports were missing…

The 3f9a2c is a short fold code — an opaque handle for that block. The part after FOLDED} is a short summary. The original content is preserved and retrievable — nothing is lost.

Restoring folded content

Call the unfold tool with one or more codes copied from the markers:

unfold({codes: ["3f9a2c"]})
unfold({codes: ["3f9a2c", "00a2cd"]})

(Pass the codes exactly as shown, as strings — a code may have leading zeros.)

The tool returns a confirmation. The restored content appears in your context on your next turn — not immediately. If you need the content now, call unfold and then take another step (e.g. re-read, continue the task) so the next turn picks it up.

Reading folded content right now (recall)

If you need the full content of a folded block for the current step but do not want to change your standing context, call recall instead of unfold:

recall({codes: ["3f9a2c"]})
recall({codes: ["3f9a2c", "00a2cd"]})

recall returns the block's full original content as this tool's result, immediately — like reading a file. It does not force the block open: your standing context is unchanged (the block stays folded), so it costs nothing beyond this one result.

Choose between them:

  • recall — read it once, now. Content comes back as the tool result this turn; your context is untouched.
  • unfold — keep it open. The block returns to your context on your next turn and stays open until the human re-folds it.

Prefer recall when you just need to glance at a value or quote; use unfold when you will keep referring to the block over several turns.

Read the full file on GitHub · 54 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. 1mo ago First seen · 54 lines · 102 tokens per session scan A 50c6fd334dfd

Subscribe to this mod's changes

accordion-context-folding is a skill published in the GitHub repository larsboes/Axon (1 stars, last pushed 1mo ago), licensed MIT. It adds 102 tokens to every session and 735 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to accordion-context-folding, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

notes

Skill "notes" from Pinvou/pinvou-agent, covering ima notes, operations, write rules, examples and response handling.

Pinvou/pinvou-agent · 0 tokens

shodh-memory

Persistent memory system for AI agents. Use this skill to remember context across conversations, recall relevant information, and build long-term knowledge. Activate when you need to store decisions, learnings, errors, or context that should persist beyond the current session.

varun29ankuS/shodh-memory · 53 tokens

learn

Manually record an insight, correction, preference, or rule that the agent should remember for future tasks.

CoWork-OS/CoWork-OS · 23 tokens

memory-kit

Create a workspace-local .cowork/ memory kit (rules, identity, long-term notes, daily logs, heartbeat templates).

CoWork-OS/CoWork-OS · 28 tokens

memorywhale

Query and write durable debugging memory recorded by MemoryWhale. Use when debugging a failure that may have happened before, when you need the exact error/flags/output from an earlier attempt, when the user asks "how did we fix this last time?", or once you've figured out why something failed / how a fix worked and…

wuisabel-gif/MemWhale · 79 tokens

tma1-peer

List recent sessions on this project by agent — peers (Claude Code, OpenClaw, Copilot CLI) or your own past sessions. Invoke this skill when the user asks you to read another agent's review feedback, see what someone else tried, act on cross-agent context, or recall your own earlier work here. Trigger phrases: "what…

tma1-ai/tma1 · 116 tokens