squish

squish is a command for Claude Code from michielhdoteth/squish-memory. It costs 11 tokens per session (461 once invoked), scanned A, original, MIT.

A command for finding and opening earlier AI coding sessions saved in Squish memory.

In plain words
What is it for?
Use it to list sessions, search by topic or tags, open a session by ID, find sessions related to recently changed files, or save a session summary.
Why use it?
It helps you recover past decisions, errors, changed files, and unfinished tasks without searching through old conversations manually.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: agent in frontmatter.

Good fit Use it to list sessions, search by topic or tags, open a session by ID, find sessions related to recently changed files, or save a session summary.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/michielhdoteth/squish-memory/squish
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.

Clone the repo
git clone --depth 1 https://github.com/michielhdoteth/squish-memory

Made for: Claude Code.

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 squish

README.md
[![agentmods](https://agentmods.dev/badge/commands/michielhdoteth/squish-memory/squish/github.svg)](https://agentmods.dev/commands/michielhdoteth/squish-memory/squish)
Your own site
<a href="https://agentmods.dev/commands/michielhdoteth/squish-memory/squish"><img src="https://agentmods.dev/badge/commands/michielhdoteth/squish-memory/squish/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 squish

Your own site · 80×15
<a href="https://agentmods.dev/commands/michielhdoteth/squish-memory/squish"><img src="https://agentmods.dev/badge/commands/michielhdoteth/squish-memory/squish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 461 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 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.00011 $0.00461
Opus 5.5 $0.00004 $0.00184
Sonnet 5.5 $0.00002 $0.00092
Haiku 4.5 $0.00001 $0.00046

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

Security

Grade A, and why

squish 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 3mo 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.

plugins/opencode/commands/squish.md · 39 lines

What it actually says

You are the Squish session memory tool. The user invoked /squish $ARGUMENTS.

Parse the arguments as ONE of these subcommands (case-insensitive):

  1. sessions (no args or list):

    • Run: squish sessions list --json
    • Present a compact table: id, title, project, status, ended_at
    • Offer to search or load a specific one
  2. search <query>:

    • Run: squish sessions search "<query>" --json (escape the query as a shell-safe string)
    • If tags are also present in args (after --tag), add --tag t1,t2
    • Present the top 10 results as ranked cards
  3. load <id> or show <id>:

    • Run: squish sessions show <id> --json
    • Present the full session detail: title, summary, project, branch, dates, files_touched (all), decisions, errors, todos
  4. related:

    • Run: squish sessions related --json (the CLI auto-detects repo_path from cwd and uses recently-touched files from git)
    • Present the top 5 related sessions
    • If no results, suggest squish sessions search "<topic>" instead
  5. capture <summary>:

    • Run: squish sessions capture "<summary>" --json
    • If the user provided --title T or --tags t1,t2 etc, forward them
    • Confirm the saved id and offer to add tags/files

Note (v1.5.5): the legacy inject <id> subcommand has been removed. The agent has bash + code execution and can call squish sessions search "<query>" --json directly to pull past session content. The squish_session_inject plugin tool has been removed for the same reason.

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. 3mo ago First seen · 39 lines · 11 tokens per session scan A e2d79b2ef282

Subscribe to this mod's changes

squish is a command published in the GitHub repository michielhdoteth/squish-memory (12 stars, last pushed 3d ago), licensed MIT. It adds 11 tokens to every session and 461 once invoked, about $0.0000 per session on Opus 5.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

squish compared with commands from other repositories

squish next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
squishmichielhdoteth/squish-memoryCommand123d agoMITA11Claude Code
code-review-swarmayushcodes10/echo-memCommand22mo agoApache-2.0A0Claude Code
multi-repo-swarmayushcodes10/echo-memCommand22mo agoApache-2.0A0Claude Code
release-managerayushcodes10/echo-memCommand22mo agoApache-2.0A0Claude Code
release-swarmayushcodes10/echo-memCommand22mo agoApache-2.0A0Claude Code
repo-architectayushcodes10/echo-memCommand22mo agoApache-2.0A0Claude Code
swarm-issueayushcodes10/echo-memCommand22mo agoApache-2.0A0Claude Code