golem-stateless-agent-ts

Build ephemeral stateless TypeScript agents using Golem's ephemeral mode.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you create stateless (ephemeral) TypeScript agents in a Golem project so each invocation starts cleanly without relying on persisted memory or durable replay.

Core Features & Use Cases

  • Ephemeral agent mode: Use { mode: "ephemeral" } to ensure a fresh instance per invocation, with no shared state between calls.
  • Stateless request-handler pattern: Ideal for turning agent logic into pure request/response handlers such as API endpoints or webhook receivers.
  • No persistence, optional oplog inspection: The oplog is recorded lazily for debugging (e.g., golem agent oplog) but is not used for replay-based recovery.

Quick Start

Create an agent class in TypeScript and enable ephemeral behavior by setting { mode: "ephemeral" } in the @agent() decorator, then implement your handler methods that compute results from each input.

Frequently Asked Questions about golem-stateless-agent-ts

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

FAQPage Schema
How do I create a stateless TypeScript agent in Golem for handling HTTP requests?

To create a stateless TypeScript agent in Golem, use the @agent() decorator with { mode: "ephemeral" }. This ensures a fresh instance per invocation, ideal for independent HTTP request handlers without relying on persisted memory.

What is ephemeral mode in Golem agents and when should I use it?

Ephemeral mode in Golem agents ensures each invocation starts cleanly with a fresh instance and no shared state. Use it for pure request/response handlers like API endpoints, webhook receivers, or validation services where calls must be independent.

Does Golem ephemeral agent mode support durable state replay for recovery?

Golem ephemeral agent mode does not use replay-based recovery or persisted memory. An oplog is recorded lazily for debugging via `golem agent oplog`, but it is not used to restore state across invocations.

Can I use a Golem stateless agent for pure data transformation and validation services?

Yes, Golem stateless agents are ideal for pure transformation and validation services. By setting { mode: "ephemeral" }, methods compute outputs directly from inputs without relying on stored state across independent calls.

How do I ensure each request to my TypeScript agent is processed independently?

To ensure each request is processed independently, define your TypeScript agent with { mode: "ephemeral" } in the Golem decorator. This prevents shared state between calls, treating each invocation as a fresh instance.