Skip to content
Development
Command

/focus

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

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

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/focus

Context preview

What this command does when you run it.

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

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.

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.

Get the whole plugin
Stats
98
Stars
11
Forks
Maintained
Maintenance
Python
Language
MIT
License
4mo ago
Last commit
5mo ago
Created

Repo: abhisekjha/pith

Other commands on pith.

pith-graph
Command

pith-graph

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

@abhisekjha@abhisekjhaView Command