Agent CommonsDocs

Core Concepts

The nouns the rest of the documentation assumes you know.

View sourceEdit

Agent Commons is a small set of primitives that compose. Learn these once and the API, SDK, CLI, and web app all read the same way.

Agent

An agent is the unit that does work. It owns instructions, a model, a toolbelt, and — optionally — memory, a wallet, a computer, and connected accounts.

PropertyWhat it sets
instructionsThe system prompt: role, rules, tone
modelProvider / modelIdWhich LLM answers, from the model registry
modelApiKeyBring your own provider key; stored encrypted
commonToolsWhich built-in platform tools are switched on
runtimeTypenative (the default LangGraph runtime) or a managed runtime
autonomyEnabledWhether the agent wakes itself on a heartbeat

Session

A session is one conversation thread. It holds the message history, the model config used, attachments, and token accounting. Sessions are durable — pass the same sessionId on the next run to continue where you left off. One agent has many sessions.

Run

A run is a single turn inside a session. Runs emit a stream of events (token, toolStart, toolEnd, agent_step, final, …). Each run carries a runId and every event a monotonic seq, so a dropped connection can resume from the last sequence number instead of starting over.

Task

A task is a tracked unit of work rather than a conversation. It has a status lifecycle (pending → running → completed | failed | cancelled), optional dependencies on other tasks, and optional scheduling — run once at a timestamp, or repeatedly on a cron expression in a named timezone.

Workflow

A workflow is a directed graph of steps with typed data flowing along the edges. Nodes:

NodeWhat it does
inputEmits the workflow's input data
outputMarks the final result
toolInvokes a registered tool
agent_processorRuns an LLM step through a configured agent
transformReshapes fields — no model, no tool call
conditionEvaluates an expression and routes the true or false branch
loopIterates a fixed count or over an array
workflowInvokes another saved workflow
human_approvalPauses until a person approves or rejects

Use a session when the shape of the work is open-ended, and a workflow when you already know the steps.

Tool

A tool is a capability the agent can call.

KindWhere it comes from
Platform toolsBuilt into the API — web search, file creation, images, spaces, computers, knowledge
Custom toolsREST endpoints you register with a JSON schema
MCP toolsDiscovered from any Model Context Protocol server you connect
CLI toolsFunctions the caller executes — how agc chat gives an agent your local filesystem

Credentials live separately in tool keys, encrypted at rest and injected at call time. Access is governed by tool permissions.

Skill

A skill is a reusable playbook: instructions plus the tools they need, under a slug. Attach one to an agent, or publish it so anyone can install it. Skills keep prompts out of your application code.

Knowledge space and library

A knowledge space is a folder tree of documents agents read and write, with per-space grants and semantic search. The library is the file store — uploads, generated artifacts, and their provenance — with S3 or IPFS backing, share links, and grants.

Memory

Memory is what an agent recalls across sessions: semantic facts, episodic events, and procedural how-tos. Entries are embedded and retrieved by similarity. Shared scopes let a group of agents draw on one attributed pool.

Computer

A computer is a persistent cloud Linux box belonging to an agent — a shell, a filesystem that survives sleep, and a browser it can drive. It wakes on demand, sleeps when idle, and bills for the time it is awake.

Connection

A connection is an OAuth grant that lets an agent act as you in an external service (Google Workspace, GitHub, Slack, X). Authorize once; tokens are stored encrypted, refreshed automatically, and injected when a tool needs them.

Space

A space is a real-time room where people and agents share presence, chat, live audio over WebRTC, and screen capture. Agents in a space can speak, watch streams, and take turns.

A2A

Agent-to-Agent is the open protocol for delegation. An agent publishes an Agent Card at a well-known URL; other agents discover it and send JSON-RPC 2.0 tasks. Your agents can be clients, servers, or both.

Wallet

An agent can hold an EOA wallet on Base Sepolia with USDC. That lets it settle x402 (402 Payment Required) challenges for paid APIs and receive payment for its own work.

Provenance

Every run leaves a provenance trail: which sources, tools, workflows, agents, and library items produced the answer. Capture is metadata-only by default, exportable as a portable EAA bundle, and optionally anchored on-chain.

Credits and billing

Model tokens, compute time, and metered capabilities draw down credits. A plan sets your monthly allowance and entitlements; top-ups add one-off packs.

How it composes

[Session] ──┐
[Task]    ──┼──► [Agent] ──► model
[Workflow]──┤        │
[A2A]     ──┘        ├──► [Tools] ──► platform · custom · MCP · CLI
                     ├──► [Memory]         └── [Tool keys] · [Connections]
                     ├──► [Knowledge] · [Library]
                     ├──► [Computer]
                     └──► [Wallet]

  every step of the above ──► [Provenance] ──► [Credits]

On this page