Skip to main content
Agents are the actors in Gloo Forge. They have identity, capabilities, runtime configuration, and deployment bindings. The platform models agents as declarative definitions that can be deployed across multiple execution runtimes — from to . This page covers the foundational architecture. For specific topics, see Templates, Skills & Tools, Models, Sessions, Memory, and Lifecycle.

🧩 The Capability Model

The agent capability model is built in three concentric layers. Each layer builds on the one below it.

AGENT CAPABILITY MODEL

Agent· Actor — Identity, memory, routing, governance
IdentityMemoryRoutingGovernance
Skill· Instruction — Packaged domain knowledge (SKILL.md)
githubcode-reviewdata-analysisresearch
Tool· Runtime Primitive — Functions the agent can invoke
execreadweb_searchbrowser
The analogy: Agents are employees. Skills are training manuals. Tools are the equipment on the desk. An agent with the github skill knows how to work with GitHub (the skill’s SKILL.md tells it the conventions), and it uses the exec tool to actually run gh commands.

🏗️ The Four-Layer Definition Model

Every in Forge is structured across four layers. Layers 1—3 live in the agentDefinitions table. Layer 4 is a separate agentDeployments record that binds a definition to a runtime.

FOUR-LAYER AGENT DEFINITION

agentDefinitions
Layer 1: Identity· What the agent IS

agentId, name, description, purpose, version, status, owner, tags, identity (emoji, avatar, theme)

Layer 2: Capability· What the agent CAN DO

Skills array, tools (required + optional), subagents, input/output modes

Layer 3: Runtime Config· How the agent RUNS

Model (default + constraints), prompt (core + extension), memory config, constraints (max tool calls, timeout, tokens, sandbox)

separate table: agentDeployments

Layer 4: Deployment· Where the agent LIVES

Gateway binding, provider (OpenClaw, Claude Agent SDK, Vercel AI, Convex-native), deployment overrides, sync status

This separation is deliberate. Layers 1—3 describe the agent abstractly — independent of any runtime. Layer 4 binds that abstract definition to a concrete execution environment. One definition can have multiple deployments across different gateways and providers.

Layer Immutability Rules

Deployments can override certain fields, but the override rules are strict:
FieldOverridable at Deployment?Notes
Core promptNoImmutable. Defines agent identity.
Required toolsNoPart of the capability contract.
SkillsNoBound at definition time.
Governance tierNoSet by the definition author.
ModelYesCan swap model, but not below minTier.
Extension promptYesAdditional context for this deployment.
Optional toolsYesCan add tools from the optional set.
ConstraintsYesCan tighten (never loosen) timeout, tool call limits, sandbox mode.
Constraints can only be tightened at deployment time, never loosened. A definition with a 60-second timeout can be deployed with 30 seconds, but not 120.

🛡️ Governance

Every agent definition carries governance metadata:
FieldTypePurpose
tierstringAgent tier: operator, department, or personal
trustLevelnumber (1—10)Autonomy score. 1—3 = supervised, 4—6 = semi-autonomous, 7—10 = autonomous.
dataScopestringDeclared data access boundary (e.g., "tickets:read,slack:post")
Trust levels are governance metadata that describe intent. They inform the approval policy system and are audit-logged when changed. See Governance Pipeline for how these flow into dispatch decisions.

🤖 The Agent Fleet

Agents are organized into tiers that determine their authority scope, model assignment, and governance requirements.

Agent Tiers

TierScopeGovernanceExample
OperatorPlatform-wide coordinationHighest trust required. Changes audit-logged.Factory Manager (gloo)
DepartmentSingle domain or functionModerate governance. Budget-capped.Finance (sage), Legal (ivy), Trust & Safety (knox)
IndividualSingle-user assistantPersonal trust boundary.cleo, pearl
SpecializedTask-specific, no persistent identityEphemeral. Spun up per-task.Workflow step executors

Built-in Agents

AgentTierExecutionModelRole
glooOperatorConvex-nativeSonnetPlatform coordinator, cross-cutting operations, Factory Manager
sageDepartmentBridgeSonnetFinance — analysis, approvals, budget oversight
ivyDepartmentBridgeSonnetLegal — contracts, compliance, regulatory review
knoxDepartmentBridgeSonnetTrust & Safety — policy, risk, incident response
cleoIndividualBridgeOpusFull-capability personal assistant
pearlIndividualBridgeOpusFull-capability personal assistant
hazelSpecializedBridgeSonnetGeneral-purpose, restricted tool access
piperSpecializedBridgeSonnetGeneral-purpose assistant
atlasSpecializedBridgeSonnetGeneral-purpose assistant

🔀 Dual Execution Model

Forge runs two execution paths, and the agent definition model works for both.

DUAL EXECUTION MODEL

Agent Definition

executionModel: “native” | “managed"

"native” ↙↘ “managed”
ConvexConvex-Native· Durable Agents

Runs inside Convex via @convex-dev/agents. Persistent threads, tool access, durable state. Does NOT go through Bridge.

Factory MgrTask ManagerCopilot
BridgeBridge-Dispatched· Gateway Workers

Routed through Bridge to gateway adapters. Stateless per-step. Callbacks return results to Convex.

OpenClawClaude Agent SDKVercel AI
Bridge (Execution Router)

When to Use Which

Use CaseExecution PathWhy
Factory orchestrationConvex-nativeNeeds durable state, persistent threads, tool access within Convex
Workflow step executionBridge-dispatchedSteps are stateless units of work routed to the best available runtime
Copilot analysisConvex-nativeNeeds access to Convex data for run analysis and recommendations
Chat-based agent workBridge-dispatchedGateway handles session state, model selection, tool execution
The executionModel field on the agent definition declares which path is used: "managed" for Bridge-dispatched, "native" for Convex-native.

🔍 Agent Discovery

Agent definitions support discovery via the publishedForDiscovery flag. When enabled, the agent’s identity and capabilities are exposed through the , allowing other agents and external systems to discover and interact with the agent programmatically.

🗂️ Registries

All three layers of the capability model are formally registered in Convex:
  • Agent Definitions (agentDefinitions) — the canonical agent registry. Stores layers 1—3.
  • Agent Deployments (agentDeployments) — layer 4 bindings. Links definitions to gateways with provider-specific config.
  • Skill Definitions (skillDefinitions) — skill content, metadata, quality review status. See Skills & Tools.
  • Model Catalog (modelCatalog) — multi-provider model inventory with capabilities and cost data. See Models.
The registries make agents discoverable, auditable, and manageable through the Platform API and operator interfaces without requiring direct gateway access. Convex is the source of truth for declared state.
The four-layer definition model separates what an agent is from where it runs. This means the same agent definition can be deployed to OpenClaw today and Claude Agent SDK tomorrow — without changing a single field in layers 1—3.