# Context Management


**Version**: v0.1.0 | **Status**: Active | **Last Updated**: May 2026

**Module**: `codomyrmex.agents.context` | **Category**: Infrastructure | **Last Updated**: March 2026

## Overview

Repository indexing, project scanning, and context building for agents. Provides file tree analysis, dependency graph construction, and relevance-ranked context windows.

## Key Classes

| Class | Purpose |
|:---|:---|
| `ContextBuilder` | Project-aware context construction |
| `RepositoryIndexer` | File tree and dependency indexing |

## Usage

```python
from codomyrmex.agents.context import ContextBuilder

client = ContextBuilder()
```

## Source Module

Source: [`src/codomyrmex/agents/context/`](../../../src/codomyrmex/agents/context/)

## Navigation

- **Parent**: [docs/agents/](../README.md)
- **Source**: [src/codomyrmex/agents/context/](../../../src/codomyrmex/agents/context/)
- **Project Root**: [README.md](../../../README.md)

## Related Documents

- **Agents**: [AGENTS.md](AGENTS.md)
- **Spec**: `SPEC.md` is inherited from the nearest parent scope.
