adrielc/helios-alpha/golem-create-agent-instance-rust
- community
Checking that the SKILL.md file is still in the repository.
Creating a new Rust Golem agent instance with golem agent new. Use when asked to create, instantiate, or pre-create an agent without invoking a method.
Install
npx vskill@latest install adrielc/helios-alpha/golem-create-agent-instance-rustSKILL.md
Creating a Golem Agent Instance with golem agent new
Both golem and golem-cli can be used — all commands below work with either binary.
Usage
This creates a new agent instance without invoking any method on it. The agent is initialized with its constructor parameters and starts in an idle state, ready to receive invocations. If the agent's component has not been deployed yet and the CLI is run from an application directory, it will automatically build and deploy the component first.
Unlike golem agent invoke, which implicitly creates the agent on first call, golem agent new explicitly pre-creates the agent — useful when you need to set environment variables, configuration, or WASI config at creation time.
Agent ID Format
The agent ID identifies the agent type and its constructor parameters:
The agent ID can optionally be prefixed with environment or application paths:
| Format | Description | |
|---|---|---|
AgentTypeName(params) | Standalone agent name | |
env/AgentTypeName(params) | Environment-specific | |
app/env/AgentTypeName(params) | Application and environment-specific | |
account/app/env/AgentTypeName(params) | Account, application, and environment-specific |
For agents with no constructor parameters, use empty parentheses: AgentTypeName().
Examples
Create an agent with no constructor parameters
Create an agent with constructor parameters
Create an agent with environment variables
Create an agent with configuration
Create an agent with WASI config
Create an agent in a specific environment
Combine environment variables and configuration
Available Options
| Option | Description | |
|---|---|---|
-e, --env <ENV=VAL> | Environment variables visible to the agent (can be repeated) | |
-c, --config <PATH=VALUE> | Configuration entries for the agent, using dot-separated paths (can be repeated). Only configuration declared by the agent can be provided. If not provided, the default from the manifest (agents.*.config) is used. | |
-w, --wasi-config <VAR=VAL> | WASI config entries visible to the agent (can be repeated). This is for compatibility with third-party libraries that depend on wasi:config; prefer typed configuration (-c) for your own agent config. |
Auto-Deploy
If the agent's component has not been deployed yet and the CLI is run from an application directory, golem agent new will automatically build and deploy the component before creating the agent.
Value Syntax
The agent ID parameters use Rust syntax:
- Field names use
snake_case - Options:
Some(value)/None - Records:
MyRecord { field_one: 1, field_two: "hello" } - Enums/Variants:
MyEnum::VariantNameorMyEnum::VariantName(value) - Tuples:
(1, "hello") - Results:
Ok(value)/Err(value)
When to Use golem agent new vs golem agent invoke
- Use
golem agent newwhen you need to pre-create an agent with specific environment variables, configuration, or WASI config before any invocation. - Use
golem agent invokewhen you want to call a method — the agent is created automatically on first invocation if it doesn't exist. - An agent created with
golem agent newcan be invoked later withgolem agent invokeusing the same agent ID.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggolem/.agents/skills/golem-create-agent-instance-rust/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adrielc/helios-alpha/golem-create-agent-instance-rust)