squirrel-layout

squirrel-layout is a command for Claude Code from kubalajiri/claude-squirrel. It costs 27 tokens per session (482 once invoked), scanned A, original, MIT.

A command for viewing and editing Squirrel’s status-line layout: which segments appear on each line, their order, and which remain visible when the terminal pane becomes narrow.

In plain words
What is it for?
Use it to move or reorder segments, create lines, swap lines, hide segments, and change their drop priorities.
Why use it?
It helps arrange status information to fit your screen and control which items are dropped first when space is limited.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the squirrel plugin — 1 skill, 37 commands, 6 hooks shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add kubalajiri/claude-squirrel
Claude Code
/plugin install squirrel

Made for: Claude Code.

Or install squirrel, the plugin that ships this one along with the rest of its 1 skill, 37 commands, 6 hooks.

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 squirrel-layout

README.md
[![agentmods](https://agentmods.dev/badge/commands/kubalajiri/claude-squirrel/squirrel-layout.svg)](https://agentmods.dev/commands/kubalajiri/claude-squirrel/squirrel-layout)
Your own site
<a href="https://agentmods.dev/commands/kubalajiri/claude-squirrel/squirrel-layout"><img src="https://agentmods.dev/badge/commands/kubalajiri/claude-squirrel/squirrel-layout.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 482 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.00027 $0.00482
Opus 5 $0.00014 $0.00241
Sonnet 5 $0.00005 $0.00096
Haiku 4.5 $0.00003 $0.00048

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

Security

Grade A, and why

squirrel-layout 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 6d 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.

plugin/commands/squirrel-layout.md · 34 lines

What it actually says

Run this exact command with the Bash tool and show the user its output verbatim:

sh "${CLAUDE_PLUGIN_ROOT}/scripts/squirrel.sh" --layout "$ARGUMENTS"

With no arguments this prints the layout line by line, each segment followed by its drop priority — the rank that decides what survives when the pane gets narrow, higher surviving longer, always never dropped — plus protected for the two segments that can never be removed (account, model), off for a segment hidden with /squirrel-show, and the list of registered segments that are not placed on any line.

Lines and positions are numbered from 1. The layout can have any number of lines: one, two (the shipped arrangement), four — Claude Code prints whatever the status line emits.

  • move <segment> <line> [position] — move one segment; a line number one past the end creates a new line, and an omitted position appends to the end of that line.
  • line <n> <segment> <segment> ... — set one whole line at once; the named segments are removed from wherever else they were.
  • swap <a> <b> — exchange two whole lines.
  • priority <segment> <n|always> — how hard that segment clings to a narrow pane.
  • reset — restore the shipped layout and discard every priority override.

Every edit is surgical: it rewrites only the layout, never the rest of the user's config, and is validated before anything is written. An unknown segment id, a line number out of range, or an edit that would leave account or model unplaced is refused with a message and nothing is written. Never construct or write the layout / segmentPriority config keys by hand — always go through this command.

Do not do anything else.

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. 6d ago First seen · 34 lines · 0 tokens per session scan A e9d17dec481e

Subscribe to this mod's changes

squirrel-layout is a command published in the GitHub repository kubalajiri/claude-squirrel (2 stars, last pushed 11d ago), licensed MIT. It adds 27 tokens to every session and 482 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-31.