/agent-service:overviewfrom agent-service
This skill should be used when the user asks "what is agent-runtime", "why use agent-runtime", "what does this repo do", "agent runtime architecture", "how does agent-runtime work", or needs to understand the purpose, value proposition, and high-level architecture of the @hhopkins/agent-runtime monorepo.
Ships in agent-service. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Agent Runtime is a general-purpose platform for launching arbitrary AI agent workloads on demand. It orchestrates AI agents (Claude via Agent SDK, OpenCode) in isolated Modal sandboxes, providing a Node.js backend runtime and React client library for building applications with AI agents.
Key principle: The runtime handles session management and agent orchestration - it does not enforce any data schema on the calling application. Data types are passed back to the app, which decides what to do with them.
The monorepo provides two packages:
| Package | Purpose |
|---|---|
@hhopkins/agent-runtime | Node.js backend runtime for orchestrating agents in Modal sandboxes |
@hhopkins/agent-runtime-react | React hooks and context for connecting to the runtime |
Agents execute in Modal sandboxes, not on the application server. This provides:
Real-time block-by-block streaming of agent output via WebSocket:
block_start - New block beginstext_delta - Incremental text updatesblock_update - Block metadata changesblock_complete - Block finishesBuilt-in session lifecycle with:
Supports multiple agent architectures:
Configure via AGENT_ARCHITECTURE_TYPE when creating sessions.
First-class React integration with hooks for:
┌─────────────────────────────────────────────────────────────┐
│ Client Application │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ AgentServiceProvider (React) │ │
│ │ ┌──────────────┐ ┌──────────────┐ ┌───────────┐ │ │
│ │ │useAgentSession│ │ useMessages │ │useFiles │ │ │
│ │ └──────────────┘ └──────────────┘ └───────────┘ │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
│ REST API │ WebSocket
▼ ▼
┌─────────────────────────────────────────────────────────────┐
│ Backend Runtime │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ SessionManager │ │
│ │ ┌──────────────────────────────────────────────┐ │ │
│ │ │ AgentSession │ │ │
│ │ │ - Sandbox lifecycle │ │ │
│ │ │ - Transcript parsing │ │ │
│ │ │ - File watching │ │ │
│ │ │ - Periodic sync │ │ │
│ │ └──────────────────────────────────────────────┘ │ │
│ └─────────────────────────────────────────────────────┘ │
│ │ │
│ ┌────────────────────────┴────────────────────────────┐ │
│ │ PersistenceAdapter │ │
│ │ (Implemented by your application) │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ Modal Sandbox │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ Agent (Claude SDK or OpenCode) │ │
│ │ - Tools (Read, Write, Edit, Bash, Grep, Glob) │ │
│ │ - Skills │ │
│ │ - Subagents │ │
│ │ - MCP Servers │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
A session represents a single agent conversation. Sessions are:
Agent output is parsed into typed blocks for rendering:
UserMessageBlock - User inputAssistantTextBlock - Agent text responseToolUseBlock - Tool invocationToolResultBlock - Tool outputThinkingBlock - Agent reasoning (if exposed)SystemBlock - System messagesSubagentBlock - Subagent invocationErrorBlock - Error informationConfiguration defining agent capabilities:
The main integration point between the runtime and application storage. Applications implement this interface to:
Good fit:
Consider alternatives if:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hhopkins95/agent-runtime --plugin agent-service4 skills in this plugin
/agent-designAgent DesignThis skill should be used when the user asks to "configure agent profile", "add skills to agent", "set up MCP servers", "configure agent tools", "write system prompt", "create agent workflow", "define agent commands", "add subagents", or needs to define what capabilities an agent has and how to orchestrate complex workflows in the runtime./backend-setupBackend SetupThis skill should be used when the user asks to "create an agent runtime server", "set up agent runtime backend", "configure Modal sandbox", "implement PersistenceAdapter", "start WebSocket server", "create REST API for agents", or needs to build a Node.js backend using @hhopkins/agent-runtime./react-integration2 plugins ship this exact skill · first indexed Aug 15, 2026
Other plugins' skills for the same job