Expand description
Shared context-efficiency contracts, guards, and process-local summary caches. Shared context-efficiency helpers for optional response metadata and local summaries.
Computes affected-file and returned-source byte estimates for MCP responses and optional
JSONL operator logs controlled by FRIGG_CONTEXT_EFFICIENCY_LOG.
Structs§
- Context
LogAggregate - Rolled-up context-efficiency counters across one or more workspace roots.
- Context
LogRoot Summary - Per-workspace-root summary of context-efficiency JSONL activity.
- Context
LogSummary - Multi-root context-efficiency summary for operator-facing reporting.
- Context
Summary Window - Inclusive time window used when aggregating context-efficiency JSONL logs.
Enums§
- Context
Summary Error - Failure modes when resolving summary windows or reading context logs.
Functions§
- summarize_
context_ logs_ for_ roots - Aggregates optional
.frigg/context.jsonlrows across workspace roots for one date window.