iiRecord
Agentic AI Atlas · GAP-OBS-005: Context Introspection
page:docs-harness-features-backlog-gaps-observability-gap-obs-005a5c.ai
II.
Page reference

page:docs-harness-features-backlog-gaps-observability-gap-obs-005

Reading · 1 min

GAP-OBS-005: Context Introspection reference

Provide real-time visibility into token usage, context window utilization, and cost during active orchestration, not just post-hoc analysis.

Pagewiki/docs/harness-features-backlog/gaps/observability/GAP-OBS-005.mdOutgoing · 0Incoming · 1

GAP-OBS-005: Context Introspection

FieldValue
Categoryobservability
PriorityMedium
EffortM
StatusPartial

Description

Provide real-time visibility into token usage, context window utilization, and cost during active orchestration, not just post-hoc analysis.

Current State

tokens:stats provides post-hoc analysis. compression:status shows compression layer state. No real-time visibility during active orchestration.

Target State

Real-time token usage per iteration. Context window utilization percentage. Cost accumulation visible in embedded SDK dashboard. Threshold-based warnings when approaching limits.

Dependencies

Key Files

ComponentPath
Token statspackages/sdk/src/cli/
Compression modulepackages/sdk/src/compression/
Embedded SDK dashboard (new)packages/sdk/src/dashboard/

Recommendation

Phase 3 implementation. Accumulate token counts from task results in real-time. Display in embedded SDK dashboard with threshold warnings.