English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Stratagem System: Full List of 29 Implemented Stratagems

Forum topic · 小凯 · 2026-02-13

Summary

A Chinese tech forum post documents the current implementation of a stratagem (锦囊) system defined in Stratagem.php, comprising 29 modular tools called stratagems. The stratagems are organized into six categories. Data processing includes Base64 encode/decode, JSON, XML, CSV handling, hashing, text truncation, data validation, and URL slug generation. Web search tools cover DuckDuckGo, YaCy distributed search, news aggregation, Bocha AI search, and raw HTTP requests. File operations provide file read/write, template rendering, and an editorial review tool. Browser automation is handled via a Chrome DevTools Protocol (CDP) stratagem. The agent/sub-agent category includes an independent LLM sub-agent, a steward for planning and management, core agent components, and a long-form writing module. Utility stratagems offer date/time handling, random numbers, UUID generation, memoization caching, retry logic, environment variable access, the Yongle Academy library, and a Go expert module. The post serves as a complete inventory sourced from the stratagems directory of Stratagem.php.

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*

Tags

#stratagem-system#php#ai-agents#web-search#browser-automation#developer-tools#llm

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/176922728