Golem schedule agent ts

From golemcloud/golem · View interactive version

Golem schedule agent ts is an AI agent skill from the GitHub repository golemcloud/golem. Scheduling a future invocation on a TypeScript Golem agent. Use when asked to schedule, delay, or plan a future agent method invocation using golem agent invoke --trigger --schedule-at.

How to use this skill

Skill file

Scheduling a Future Agent Invocation

Both golem and golem-cli can be used — all commands below work with either binary.

Usage

golem agent invoke --trigger --schedule-at <DATETIME> <AGENT_ID> <FUNCTION_NAME> [ARGUMENTS...]

The --schedule-at flag schedules the invocation to execute at a specific future time. It requires the --trigger flag because scheduled invocations are always fire-and-forget — the CLI returns immediately after the invocation is enqueued.

DateTime Format

The --schedule-at value must be in ISO 8601 / RFC 3339 format with a timezone:

2026-03-15T10:30:00Z          # UTC
2026-03-15T10:30:00+02:00     # With timezone offset

Examples

Schedule a method to run at a specific time

golem agent invoke --trigger --schedule-at 2026-03-15T10:30:00Z 'MyAgent()' runDailyReport

Schedule with parameters

golem agent invoke --trigger --schedule-at 2026-04-01T00:00:00Z 'BatchProcessor("daily")' generateReport '"Q1-2026"'

Schedule in a specific environment

golem agent invoke --trigger --schedule-at 2026-03-15T08:00:00Z 'production/NotificationAgent()' sendReminders

Schedule with an idempotency key for deduplication

golem agent invoke --trigger --schedule-at 2026-03-15T10:30:00Z -i 'report-2026-03-15' 'ReportAgent()' generateDaily

Available Options

| Option | Description |

|--------|-------------|

| -t, --trigger | Required with --schedule-at. Fire-and-forget mode |

| --schedule-at <DATETIME> | The time to execute the invocation (ISO 8601 / RFC 3339) |

| -i, --idempotency-key <KEY> | Set a specific idempotency key; use "-" for auto-generated |

| --no-stream | Disable live streaming of agent stdout/stderr/log |

How It Works

  1. The CLI sends the invocation request with the scheduled time to the Golem server
  2. The server enqueues the invocation to execute at the specified time
  3. The CLI returns immediately with the idempotency key
  4. At the scheduled time, the Golem runtime executes the invocation

Idempotency

Scheduled invocations use idempotency keys just like regular invocations. Providing the same idempotency key for a scheduled invocation ensures it is not executed more than once, even if the CLI command is retried.

Auto-Deploy

If the agent's component has not been deployed yet and the CLI is run from an application directory, the command will automatically build and deploy the component before scheduling.

Value Syntax

Pass one native argument per user-supplied input field in declaration order, not one JSON object wrapping the input map. Skip host-injected Principal fields; do not supply a principal value or placeholder. No-input methods take no arguments, not '{}'. --format json controls output only. Load golem-invoke-agent-ts for the string fallback and HTTP body rules; awaited, triggered, and scheduled invocations share the same CLI argument parser.

The constructor parameters and method arguments use TypeScript syntax:

This example assumes input: { config: z.object({ priority: z.number(), retry: z.boolean() }) }. The unquoted fields belong to the single config value, not to the input map:

golem agent invoke --trigger --schedule-at 2026-03-15T10:30:00Z 'MyAgent("user-123")' runTask '{ priority: 1, retry: true }'
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.