# ContextItem

**Kind:** Interface

**Source:** [`atloria-monorepo/libs/agent-core/src/context/context-manager.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/context/context-manager.ts#L12)

Context Manager

Generic context window management:
- Token tracking per turn
- Auto-compaction at configurable threshold
- Pluggable compaction strategy

Zero SDK imports — operates on our own interfaces.

## Properties

| Property | Type |
|---|---|
| `id` | `string` |
| `role` | `'system' | 'user' | 'assistant' | 'tool'` |
| `content` | `string` |
| `turn` | `number` |
| `tokenEstimate` | `number` |
| `tags` | `string[]` |
