Agent Architecture
AAgents SDK
agents-sdk
Build stateful AI agents with scheduling, RPC, and MCP servers on Cloudflare's platform.
recursive-decomposition
Handle 100+ file, 50K+ token tasks through recursive decomposition into manageable subtasks.
Install
npx skills add massimodeluisa/recursive-decomposition
SKILL.md
Consult these resources as needed:
CRITICAL: Treat inputs as environmental variables, not immediate context.
Most tasks fail when context is overloaded. Instead of loading entire contexts into the processing window, treat inputs as environmental variables accessible through code execution. Decompose problems recursively, process segments independently, and aggregate results programmatically.
Progressive Disclosure: Load information only when necessary. Start high-level to map the territory, then dive deep into specific areas.
grep or glob before view_file on directories.CRITICAL: Do NOT read large files directly into context.
wc -l (lines) or ls -lh (size) before view_file.view_file with start_line/end_line or head/tail.grep -n "function" ...) then read specific bodies.grep / glob not ls -R (unless mapping structure).view_file with line ranges (offset/limit) not full file reads for huge files.wc -l / ls -lh before reading unknown files.run_command (grep) not read_file for searching.task tool for sub-agents (recurse).To maximize effectiveness:
Balance thoroughness against computational cost. For time-sensitive tasks, apply aggressive filtering. For comprehensive analysis, prefer exhaustive decomposition.
Narrow the search space before detailed processing:
# Instead of reading all files into context:
1. Use Grep/Glob to identify candidate files by pattern
2. Filter candidates using domain-specific keywords
3. Only deeply analyze the filtered subset
Apply model priors about domain terminology to construct effective filters. For code tasks, filter by function names, imports, or error patterns before full file analysis.
Partition inputs for parallel or sequential sub-processing:
Process each chunk independently, then synthesize results.
For generating long outputs:
1. Break output into logical sections
2. Generate each section independently
3. Store intermediate results (in memory or files)
4. Stitch sections together with coherence checks
Invoke sub-agents (via Task tool) for independent segments:
For large analysis:
1. Partition the problem into independent sub-problems
2. Launch parallel agents for each partition
3. Collect and synthesize sub-agent results
4. Verify synthesized answer if needed
Mitigate context degradation by verifying answers on smaller windows:
1. Generate candidate answer from full analysis
2. Extract minimal evidence needed for verification
3. Re-verify answer against focused evidence subset
4. Resolve discrepancies through targeted re-analysis
Task: "Find all error handling patterns in the codebase"
Approach:
*.ts, *.py, etc.)catch, except, Error, throw)Task: "What features are mentioned across all PRD documents?"
Approach:
*.md, *.txt in /docs)Task: "Summarize all TODO comments in the project"
Approach:
TODO/FIXME/HACK patternsRelated
Agent Architecture
Aagents-sdk
Build stateful AI agents with scheduling, RPC, and MCP servers on Cloudflare's platform.
Agent Architecture
Bloki-mode
Multi-agent autonomous startup system — orchestrates 37 AI agents to build and deploy a complete startup.
Agent Architecture
Smcp-builder
Guide for creating high-quality MCP servers to integrate external APIs and services with AI agents.
Agent tooling
This index is ours, and so is the tooling behind it. If your team wants agents that understand how your own systems actually work, that is a thing we build.
Contact the dock
One address, read by the people who would do the work. No intake form, no calendar link — just an email.
tphamdn@gmail.com