# Planck.Agent v0.1.8 - Table of Contents

> OTP-based agent runtime built on top of planck_ai

## Pages

- [Planck.Agent](readme.md)
- [Changelog](changelog.md)

## Modules

- [Planck.Agent](Planck.Agent.md): OTP-based LLM agent.
- [Planck.Agent.AgentSpec](Planck.Agent.AgentSpec.md): Static, serializable agent definition.
- [Planck.Agent.BuiltinTools](Planck.Agent.BuiltinTools.md): Factory functions for the built-in tools: `read`, `write`, `edit`, `bash`.
- [Planck.Agent.ExternalTool](Planck.Agent.ExternalTool.md): Loads external tool definitions from `TOOL.json` files on the filesystem.
- [Planck.Agent.Hooks.Compactor](Planck.Agent.Hooks.Compactor.md): Behaviour and default implementation for context compaction in `Planck.Agent`.
- [Planck.Agent.Hooks.Prompt](Planck.Agent.Hooks.Prompt.md): Behaviour for injecting dynamic content into an agent's system prompt.
- [Planck.Agent.Hooks.TurnEnd](Planck.Agent.Hooks.TurnEnd.md): Behaviour for post-turn reflection in `Planck.Agent`.
- [Planck.Agent.Message](Planck.Agent.Message.md): An agent-side message with metadata.
- [Planck.Agent.MessageBuilder](Planck.Agent.MessageBuilder.md): Pure functions for constructing `Planck.Agent.Message` values.
- [Planck.Agent.Session](Planck.Agent.Session.md): Persistent session store backed by SQLite.
- [Planck.Agent.SessionStore](Planck.Agent.SessionStore.md): Database operations for an agent's conversation history.
- [Planck.Agent.Sidecar](Planck.Agent.Sidecar.md): Behaviour and utilities for sidecar applications that extend planck_headless
over distributed Erlang.
- [Planck.Agent.Skill](Planck.Agent.Skill.md): Filesystem-based agent skills.
- [Planck.Agent.SkillIndex](Planck.Agent.SkillIndex.md): Holds all skill-related state for a running agent.
- [Planck.Agent.SkillUsage](Planck.Agent.SkillUsage.md): Per-project SQLite database tracking skill usage per agent type.
- [Planck.Agent.StreamBuffer](Planck.Agent.StreamBuffer.md): Accumulates the output of a single LLM stream turn.
- [Planck.Agent.Supervisor](Planck.Agent.Supervisor.md): Top-level supervisor for the `planck_agent` runtime.
- [Planck.Agent.SystemPrompt](Planck.Agent.SystemPrompt.md): Assembles the runtime system prompt for an agent.
- [Planck.Agent.Team](Planck.Agent.Team.md): A named collection of agents that share a `team_id` and can address each
other via the inter-agent tools.
- [Planck.Agent.Tool](Planck.Agent.Tool.md): An executable tool for use in agent turns.
- [Planck.Agent.ToolRunner](Planck.Agent.ToolRunner.md): Tracks in-flight tool executions and accumulates their results.
- [Planck.Agent.Tools](Planck.Agent.Tools.md): Factory functions for built-in inter-agent tools.
- [Planck.Agent.TurnContext](Planck.Agent.TurnContext.md): Pure queries over an agent's in-memory message history.
- [Planck.Agent.TurnState](Planck.Agent.TurnState.md): Tracks the agent's turn counter and checkpoint stack.
- [Planck.Agent.Usage](Planck.Agent.Usage.md): Accumulated token usage and cost for an agent session.

