Stratagem System — Current Implementation (29 Stratagems)
Stratagem.php currently contains 29 stratagems (锦囊), organized into the following categories:
Data Processing
| Stratagem | Description | |------|------| | sg_base64 | Base64 encode/decode | | sg_json | JSON processing | | sg_xml | XML processing | | sg_csv | CSV processing | | sg_hash | Hash computation | | sg_truncate | Text truncation | | sg_validate | Data validation | | sg_slug | URL slug generation |Web Search
| Stratagem | Description | |------|------| | sg_duckduckgo | DuckDuckGo search | | sg_yacy | YaCy distributed search | | sg_newser | News aggregation and summary | | sg_bocha | Bocha AI search | | sg_http | HTTP requests |File Operations
| Stratagem | Description | |------|------| | sg_file | File read/write | | sg_template | Template rendering | | sg_editor | Editing and review |Browser / CDP
| Stratagem | Description | |------|------| | sg_cdp | Chrome DevTools Protocol |Proxy / Sub-Agent
| Stratagem | Description | |------|------| | sg_subagent_llm | Independent LLM sub-agent | | sg_steward | Steward (planning and management) | | sg_agent_core | Agent core components | | sg_longwriter | Long-form writing |Utilities
| Stratagem | Description | |------|------| | sg_datetime | Date and time | | sg_random | Random numbers | | sg_uuid | UUID generation | | sg_memoize | Memoization cache | | sg_retry | Retry mechanism | | sg_env | Environment variables | | sg_yonglelib | Yongle Academy library | | sg_go_expert | Go expert |--- *Source: Stratagem.php / stratagems directory*