bootspring observe

Session observability -- metrics, costs, and intelligence analysis.

Overview

The observe command provides real-time session tracking, cost analysis, and AI-powered intelligence insights. It tracks token usage, tool calls, timing, and patterns across sessions.

Usage

Loading code block...

Commands

CommandDescription
statusShow current session metrics
sessionsList all tracked sessions
costsShow cost tracking and projections
summaryShow aggregate stats across all sessions
exportExport all session data as JSON
onEnable observer (full mode)
offDisable observer
quietEnable quiet mode (tracking without context injection)
intelligenceRun full intelligence analysis on latest session
efficiencyShow efficiency score for latest session

Options

OptionDescription
--jsonOutput as JSON
--session <id>Target a specific session

Observer Modes

ModeDescription
onFull tracking + context injection into assistant prompts
quietTracking only, no context injection
offDisabled

Intelligence Modules

The intelligence subcommand runs 12 analysis modules:

  • Efficiency Scorer -- 6-dimension weighted score, 0-100 composite + letter grade
  • Session Fingerprint -- 16D feature vector, nearest-centroid classifier, 8 session types
  • Context Pressure -- Context window tracking and compaction prediction
  • Pattern Detector -- 8 anti-patterns (thrashing, retry storm, context bloat, tool misuse, etc.)
  • Drift Detector -- Change point detection via Jensen-Shannon divergence, phase summaries
  • Predictive Cost -- EWMA burn rate, linear regression, Monte Carlo 95% CI
  • Anomaly Detector -- Modified Z-score, CUSUM, IQR fencing, Grubbs' test
  • Time Series -- SMA, trend detection, change points, learning curve fitting
  • Session Comparator -- Per-metric comparison, significance testing, weighted Jaccard similarity
  • Cost Optimizer -- Waste analysis, model comparison (Opus/Sonnet/Haiku), monthly projection
  • Smart Alerts -- Dynamic thresholds, suppression, escalation, rate limiting
  • Intelligence Hub -- Module orchestrator, error isolation, insight synthesis

Examples

Loading code block...