python-heredoc-fallback
Use shell Python heredoc as fallback when code sandbox fails
Essential command-line tools and system utilities.
Use shell Python heredoc as fallback when code sandbox fails
Leverage shell_agent for autonomous file creation and modification with automatic tool selection and error recovery
Delegate file generation to shell_agent when direct tools fail, with systematic file location and retrieval
Generate documents with write_file when retrieval tools fail, with explicit guardrails against task context drift
Debug Python code execution failures by capturing partial traces, isolating failing functions, and incrementally verifying outputs
Iteratively debug Excel structure with exploratory scripts before writing extraction logic
Report tool failures transparently and attempt minimal viable output with disclaimers
Debug Python PDF generation errors by using unbuffered output and stderr inspection to reveal actual tracebacks
Debug Python script execution failures by capturing full tracebacks and verifying working directory
Debug Python scripts with proper error surfacing and working directory verification
Debug Python script execution failures by capturing full output with exit codes and verifying working directory before file operations
Systematic Python debugging workflow for spreadsheet tasks to isolate environment issues from script logic
Handle web research failures with explicit error recognition and domain-specific fallback strategies
Fallback pattern when primary tools fail - embed known data in scripts and persist to JSON for auditability
Systematic debugging workflow for SSL/proxy connectivity issues with government and institutional websites
Verify a file's first N lines and total line count in one shell call using head and wc -l with an echo separator, minimizing read operations and shell iterations.
Diagnose and resolve file access issues by verifying directory structure, reading multiple files in parallel batches, running combined shell property checks (head/wc-l) in the same iteration as directory listing, and validating TypeScript import patterns — all with built-in guidance to minimize total iteration count.
Single cohesive workflow for creating complete dashboard panel features in vanilla TypeScript — covers project-structure exploration, server dispatch pattern detection and wiring (Express or manual http.createServer), Panel base class component authoring with CircuitBreaker resilience and localStorage persistence, panel registration in index.ts, and safe file writing (including emoji workarounds).
List and count directories in a path by filtering list_dir results for directory entries and excluding hidden/system files
TypeScript compile-checking in projects where npx and node_modules/.bin symlinks fail, with a filtering technique to isolate errors from only newly-created or task-specific files — ignoring pre-existing legacy errors.
Diagnose and resolve file access issues by verifying directory structure, then reading multiple files in parallel batches for efficient auditing, with built-in guidance for validating TypeScript import patterns.
Curated architecture index of the WorldMonitor open-source dashboard. Reference for extracting patterns — vanilla TypeScript, Panel class hierarchy, service layer, CSS grid, API edge functions, refresh scheduler, and 60+ data source integrations.
Domain specification for a personal daily monitoring dashboard. Defines all target panels (email, Feishu, Office, social, news, Twitter, code status, schedule, stock market, daily finance), their data sources, APIs, and priority ordering for incremental development.
Add visual features (thumbnails, badges, dynamic styling) to TypeScript components by coordinating TypeScript logic changes with CSS updates