From fewword
Use this skill when tool outputs exceed 2000 tokens, tasks span multiple conversation turns, sub-agents need to share state, context window is bloating, plans need to persist across summarization, terminal/log output needs selective querying, or when user mentions "offload context", "dynamic context discovery", "filesystem memory", "scratch pad", "reduce context bloat", or "just-in-time context loading".
How this skill is triggered — by the user, by Claude, or both
Slash command
/fewword:fewwordThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The filesystem provides a single interface for storing, retrieving, and updating effectively unlimited context. This addresses the fundamental constraint that context windows are limited while tasks often require more information.
The filesystem provides a single interface for storing, retrieving, and updating effectively unlimited context. This addresses the fundamental constraint that context windows are limited while tasks often require more information.
Core insight: Files enable dynamic context discovery—pull relevant context on demand rather than carrying everything in the context window.
v1 Feature: Bash commands are automatically intercepted and their output is offloaded to files when large. You will see a pointer and preview instead of full output.
project/
└── .fewword/ # All plugin data in one namespace
├── scratch/ # Ephemeral (auto-cleaned hourly)
│ ├── tool_outputs/ # Offloaded command outputs
│ └── subagents/ # Agent workspace files
├── memory/ # Persistent (survives cleanup)
│ ├── plans/ # Archived completed plans
│ ├── history/ # Archived sessions
│ ├── patterns/ # Discovered patterns
│ └── preferences.yaml # User preferences
├── index/ # Metadata tracking
│ ├── current_plan.yaml # THE canonical active plan
│ ├── tool_log.jsonl # Tool execution log
│ └── mcp_metadata.jsonl # MCP tool metadata
└── DISABLE_OFFLOAD # Create to disable auto-offloading
If automatic offloading causes issues:
touch .fewword/DISABLE_OFFLOADexport FEWWORD_DISABLE=1When you run a Bash command, the plugin automatically:
[FEWWORD_SUMMARIZE] markerWhat you see for large output:
[FEWWORD_SUMMARIZE]
file: .fewword/scratch/tool_outputs/pytest_20250107_143022_a1b2c3d4.txt
command: pytest tests/ -v
bytes: 45678
lines: 1234
exit_code: 0
chunks: 1
lines_per_chunk: 1234
=== First 10 lines ===
...preview...
... (spawn 1 subagent to summarize full output) ...
=== Last 10 lines ===
...preview...
[/FEWWORD_SUMMARIZE]
IMPORTANT - When you see [FEWWORD_SUMMARIZE]:
Check the chunks field to determine how many subagents to spawn:
Spawn one subagent to read and summarize the full output:
Task tool:
subagent_type: "general-purpose"
prompt: "Read the file at {file_path} and provide a comprehensive summary.
The file contains output from: {command}
Focus on: errors, warnings, key results, and actionable items.
Return a structured summary that captures all important information."
Spawn N subagents in parallel (in a single message), each reading a different portion:
# For chunks: 3, lines: 3000, lines_per_chunk: 1000
Task 1 (lines 1-1000):
subagent_type: "general-purpose"
prompt: "Read lines 1-1000 of {file_path} using: sed -n '1,1000p' {file_path}
Summarize this chunk. Command was: {command}"
Task 2 (lines 1001-2000):
subagent_type: "general-purpose"
prompt: "Read lines 1001-2000 of {file_path} using: sed -n '1001,2000p' {file_path}
Summarize this chunk. Command was: {command}"
Task 3 (lines 2001-3000):
subagent_type: "general-purpose"
prompt: "Read lines 2001-3000 of {file_path} using: sed -n '2001,3000p' {file_path}
Summarize this chunk. Command was: {command}"
After all chunk summaries return, synthesize them into a final summary.
This ensures no subagent's context is exceeded while capturing all information.
Skipped commands (v1 conservatively skips):
>, 2>, | tee, | less<<|.fewword/index/mcp_metadata.jsonlFor long-horizon tasks, use the canonical active plan:
# .fewword/index/current_plan.yaml
objective: "Refactor authentication module"
status: in_progress
steps:
- id: 1
description: "Audit current auth endpoints"
status: completed
- id: 2
description: "Design new token validation"
status: in_progress
- id: 3
description: "Implement and test"
status: pending
memory/plans/Sub-agents write findings directly to filesystem instead of message passing:
.fewword/scratch/subagents/
├── research_agent/
│ ├── findings.md
│ └── sources.jsonl
├── code_agent/
│ ├── changes.md
│ └── test_results.txt
└── synthesis.md
When context window fills:
.fewword/memory/history/session_{id}.txt| Tool | Use Case | Example |
|---|---|---|
ls / find | Discover structure | find .fewword -name "*.txt" -mmin -30 |
grep | Content search | grep -rn "error" .fewword/scratch/ |
head/tail | Boundary reads | tail -100 .fewword/scratch/tool_outputs/log.txt |
sed -n | Line ranges | sed -n '50,100p' file.txt |
For detailed implementation patterns, see:
references/implementation-patterns.md - Code examples for each patternreferences/cleanup-strategies.md - Scratch file lifecycle managementnpx claudepluginhub p/friday-james-fewword-plugins-fewwordGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Synthesizes the current conversation into a structured spec (PRD) and publishes it to the project issue tracker with a ready-for-agent label, without interviewing the user.