Skip to content

docs(skill): slim the interactive-shell skill around the calls agents make - #92

Merged
nicobailon merged 2 commits into
mainfrom
docs/skill-diet
Oct 26, 2026
Merged

nicobailon merged 2 commits into
mainfrom
docs/skill-diet

Conversation

@nicobailon

Copy link
Copy Markdown
Owner

The bundled skill didn't reach most agents, and when it did, it taught the wrong defaults for the calls they make most.

  • The tool description and prompt guideline tell agents to load "the interactive-shell skill", but the bundled skill was named pi-interactive-shell. The README claimed an automatic symlink that no code creates.
  • At ~8.6k tokens, it led with hands-free supervision (11 of 3,401 logged calls in 60 days) and spent 1.6k tokens on Jev (0 calls). The hot path — headless dispatch of tests and CI watches, stream monitors for PR gates, queries, cleanup — was scattered, and its examples let dispatch auto-close on quiet, which ends gh run watch and silent test runs early.
  • Unknown inputKeys names were typed into the terminal as literal text and bad inputHex bytes were dropped silently, so the skill had to carry a full key table.

Changes:

  • Rename the skill to interactive-shell. SKILL.md is now ~1.8k tokens: a mode table, hot call shapes, and rules (quiet auto-close, 5-line wake-up tail, finished sessions are gone, worktrees for unattended agents, cleanup). Hands-free, agent launching, selected output, and Jev move to references/ behind one pointer list.
  • inputKeys rejects unknown names with suggestions, inputHex rejects malformed bytes, and key lookups no longer match prototype names like constructor.
  • Fix the README install sentence and skill name; the docs test now reads SKILL.md plus its references.

Before/after eval (14 tasks sampled from real calls, 3 runs each, claude-haiku-4-5, skill only, no tool schema):

version success tokens/run
old skill 25/42 13,144
new skill 35/42 7,049
no skill 1/42 3,112

The new skill matches or beats the old one on every task; the gains are CI watches, test runs, PR gates, and unattended delegation.

…t keys

Rename the bundled skill to interactive-shell (the name the tool description
and prompt guideline point to), lead with the hot path seen in 3,401 logged
calls (background dispatch, stream monitors, query/kill, cleanup), and move
hands-free, agent launch, output selection, and Jev detail to references.

Unknown inputKeys names were typed into the terminal as literal text and bad
inputHex bytes were dropped; both now error with suggestions, which lets the
named-key table leave the skill.

SKILL.md: 8,592 -> 1,702 tokens (chars/4).
Background dispatch wake-ups carry 5 lines, hands-free sends no running
updates, foreground dispatch keeps its session, monitor honors an explicit
autoExitOnQuiet, worktrees work for every spawn agent. Key lookups use
Object.hasOwn so prototype names like constructor are rejected.

SKILL.md: 8,592 -> 1,784 tokens (chars/4).
@nicobailon
nicobailon merged commit 129a839 into main Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant