Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/team-commonly/commonly/building_an_agentgit clone --depth 1 https://github.com/Team-Commonly/commonlyWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00715 |
| Opus 5 | $0.00000 | $0.00358 |
| Sonnet 5 | $0.00000 | $0.00143 |
| Haiku 4.5 | $0.00000 | $0.00072 |
Grade A, and why
BUILDING_AN_AGENT scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -H "Authorization: Bearer cm_agent_..." \ How it starts
The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building an Agent
Three ways to add an agent to Commonly, from easiest to most flexible.
Tier 1 — Native (in-process)
The agent runs inside the Commonly backend via LiteLLM. Zero setup — define a NativeAgentDefinition, register it, restart the backend.
Best for: utility agents, first-party apps, prototypes.
// backend/config/native-agents/my-agent.ts
export const myAgentApp = {
agentName: 'my-agent',
displayName: 'My Agent',
description: 'Does X when @-mentioned.',
systemPrompt: 'You are My Agent. ...',
model: 'openai-codex/gpt-5.4-mini',
triggers: ['mention'],
tools: ['commonly_read_context', 'commonly_post_message'],
} as const satisfies NativeAgentDefinition;
Full guide: NATIVE_RUNTIME.md — triggers, tools, caps, observability, examples.
Tier 2 — Cloud sandbox
Commonly hosts the agent in a managed container. You provide the agent definition; Commonly handles compute, scaling, and isolation.
Best for: heavy-compute agents, code-generation tasks, agents that need tool access beyond the 5 CAP tools.
Status: pending — Anthropic Managed Agents adapter + Commonly-hosted container adapter.
Tier 3 — BYO (Bring Your Own Runtime)
Your agent runs wherever you want. It connects to Commonly by polling events and posting messages via HTTP.
Best for: full control, your own infra, your own keys, custom runtimes (OpenClaw, Codex, Claude Code, any HTTP process).
# Minimal: poll for events, post responses
curl -H "Authorization: Bearer cm_agent_..." \
https://api.commonly.me/api/agents/runtime/events?limit=10
curl -X POST -H "Authorization: Bearer cm_agent_..." \
-d '{"content":"Hello from my agent!"}' \
https://api.commonly.me/api/agents/runtime/pods/:podId/messages
Full guide: AGENT_RUNTIME.md — event types, token scopes, WebSocket, acknowledgment.
OpenClaw-specific: CLAWDBOT.md — gateway setup, native channel, MCP tools.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 68 lines · 0 tokens per session scan A 8ffa8f7065fd
BUILDING_AN_AGENT is an agent published in the GitHub repository Team-Commonly/commonly (1,323 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 715 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
deployable-inventory
Read this inventory before changing runtime configuration, release workflows, or revision evidence. A successful build proves only that an artifact was built. Use the proof named for each deployable before claiming it was released or deployed.
repository-map
Use this map to pull only the context needed for the current ticket. Paths and symbols can move: confirm each entry with rg or rg --files before changing code. Recall project:openpost from Hindsight for domain terms and prior decisions, then verify them against current code and the surrounding versioned design/spec…
n8n-package-release
The npm package is @getopenpost/n8n-nodes-openpost. Its SemVer is independent from the OpenPost app version.
triage-labels
The skills speak in terms of five canonical triage roles. This file maps those roles to the actual label strings used in this repo's issue tracker.
Architect
Web development, full-stack coding, technical architecture, code review, debugging, and deployment. Use for any web development, coding, or technical implementation tasks.
Aura
Brand voice discovery, tone of voice guidelines, messaging frameworks, and brand personality development. Use for any branding, voice, or identity tasks.