<!-- Last verified: 2026-04-05 by Claude Code -->
# Algorithms

This document has been split into smaller, maintainable files. See the [algorithms/](algorithms/README.md) directory for the full index.

## Quick Navigation

- **Core Loop:** [agent-loop](algorithms/core/agent-loop.md) | [run-loop](algorithms/core/run-loop.md) | [streaming](algorithms/core/streaming.md) | [tool-execution](algorithms/core/tool-execution.md)
- **Context:** [compaction](algorithms/context/compaction.md) | [decision-logic](algorithms/context/decision-logic.md)
- **Lifecycle:** [agent-lifecycle](algorithms/lifecycle/agent-lifecycle.md) | [concurrency](algorithms/lifecycle/concurrency.md)
- **Providers:** [retry](algorithms/providers/retry.md) | [error-classification](algorithms/providers/error-classification.md) | [sub-agent](algorithms/providers/sub-agent.md)
- **Tools:** [bash](algorithms/tools/bash.md) | [file-tools](algorithms/tools/file-tools.md) | [mcp](algorithms/tools/mcp.md) | [openapi](algorithms/tools/openapi.md)

For pseudocode conventions, see the [README](algorithms/README.md#pseudocode-conventions).
