TorusGuard Status — Workspace Security Posture & Diagnostic Overview
Objective
Provide an instant diagnostic summary of the repository's security state, active framework rules, historical run results, and runtime scope validity.
Two Execution Modes
Mode A: Automated CLI Execution
Run the diagnostic overview from your terminal:
# Display 75-column status cards
npx torusguard status
# Check status of specific project directory
npx torusguard status ./examples/vulnerable-react-express
# Output machine-readable JSON
npx torusguard status --json
Under the Hood:
- Evaluates
.torusguard/config/torusguard.jsonfor initialized status and detected stack. - Enumerates active rules in
.torusguard/rules/active/(or canonical 71 rules). - Scans
.torusguard/runs/for run history, finding counts, and verified fixes. - Inspects
.torusguard/config/scope.jsonfor authorized runtime validation targets. - Displays mathematically aligned 75-column terminal cards.
Mode B: In-Session AI Chat Agent Status Check
When checking workspace status in AI chat:
- Verify Workspace Setup: Check if
.torusguard/exists on disk. - Inspect Active Config: Read
.torusguard/config/torusguard.jsonfor detected stack, framework, and rules. - Inspect Latest Run: Find the latest run directory under
.torusguard/runs/and readmanifest.json. - Inspect Memory Engine: Check
.torusguard/memory/patterns.jsonfor captured Golden Fix Recipes. - Render Diagnostic Card: Present an overview of posture, stack, and recommended next steps.
Output Card Format
### 🛡️ TorusGuard Workspace Status Overview
- **Version:** v1.3.3 | **Stack:** Node.js / React / Express
- **Active Rules:** 71 canonical security rules enabled
- **Historical Runs:** 3 runs recorded
- **Golden Recipes:** 4 distilled into persistent memory
- **Overall Posture:** SECURE (All targeted vulnerabilities verified closed)