claude

knap

Haiku→Sonnet orchestration via hook-based routing, RTK and Caveman — chip away what you don't need

0 on GitHubby Luys Fernnandov0.1.0AGPL-3.0updated 3 months agoproductivity
/

Plugin knap from marketplace luysfernnando-plugins in luysfernnando/Knap. Commands read from the repo's manifest — 1 month ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Slash commands (6)

  • /knap:downgrade

    Force the cheapest tier — haiku at low effort — bypassing the router score. Use for tasks you know are trivial.

  • /knap:implement

    Force implementation on sonnet-implementer (medium effort), bypassing the router score.

  • /knap:investigate

    Force exploration on the explorer subagent (haiku), bypassing the router score.

  • /knap:router-status

    Show router escalation state for this project — files touched, last severity, pending failure counters.

  • /knap:setup

    Interactively configure the Knap statusline. Asks before changing anything; declining is fine.

  • /knap:stats

    Show real Haiku vs Sonnet token usage this session and estimated USD saved by routing to Haiku.

Subagents (6)

  • cli-runner

    Runs CLI commands — git status, test suites, linters, build commands, log inspection. Use for routine command execution that doesn't require editing files. Not for tasks that need code changes.

  • explorer

    Read-only codebase exploration — finding files, symbols, definitions, usages. Use for "where is X", "what calls Y", "map this directory". Never used for edits or judgment calls about design.

  • haiku-fast

    Cheapest possible tier — haiku at low effort. Only reachable via /knap:downgrade, never chosen by the orchestrator's own judgment or by the router's score.

  • reviewer

    Read-only diff/branch/file review. Use for "review this PR", "review my diff", "audit this file". Never edits code.

  • sonnet-critical

    Last-resort implementer for tasks where sonnet-implementer already failed. Only invoked by router-escalation.sh's failure counter — never chosen directly by the orchestrator's own judgment.

  • sonnet-implementer

    Implements code changes — edits, new files, multi-file changes, architecture work. This is the default escalation target when router-escalation.sh decides a task needs more than Haiku.

Hooks (6)

  • SessionStart

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/knap-activate.sh

  • UserPromptSubmit

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/knap-track.sh

  • PreToolUse

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/block-opus.sh

  • PreToolUse

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/router-escalation.sh

  • PostToolUse

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/rtk-severity-flag.sh

  • PostToolUse

    ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session-metrics.sh

View source on GitHub

Similar plugins

caveman

claude

Talk like caveman. Cut filler. Keep technical details explicit.

22 skills · 1 command · 3 agents · hooks

JuliusBrussee/caveman 119,462

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

Taste Skill

claudecodex

tasteskill 2.5.1: professional company websites at the figma.com and x.ai level, with one section per screen, real photographs, real product UI, effects kept for tech and gaming pages, and a real-browser checker and finish gate.

1 skill

Leonxlnx/taste-skill 114,391

career-ops

claudecodex

Open-source AI job search that runs locally in your AI coding CLI: scan job portals, evaluate listings into a structured A-H report with a 1-5 score, tailor your CV, track applications

5 skills · hooks

career-ops-hq/career-ops 82,253

mem0

claudecodex

Cross-session memory and token savings for coding agents.

6 skills · 1 agent · 1 MCP server · hooks

mem0ai/mem0 68,893

pake

claudecodex

Package any website or local web build into a lightweight desktop app with Pake CLI.

1 skill

tw93/Pake 63,463

Maintain knap?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex pluginslisted