Skip to content
Development
Command

/focus

Load only the sections of a file relevant to the current question, reducing context noise

From plugin
pith
974 skills4 commands4 hooks
> /plugin marketplace add abhisekjha/pith
> /plugin install pith@pith

Command definition

focus.md
allowed-tools: Bash
description: Load only the sections of a file relevant to the current question, reducing context noise

Load only the sections of a file relevant to the current question.

**File:** $ARGUMENTS

The file path is passed via stdin in a single-quoted heredoc and read by focus.py from argv[1], so shell metacharacters in the path are treated as literal bytes:

python3 "${CLAUDE_PLUGIN_ROOT}/tools/focus.py" --stdin-path <<'PITH_EOF_7f3a9c2e'
$ARGUMENTS
PITH_EOF_7f3a9c2e

Show the relevant sections to the user. If no sections match, show the file structure overview.

@abhisekjha
Ships withpith

Status: stable — not actively adding features. Bug fixes welcome via issues. Token compression hooks for Claude Code. Install once, works in every session, zero config.

Stars on GitHub

Momentum

stars in total
97
Star history of abhisekjha/pith on GitHub, a chart by star-history.com

Other commands on pith.

budget

budget

Command

Set a hard token ceiling per response (e.g. /budget 100) or clear it (/budget off)

@abhisekjha@abhisekjhaInstall Command
pith-graph

pith-graph

Command

Run the Pith wiki graph generator for the current project. Scans wiki/ for .md files, extracts [[wikilinks]], and opens an…

@abhisekjha@abhisekjhaInstall Command
pith

pith

Command

Control Pith token compression modes and access structured output formats, wiki, and status

@abhisekjha@abhisekjhaInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command