Skip to main content

Run an agent

1

Sign in

Go to app.guild.ai and sign in with your Google or GitHub account, or enter your email to receive a passwordless magic link.
2

Create a workspace

Select the /home Workspace from the workspace selector at the top of the left sidebar. This is a default Workspace in your personal Guild account.
3

Install an agent

Inside your /home workspace, go to Agents and click Add agent. Browse the Agent Hub and install one (try github-issues if you have a GitHub integration, or any public agent).
4

Start a session

Go back to your workspace and click New session. Select your agent, type a message, and press Enter.The agent runs and responds in the session panel. It may ask clarifying questions or request access to services along the way.
To connect GitHub, Slack, Jira, or other services, go to your organization’s Settings > Credentials and click Connect for each service.

Build your own agent

Paste this into your coding agent (Claude Code, Cursor, Codex, etc.) to get started:
Coding agent prompt
Or follow the steps below manually. Ready to build a custom agent? The Guild CLI handles the full workflow: create, test, save, publish.

Prerequisites

Install and authenticate

1

Install the CLI

2

Authenticate with Guild

This opens your browser to sign in at app.guild.ai and configures your local npm registry for Guild packages.Verify:
If something goes wrong, run guild doctor to diagnose your setup. See the CLI troubleshooting section for common issues.

Create, test, publish

1

Create the agent

This creates the agent in the Guild backend, initializes a local git repo, and pulls starter files:
2

Edit the agent

Open agent.ts and replace the contents:
mode: "multi-turn" keeps the conversation going after each response. llmAgent wires ui_notify internally so progress notifications (task.ui.notify()) work, but hides it from the model unless you explicitly add ui_notify to your agent’s tools. Add userInterfaceTools explicitly if your agent needs ui_prompt or ui_ping.
The description field is optional and deprecated as of @guildai/agents-sdk 0.4.0. Guild generates the agent’s published description automatically from its code, so setting description no longer affects the published description.
3

Select a workspace

This prompts you to pick a workspace interactively. You can also pass --workspace <id> to guild agent test directly.
4

Test it

This opens an interactive chat session. Ephemeral versions are created automatically when testing from a local agent directory:
Press Ctrl+C to exit.
5

Save and publish

  • --wait blocks until validation passes
  • --publish makes the agent available to your organization
Your agent is live. Install it in a workspace to use it.For details on publishing workflows, see Publish to the Agent Hub.

Next steps

CLI reference

Full development loop: templates, testing, publishing, troubleshooting.

Agent SDK

Build advanced agents with typed inputs, tool sets, and platform services.

LLM agents

Prompt-driven agents with tools (the simplest way to build).

Coded agents

Deterministic TypeScript agents for algorithmic workflows.