Agents 101
Agents are specialists that handle one kind of work. They have their own knowledge, rules, and history. They share what they learn.
What is an agent?
An agent is a specialist. It handles one kind of work. You might have a support agent, a billing agent, a research agent. Each one is good at one thing. Together, they cover everything.
You don't need agents for everything. If your work is focused — one domain, one kind of task — Cadreen works as a single system. Add agents when you need different expertise in different areas.
How an agent works
An agent goes through five stages. Click each step to learn more.
Core concepts
What an agent has learned. Facts, rules, patterns — stored permanently, shared after each execution.
Rules that run before every action. The model proposes, a separate layer decides. You define the rules.
Agents send messages to each other. They ask questions, share findings, resolve disagreements.
When two agents disagree, they work it out. Max 3 rounds. If they can't agree, they ask you.
Create an agent
Create an agent with a name and purpose. The system sets up its knowledge, governance, and messaging.
POST/api/v1/cadreen/agentscurl -X POST https://api.cadreen.com/api/v1/cadreen/agents \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Support Agent", "description": "Handles customer support questions"}'Agent knowledge
Knowledge is what an agent has learned. It's written automatically after each execution. You can also search existing workspace knowledge.
GET/api/v1/cadreen/agents/{id}/knowledgePOST/api/v1/cadreen/agents/{id}/knowledge/searchcurl -X POST https://api.cadreen.com/api/v1/cadreen/agents/AGENT_ID/knowledge/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "refund policy", "minConfidence": 0.7}'An entry has a confidence only if its writer gave one (a number from 0 to 1); otherwise it is null, and none is made up. minConfidence leaves out entries whose confidence is below it. An entry with no confidence is still found, and comes after the ones that have one.
Agent governance
Agent rules control the messages an agent sends to other agents. The default is permissive: audit everything, block nothing. To make a person approve a tool call, such as a refund or an email, set a workspace rule with POST /api/v1/cadreen/policies.
POST/api/v1/cadreen/agents/{id}/governancecurl -X POST https://api.cadreen.com/api/v1/cadreen/agents/AGENT_ID/governance \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Approve messages to other agents", "scope": "agent", "rules": {"require_approval": true}}'Agent messaging
Agents message each other when they need to collaborate. Messages are typed: COMPLIANT, CONFLICT, or NEEDS_INFO. Conflicts auto-spawn negotiations.
POST/api/v1/cadreen/agents/{id}/sendGET/api/v1/cadreen/agents/{id}/messagesNegotiations
When two agents disagree, they negotiate. Max 3 rounds. If they can't agree, they escalate to a human with full context. You decide.
POST/api/v1/cadreen/agents/{id}/negotiateGET/api/v1/cadreen/agents/{id}/negotiationsHow agents connect
Agents don't work in isolation. They connect to each other, to other workspaces, and to external systems. Three ways this works:
Within your workspace
Agents share knowledge, message each other, and negotiate conflicts. Your support agent learns from your billing agent without either asking. When they disagree, they work it out — max 3 rounds, then they ask you.
Across workspaces (Federation)
Connect teams or organizations. Your agent can ask another workspace's agent for help — with consent, audit trails, and governance rules intact. Knowledge flows where it's needed, stays where it's governed.
Federation GuideExternal agents (A2A)
Talk to agents on other platforms — LangChain, CrewAI, AutoGPT, or any A2A-compliant system. Your support agent can ask a billing agent built on a different platform to check a refund status. No integration work. No shared secrets.
A2A GuideNext steps
- Federation Guide — Connect workspaces across teams
- Rules guide — Create rules for your agents
- Agent Dashboard — Create and manage agents visually