Viewing Agent Logs
Both golem and golem-cli can be used — all commands below work with either binary.
agent invoke — Log Streaming During Invocation
By default, agent invoke streams the agent's stdout, stderr, and log channels live while the invocation runs:
golem agent invoke <AGENT_TYPE_NAME> <AGENT_NAME> <FUNCTION_NAME> [ARGUMENTS...]Streaming flags
| Flag | Description |
|---|---|
--no-stream / -n | Disable live streaming entirely — only print the invocation result |
--stream-no-log-level | Hide log levels (e.g. INFO, ERROR) from streamed output |
--stream-no-timestamp | Hide timestamps from streamed output |
--logs-only | Only show entries coming from the agent — suppress invocation markers and stream status messages |
These flags can be appended to any agent invoke command. For the invocation syntax itself (agent ID, function name, arguments), refer to the language-specific invocation skills.
Examples
Disable streaming and only get the result:
golem agent invoke ... --no-streamClean log output without timestamps or levels:
golem agent invoke ... --stream-no-timestamp --stream-no-log-levelShow only agent-emitted output:
golem agent invoke ... --logs-onlyagent stream — Live Stream an Agent's Output
Connect to a running agent and live stream its stdout, stderr, and log channels via WebSocket. The stream reconnects automatically if the connection drops.
golem agent stream <AGENT_TYPE_NAME> <AGENT_NAME>This is useful for observing an agent that is already running or will be invoked separately.
Flags
| Flag | Description |
|---|---|
--stream-no-log-level | Hide log levels from output |
--stream-no-timestamp | Hide timestamps from output |
--logs-only | Only show agent-emitted entries, suppress invocation markers and stream status |
The <AGENT_ID> format depends on the agent's language — refer to the language-specific invocation skills for the exact syntax.
Examples
Stream all output from an agent:
golem agent stream <AGENT_ID>Stream only agent logs without decorations:
golem agent stream <AGENT_ID> --stream-no-timestamp --stream-no-log-level --logs-only