resonate-basic-ephemeral-world-usage-rust

resonate-basic-ephemeral-world-usage-rust is a skill for Claude Code, Codex from resonatehq/resonate-skills. It costs 36 tokens per session (3,338 once invoked), scanned A, original, Apache-2.0.

Core Rust client patterns for starting and registering Resonate workflows from a program's entry point, such as a command-line tool or web handler.

In plain words
What is it for?
It helps initialize the client, register durable functions, and start them from main programs, web requests, command-line tools, and background services.
Why use it?
It provides the connection between ordinary Rust code and workflows that can retry after failures and continue after crashes or process restarts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps initialize the client, register durable functions, and start them from main programs, web requests, command-line tools, and background services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/resonatehq/resonate-skills/resonate-basic-ephemeral-world-usage-rust
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add resonatehq/resonate-skills --skill resonate-basic-ephemeral-world-usage-rust
Clone the repo
git clone --depth 1 https://github.com/resonatehq/resonate-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for resonate-basic-ephemeral-world-usage-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/resonatehq/resonate-skills/resonate-basic-ephemeral-world-usage-rust/github.svg)](https://agentmods.dev/skills/resonatehq/resonate-skills/resonate-basic-ephemeral-world-usage-rust)
Your own site
<a href="https://agentmods.dev/skills/resonatehq/resonate-skills/resonate-basic-ephemeral-world-usage-rust"><img src="https://agentmods.dev/badge/skills/resonatehq/resonate-skills/resonate-basic-ephemeral-world-usage-rust/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for resonate-basic-ephemeral-world-usage-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/resonatehq/resonate-skills/resonate-basic-ephemeral-world-usage-rust"><img src="https://agentmods.dev/badge/skills/resonatehq/resonate-skills/resonate-basic-ephemeral-world-usage-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,338 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.03338
Opus 5 $0.00018 $0.01669
Sonnet 5 $0.00007 $0.00668
Haiku 4.5 $0.00004 $0.00334

Measured 11d ago against content hash d4bac8163861, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

resonate-basic-ephemeral-world-usage-rust scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

resonate-basic-ephemeral-world-usage-rust/SKILL.md · 336 lines

How it starts

The opening of the file, as written. The whole thing — 336 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Resonate Basic Ephemeral World Usage — Rust

SDK note. The Resonate Rust SDK is in active development (resonate-sdk v0.6.0, published on crates.io). APIs may change between releases. Treat every code example as a moving target until the SDK reaches 1.0.

Overview

The ephemeral world is anywhere your Rust program starts: main(), an Axum or Actix handler, a CLI entry point, a background service. You use the Resonate client to register durable functions and invoke them top-level. Once an invocation starts, it crosses into the durable world and Resonate guarantees its completion — retries on failure, resumes after crashes, continues across process restarts.

This skill covers the Client API surface. The Durable World (Context APIs inside #[resonate::function]) lives in resonate-basic-durable-world-usage-rust.

Install

The Rust SDK is published on crates.io. Add to your Cargo.toml:

[dependencies]
resonate = { package = "resonate-sdk", version = "0.6" }
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }

Most programs also want serde_json for the json!(...) macro used in the promises API.

use resonate::prelude::*;

Initialize

Local mode (zero-dependency; in-memory promise store):

use resonate::prelude::*;

let resonate = Resonate::local();

Remote mode (connects to a Resonate server):

use resonate::prelude::*;

let resonate = Resonate::new(ResonateConfig {
    url: Some("http://localhost:8001".into()),
    ..Default::default()
});

With explicit worker group + auth token:

let resonate = Resonate::new(ResonateConfig {
    url: Some("https://resonate.example.com".into()),
    group: Some("workers".into()),
    token: std::env::var("RESONATE_TOKEN").ok(),
    ..Default::default()
});

The SDK reads environment variables when config fields are not set:

  • RESONATE_URL — full base URL
  • RESONATE_HOST + RESONATE_PORT — alternate construction
  • RESONATE_TOKEN — JWT for authenticated servers
  • RESONATE_SCHEMEhttp by default
  • RESONATE_PREFIX — prepended to all promise + task IDs for multi-tenant namespacing

Read the full file on GitHub · 336 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 336 lines · 36 tokens per session scan A d4bac8163861

Subscribe to this mod's changes

resonate-basic-ephemeral-world-usage-rust is a skill published in the GitHub repository resonatehq/resonate-skills (6 stars, last pushed 19d ago), licensed Apache-2.0. It adds 36 tokens to every session and 3,338 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

golem-make-http-request-rust

Making outgoing HTTP requests from a Rust Golem agent. Use when the user asks to call an external API, make HTTP requests, use an HTTP client, or send HTTP requests from agent code.

golemcloud/golem · 48 tokens

golem-add-http-endpoint-rust

Exposing a Rust Golem agent over HTTP. Use when the user asks to add HTTP endpoints, mount an agent to a URL path, or expose agent methods as a REST API.

golemcloud/golem · 46 tokens

golem-add-webhook-rust

Using webhooks in a Rust Golem agent. Use when the user asks to create webhooks, receive webhook callbacks, integrate with webhook-driven external APIs, or generate temporary callback URLs for external services.

golemcloud/golem · 48 tokens

golem-add-transactions-rust

Adding saga-pattern transactions with compensation to a Rust Golem agent. Use when the user asks about transactions, sagas, compensation, rollback, or multi-step operations that need undo logic.

golemcloud/golem · 45 tokens

azure-eventhub-rust

Azure Event Hubs library for Rust. Send and receive events for streaming data ingestion and batch processing. Triggers: "event hubs rust", "ProducerClient rust", "ConsumerClient rust", "send event rust", "streaming rust", "eventhub rust".

microsoft/skills · 58 tokens

rust-engineer

Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions. Implements ownership patterns, manages lifetimes, designs trait hierarchies, builds async applications with tokio, and structures error handling with Result/Option. Use when building Rust applications, solving ownership or…

Jeffallan/claude-skills · 120 tokens