docs/tools/HOWTO-CHECKUSAGE-LINUX.md
Standard: DSOM For My AI Protocol v6.1 | Context Monitoring
Tool: tools/check-usage.sh | Version: v8.6 | Platform: Linux / WSL2 (T2)
1. Purpose
check-usage.sh is the Bash port of the Sovereign Session Monitor. It reads the .pb conversation context files stored by Antigravity in the Linux $HOME directory and provides real-time health metrics.
Use it to:
- Monitor the context growth of your active Linux-based AI sessions.
- Identified “Dormant” sessions taking up disk space in WSL.
- Forecast API rate limit risks based on Velocity (MB/min growth).
- Maintain a stable, high-density development environment on Tier 2 nodes.
tools/check-usage.sh
Monitors: $HOME/.gemini/antigravity/conversations/*.pb
2. Prerequisites
3. Usage
3.1 Snaphost (Run Once)
3.2 Live Monitor (Loop Mode)
3.3 Full Syntax
4. Reading the Output & Status Codes
5. Token Estimation
The tool uses the standard DSOM 6.1 tokenization heuristic:1 MB ≈ 62,500 tokens
This assumes an average of 4 characters per token across a binary .pb payload.
6. Integration with the Daily Rituals
Run this tool on your WSL2 node during the Start-of-Day Ritual to ensure that your T2 context isn’t fragmented or bloated before beginning Ansible operations. If your active session is marked[CRT], consider starting a fresh “Project” session.
7. Related Documents
Standard: DSOM For My AI Protocol v6.1 | Harisfazillah Jamel | LinuxMalaysia Document Version: v1.0 | Created: 2026-04-08
Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-07-04 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0