Skip to main content
This operational guide provides step-by-step instructions for running and maintaining OpenWiki knowledge graphs within the Deep State of Mind (DSOM) framework. Under Rule 27 (Native OpenWiki Emulator & Zero-Binary Mandate), all OpenWiki operations in ./openwiki/ are compiled natively in Python using uv.

🚀 1. Native Python CLI Modes (tools/openwiki_emulator.py)


💡 2. Architectural Advantages of Native Python Emulation

  1. Zero Node.js / C++ Dependencies: No npm, pnpm, bun, or Visual Studio C++ Build Tools (better-sqlite3) required.
  2. Zero UAC Elevation Hangs: Runs background automation non-interactively without Windows UAC prompts.
  3. API Rate Limit Resilience (Error 429 Mitigation): If external LLM API rate limits hit during CLI execution, the AI agent uses local context to draft all 10 OKF-compliant wiki pages directly into ./openwiki/.
  4. Massive Disk Space Reclamation: Reclaims ~135.3 MB of disk space, reducing overall repository footprint to ~30.84 MB.

🛠️ 3. How to Build Your Own OpenWiki Emulator (Code & Prompt Template)

If you are setting up OpenWiki emulation on another repository or project, follow this guide.

A. The Native Python Script (tools/openwiki_emulator.py)

Save the following code as tools/openwiki_emulator.py in your repository root:

B. Prompt Template for Copying to AI Agents (Gemini, ChatGPT, Claude)

Use this prompt to instruct an AI assistant to build or adapt an OpenWiki emulator script for any project:

🔗 4. References


Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-08-09 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0