golem-logging-ts

Capture stdout and stderr from TypeScript Golem agents via console methods.

Updated May 17, 2026
One-click install
npx skills add https://github.com/Rust-soham/golem-claw --skill golem-logging-ts-rust-soham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golem-logging-ts
Source: https://github.com/Rust-soham/golem-claw/tree/main/packages/golem/.agents/skills/golem-logging-ts
Command: npx skills add https://github.com/Rust-soham/golem-claw --skill golem-logging-ts-rust-soham

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you see what a TypeScript Golem agent is doing in real time, so you can debug behavior, monitor execution, and diagnose failures from both normal output and error output.

Core Features & Use Cases

  • Console-based logging: Use the global console API (e.g., log/info/warn/error/debug) without extra setup.
  • Stdout and stderr capture: Golem captures both standard output and standard error and streams them into golem agent stream and golem agent invoke output.
  • Practical level selection: Map message intent to console methods (debug for details, warn for degraded situations, error for serious failures) including optional stack traces via console.trace.
  • Structured output: Emit JSON strings (or context-rich messages) to make logs easier to search and interpret.

Quick Start

Add calls like console.log, console.info, console.warn, or console.error inside your TypeScript agent code, then run golem agent stream '<agent-id>' to view the captured logs.

Frequently Asked Questions about golem-logging-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I view console output from a TypeScript Golem agent execution?

You can view console output from a TypeScript Golem agent by using standard console methods like log, info, warn, and error in your code, then running `golem agent stream` or `golem agent invoke` to see the captured stdout and stderr logs.

How do I debug a TypeScript agent running on Golem using console logging?

To debug a TypeScript agent on Golem, use standard console API methods such as console.debug for execution details or console.error for failures, and Golem will automatically capture the stdout and stderr to stream the logs for troubleshooting.

Does Golem capture stderr and stdout from TypeScript agents automatically?

Yes, Golem automatically captures both stderr and stdout generated by the standard console API in TypeScript agents, routing the output directly into the golem agent stream and golem agent invoke pipelines without requiring extra setup.

What is the best way to structure logs for a Golem TypeScript agent?

The best way to structure logs for a Golem TypeScript agent is to emit JSON strings or context-rich messages via console methods, which makes the captured stdout and stderr output significantly easier to search and interpret during monitoring.

Can I use console.trace to get stack traces in Golem agent logs?

Yes, you can use console.trace to emit optional stack traces within your TypeScript agent code, and Golem will capture this stderr output to help you diagnose execution failures and monitor behavior.

Why are my TypeScript agent logs not showing up in golem agent stream?

If your TypeScript agent logs are not showing up in golem agent stream, ensure you are using the global console API for output, as Golem specifically captures standard console stdout and stderr to emit logs to the stream.