# Interface ContextStats

Statistics about context usage.

interface ContextStats {
totalTokens: number;
categoryTokens: Record<ContextItemCategory, number>;
itemCounts: Record<ContextItemCategory, number>;
availableTokens: number;
isOverBudget: boolean;
overBudgetCategories: ("system" | "task" | "active")[];
usagePercentage: number;
}

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:120

##### Index

### Properties

totalTokens
categoryTokens
itemCounts
availableTokens
isOverBudget
overBudgetCategories
usagePercentage

## Properties

### totalTokens

totalTokens: number

Total tokens currently used

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:122

### categoryTokens

categoryTokens: Record<ContextItemCategory, number>

Tokens used per category

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:124

### itemCounts

itemCounts: Record<ContextItemCategory, number>

Number of items per category

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:126

### availableTokens

availableTokens: number

Available tokens (total - reserved)

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:128

### isOverBudget

isOverBudget: boolean

Whether any category is over budget

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:130

### overBudgetCategories

overBudgetCategories: ("system" | "task" | "active")[]

Categories that are over budget

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:132

### usagePercentage

usagePercentage: number

Percentage of total capacity used

- Defined in packages/nexus-agents/src/agents/context-manager-types.ts:134