Triggering a Fire-and-Forget Agent Invocation
SkillAI & modelsLets your agent start a background task on a Scala Golem agent without waiting for its result.
Use Triggering a Fire-and-Forget Agent Invocation in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Triggering a Fire-and-Forget Agent Invocation and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Triggering a Fire-and-Forget Agent Invocation skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
About this skill
Triggering a fire-and-forget invocation on a Scala Golem agent. Use when asked to trigger, enqueue, or fire-and-forget an agent method invocation using golem agent invoke --trigger.
What this skill tells your AI
The instructions your AI receives, as published by golemcloud/golem in golem-skills/skills/scala/golem-trigger-agent-scala/SKILL.md and read by Ahel’s review.
Both golem and golem-cli can be used — all commands below work with either binary.
Usage
golem agent invoke --trigger <AGENT_ID> <FUNCTION_NAME> [ARGUMENTS...]
The --trigger (or -t) flag sends the invocation request to the agent and returns immediately without waiting for the result. The invocation is enqueued and executed asynchronously by the Golem runtime.
When to Use Trigger
- When the caller does not need the return value
- When you want to start a long-running operation without blocking
- When enqueuing work for background processing
- When combined with
--schedule-atfor future execution
Examples
Trigger a method with no wait
golem agent invoke --trigger 'MyAgent()' startBackgroundJob '"job-123"'
Trigger in a specific environment
golem agent invoke --trigger 'staging/MyAgent("user-123")' sendNotification '"Your order is ready"'
Trigger with an explicit idempotency key
golem agent invoke --trigger -i 'job-run-2024-01-15' 'BatchProcessor()' runDailyReport
Available Options
| Option | Description |
|---|---|
-t, --trigger | Required. Trigger the invocation without waiting |
-i, --idempotency-key <KEY> | Set a specific idempotency key; use "-" for auto-generated |
--no-stream | Disable live streaming of agent stdout/stderr/log |
--schedule-at <DATETIME> | Schedule the invocation at a specific time (ISO 8601 format, e.g. 2026-03-15T10:30:00Z) |
Difference from Regular Invoke
golem agent invoke | golem agent invoke --trigger | |
|---|---|---|
| Waits for result | Yes | No |
| Returns value | Yes | Only the idempotency key |
| Streams output | Yes (by default) | No |
| Use case | Synchronous calls | Fire-and-forget / background work |
Idempotency
Triggered invocations also use idempotency keys. If the same idempotency key is used, the invocation will not be executed again.
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 triggering.
Value Syntax
The agent ID parameters and method arguments use Scala syntax:
- Field names use
camelCasewith=separator - Options:
Some(value)/None - Records:
MyRecord(fieldOne = 1, fieldTwo = "hello") - Variants:
MyEnum.VariantName(value) - Tuples:
(1, "hello")
golem agent invoke --trigger 'MyAgent("user-123")' sendEmail 'EmailRequest(to = "alice@example.com", subject = "Hello", body = "World")'
Signals
- GitHub stars
- 2k
- Forks
- 210
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
golem-trigger-agent-scala- Source
- github.com/golemcloud/golem
More in AI & models
Skill · anthropics
More in AI & modelstriage
Skill · mattpocock
More in AI & modelswayfinder
Skill · mattpocock
More in AI & modelsalgorithmic-art
Skill · anthropics
More in AI & modelscode-review-and-quality
Skill · addyosmani
More in AI & modelsmarketing-psychology
Skill · coreyhaines31
More in AI & models