一键导入
golem-view-agent-logs
Viewing agent logs and output. Use when streaming agent stdout/stderr/log channels or understanding how to observe agent output at runtime.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Viewing agent logs and output. Use when streaming agent stdout/stderr/log channels or understanding how to observe agent output at runtime.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Adding secrets to MoonBit Golem agents. Use when the user asks to add secret values, API keys, or sensitive configuration to a MoonBit agent.
Adding secrets to Rust Golem agents. Use when the user needs to store sensitive configuration such as API keys, passwords, or tokens that should not be checked into source control.
Adding secrets to Scala Golem agents. Use when the user asks to add secret values, API keys, passwords, or sensitive configuration to a Scala Golem agent.
Adding secrets to TypeScript Golem agents. Use when the user asks to add secrets, store API keys, manage sensitive config values, or use Secret<T> in TypeScript agents.
Adding or changing application manifest JSON schema versions and aligning CLI schema references.
Adding or modifying WIT (WebAssembly Interface Types) interfaces. Use when changing .wit files, updating WIT dependencies, or working with component interfaces.
| name | golem-view-agent-logs |
| description | Viewing agent logs and output. Use when streaming agent stdout/stderr/log channels or understanding how to observe agent output at runtime. |
Both golem and golem-cli can be used — all commands below work with either binary.
agent invoke — Log Streaming During InvocationBy 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...]
| 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 text streamed output. Structured formats still include level. |
--stream-no-timestamp | Hide timestamps from text streamed output. Structured formats still include timestamp. |
--logs-only | Only show entries coming from the agent — suppress invocation markers and stream status messages/events. |
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.
Streaming commands emit multiple structured output documents, one document per event. For JSON and YAML, parse stdout as a sequence of documents, not as one array or object.
When golem or golem-cli is run with --format toon, structured stdout is emitted as a sequence of framed TOON documents:
@toon
<one TOON document>
@end
Parse stdout by splitting on exact @toon and @end marker lines. The content between them is one TOON document. In non-text formats, stderr may contain progress or diagnostic text and should not be parsed as the structured payload.
Stream events use $type: "agent.stream" and a rich event shape with common fields such as timestamp, kind, level, context, and message. Agent-facing code should branch on kind rather than parsing the message text. Typical kind values include log, stdout, stderr, stream-closed, stream-error, invocation-started, invocation-finished, and missed-messages.
--stream-no-log-level and --stream-no-timestamp affect only text output. In structured formats (json, yaml, toon), level and timestamp fields are always present for reliable parsing.
Disable streaming and only get the result:
golem agent invoke ... --no-stream
Clean log output without timestamps or levels:
golem agent invoke ... --stream-no-timestamp --stream-no-log-level
Show only agent-emitted output:
golem agent invoke ... --logs-only
agent stream — Live Stream an Agent's OutputConnect 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.
| Flag | Description |
|---|---|
--stream-no-log-level | Hide log levels from text output. Structured formats still include level. |
--stream-no-timestamp | Hide timestamps from text output. Structured formats still include timestamp. |
--logs-only | Only show agent-emitted entries, suppress invocation markers and stream status messages/events. |
The <AGENT_ID> format depends on the agent's language — refer to the language-specific invocation skills for the exact syntax.
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