Artifact Level: L1 (Synthesis) Status: Active Baseline, embed into all new DSOM projects. Audience: Any AI agent or human operator bootstrapping a new DSOM project.
Abstract
With this playbook, any new or existing DSOM project inherits the complete token efficiency architecture proven in thedeep-state-of-mind-for-my-ai baseline repository. The core finding: DSOM’s Progressive Disclosure, OKF frontmatter tagging, and Byte-Capped Executions reduce per-session context consumption by 96.23% versus monolithic document loading strategies.
1. The Core Problem This Solves
Every LLM agent has a finite context window. Without discipline, agents waste the majority of that window loading files they do not need, duplicate content, and verbose prose that could have been filtered at the frontmatter level. DSOM solves this at three layers:2. Mandatory Tools (Embed in Every Project)
2.1 Token Calculator Skill
Location:.agents/skills/dsom-token-calculator/
Usage:
[OK], file is safe to load wholesale into context[BLOCKED], file exceeds 4,000 tokens; useview_filewith line ranges only
2.2 Active Context Manifest
Location:.agents/brain/active_context_manifest.md
Update this file at every SOD ritual. The agent loads only the files declared here. Never load .agents/brain/ wholesale, three archival files alone contain 120,000+ tokens.
2.3 Token Auditor Script
Location:tools/dsom_token_auditor.py
Run for a full workspace token efficiency audit:
3. Mandatory OKF Frontmatter Standards
EverySKILL.md must contain these five fields in this order:
topics: matters:
The agent performs skill discovery by grepping only topics: and description: fields, never loading the full body. For 25 skills, this reduces discovery cost from ~14,400 tokens (full bodies) to ~375 tokens (frontmatter only). That is a 97.4% token reduction on every skill lookup.
Topics rules:
- 3–5 keywords maximum
- All lowercase, hyphenated for multi-word terms
- Must be placed immediately after
description:
4. Benchmark Results (T1 Node, Windows/NVMe)
Captured 2026-07-19 on the baseline repository:
Termux/T2 note: Android FUSE filesystem adds a benchmarked ~3.5× read latency multiplier (Samsung Note 10 empirical simulation via tools/bench_brain.py).
5. Rules Governing Token Efficiency (AGENTS.md)
These core rules enforce token discipline automatically:6. Procedures for New Project Bootstrap
When cloning this repository as a baseline for a new project, execute these steps to inherit full token efficiency:Step 1, Verify skill token health
[OK], zero [BLOCKED].
Step 2, Initialise active context manifest
Copy.agents/brain/active_context_manifest.md and update the ## Active Files section for your project’s domain.
Step 3, Run baseline token audit
docs/governance/DSOM-TOKEN-EFFICIENCY-REPORT.md.
Step 4, Verify all skills have topics: tags
YES. If any return MISSING, run the inject_topics.py remediation script from docs/governance/DSOM-INGESTION-LATENCY-ARCHITECTURE.md.
Step 5, Gate archival brain files
Identify any.agents/brain/ files exceeding 4,000 tokens and add them to the ## Excluded section of active_context_manifest.md with their token count annotated.
7. Anti-Patterns (Never Do This)
SOURCES
Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-07-19 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0