CLI Platform
When I need to manage projects, communicate with engineering, audit system health, or measure outcomes — drmg is the single control surface that works for both human operators and AI agents.
Why should I care?
Five cards that sell the dream
Same five positions. Different seat.
The operator sees one binary. The agent sees runtime introspection. The contributor sees enforced boundaries. The platform sees compounding extraction.
How did this get built?
Five cards that show the process
The pitch is the shape. The flow diagrams prove the thinking. The VV stories validate the value.
Problem
Dream team and agents interface with the stackmates system through the drmg CLI daily — plan dashboard, comms read/post, audit, measure, data gaps. The CLI works but doesn't report what operators need: plans drift without stale warnings, dashboards show plan IDs not project names, merged PRs leave plan DB out of sync, session boundaries aren't queryable, and error messages assume you already know the fix.
An agent-grade CLI control surface scored 16/20 on the 10-dimension CLI Standard — structured I/O, runtime introspection, context discipline, input hardening, safety rails, response safety, packaged guidance, multi-surface coherence, headless auth, and failure design.
The CLI was built to solve engineering problems (monolith decomposition, boundary enforcement). Operator and agent needs were bolted on, not designed in. Dashboard output is plan-centric, not project-centric. Error recovery requires tribal knowledge. No batch operations. No staleness detection.
Reframing a working CLI from 'does it run commands' to 'does it give operators and agents the information they need to make decisions' — without breaking 60+ commands agents depend on daily.
Scorecard
Priority (5P)
Readiness (5R)
What Exists
| Component | State |
|---|---|
| drmg unified binary | Working |
| libs/cli-platform | Working |
| Plan CLI (decomposed) | Working |
| ETL CLI (absorbed) | Working |
| Comms CLI (absorbed) | Working |
| ESLint boundary rule | Working |
| drmg describe | Working |
Relationships
| PRD | Contributes |
|---|---|
| Agent Platform | Parent platform this instrument serves. Agents use drmg for all CLI operations. |
| Project Management | Plan-cli is the most-used CLI. Decomposition was driven by plan-cli's 3,826-line monolith. |
| ETL Data Tool | ETL CLI absorbed into drmg. 8 live pipelines share platform lib. |
CLI Standard score drops below 12/20 for two consecutive sprints, or agents abandon drmg for direct script calls. Neither has triggered.
Questions
If the CLI is the control surface for the entire system, what's the cost of every operator workaround that should be a command?
- How many decisions per session are delayed because the dashboard requires 4 commands instead of 1?
- What's the cost of plan-DB drift — measured in wrong priorities acted on, not minutes to sync?
- If an agent can't distinguish 'no messages' from 'connection broken', what decisions does it make on false data?