The logs command displays your automaton’s turn history, showing the agent’s thinking, tool usage, and costs for each execution turn.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Conway-Research/automaton/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Options
Number of recent turns to display
Examples
View Last 20 Turns (Default)
View Last 50 Turns
View Last 5 Turns
Output Format
Each turn displays:Output Fields
Turn Header
Sequential turn number (starts at 1)
ISO 8601 timestamp when the turn executed
Agent state during the turn:
running- Normal executionsleeping- Transitioning to sleepdead- Out of credits
Input
The trigger that caused this turn (truncated to 200 characters)
Where the input came from:
heartbeat- Scheduled heartbeat tasksocial- Social message receivedgenesis- Initial startup promptmanual- Manual trigger
Thinking
The agent’s reasoning for this turn (truncated to 500 characters)
Tools
For each tool call:Name of the tool that was called
Tool execution result (truncated to 100 characters) or error message
Metrics
Total tokens used (prompt + completion)
Cost in USD for this turn (computed from token usage and model pricing)
Example Output
No Logs Available
Use Cases
Debug Recent Behavior
See what your automaton has been doing:Track Tool Usage
Identify which tools are being called:Monitor Costs
Track spending over time:Find Errors
Look for failed tool calls:Log Retention
All turns are stored in the automaton’s SQLite database (~/.automaton/automaton.db). The logs command reads from the turns table in reverse chronological order.
There is no automatic log rotation - all turns are retained indefinitely. To clear logs, you would need to manually delete or archive the database.
Programmatic Access
For programmatic access to turn data, you can query the database directly:id- Turn numbertimestamp- ISO 8601 timestampstate- Agent stateinput- Input textinput_source- Input source typethinking- Agent reasoningtool_calls- JSON array of tool callstoken_usage- JSON object with token countscost_cents- Turn cost in cents
Related Commands
Status
Quick status overview with recent activity
Run
Start the automaton
Troubleshooting
No Configuration Found
automaton --setup to configure your automaton first.