phi-core 0.7.1

Simple, effective agent loop with tool execution and event streaming
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!-- 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).