developers · reference · shipped
Agents & Workflows
Dual agent runtime architecture
Aitherium runs real ReAct (think -> act -> observe) agent loops across two complementary execution paths that share the same tool, skill, and identity contracts:
| Dimension | Path A — Orchestrated Loop (Genesis-hosted) | Path B — Sovereign Loop (awdk v4.0.0) |
|---|---|---|
| Runtime | Full AitherOS platform (POST /chat/stream -> ChatEngine -> ContextPipeline [17 sub-stages] -> LLMGateway -> AgentRuntime OODA + AgentForge subagents) | Self-hosted Python SDK (from adk import AitherAgent) with zero Genesis dependency |
| Inference routing | Managed fleet routing, VRAM-aware scheduling, and EffortScaler (1–10) | Local LLMRouter supporting ollama, llama.cpp/Bonsai, vllm, picolm, openai, anthropic, deepseek, and gateway |
| Memory & durability | MemoryBus, Graph, TenantDocs, SharedRLMWorkspace, and FluxEmitter | Local SQLite memory (~/.aither/memory/{agent}.db), LoopGuard, durable crash-proof turn_journal, verified self-improving lessons |
| Governance | HMAC-SHA256 CapabilityEngine (default-deny), IdentityToken, tenant RBAC | Ed25519-signed packs, fail-closed license gating, local policy boundaries |
Apps can also embed a lightweight service-side loop (run_react() with pluggable generate_fn and offline degradation). awsh (@aitherium/awsh) auto-detects Genesis vs. local awdk, so the same terminal cockpit drives both runtimes.
from adk import AitherAgent
agent = AitherAgent(identity="demiurge")
reply = agent.chat("Review this diff for fail-closed authorization bugs.")
Agent surfaces and sovereignty ladder
- Sovereign CLI & SDK (
awdkv4.0.0):adk start|init|new|run|up|down,adk agent run|list|status|stop|bind|swap-brain|backend, with per-agent overlay overrides in~/.aither/agents/<pack>/agent.yaml.local. - Aither Hearth (
adk home): Single-owner personal agent running on user hardware across 8 channels (relay,telegram,discord,slack,email,whatsapp,sms,local), paired with a 6-digit--paircode, built-in local calendar/ICS and to-do lists, outboundyes <code>approvals, signed hash-chained action receipts (adk home receipts --verify), and a public sandbox athttps://hearth.aitherium.com. - Managed Agents & Self-Hosted Twins (
adk agent managed|twin): Move freely along the sovereignty ladder — from Managed Agents (Anthropic Managed Agents beta / Google BYOK withalways_askapprovals) to Self-Hosted Twins (adk agent twin deploy|list|remove|rebind|doors, bearer-gated hosted twins athttps://twins.aitherium.com) to fully localawdk. - Desktop Agents (
awdesk,adk desk, Decision Cards):awdesk(MIT, Electron for Windows/macOS/Linux) provides tray presence, live avatar, browser bridge, and Decision Cards (adk decide ask|list|show|answer|steer|window|cancel, ReAct toolsask_human/check_human/withdraw_card/list_my_cards, 3-tier Direct -> In-flight -> Mailbox delivery). - Discord Agents (
adk onboard --discord): One-command bot setup (pip install 'awdk[channels]'->adk onboard --discord --identity <agent> --pack <pack>) with live Discord token validation, built-inDiscordAdapteron paid tiers, and automatic fallback to a minimaldiscord.pyclient callingagent.chat()on the free tier. - Agent Client Protocol (
adk acp):- Serve (
adk acp serve): Expose anyAitherAgentover stdio JSON-RPC to Zed, JetBrains, VS Code, or Neovim (adk acp config zed|jetbrains|vscode|neovim), mapping approval gates tosession/request_permission. - Drive (
adk acp connect|prompt): Drive external ACP agents (claude-agent-acp,codex-acp,gemini-cli) viaacp_list_agents,acp_connect,acp_prompt, andacp_close.
- Serve (
House identities and platform specialists
17 bundled awdk house identities
Every awdk install ships 17 ready-to-use identities you can run directly or customize:
| Identity | Role | Focus & Primary Skills |
|---|---|---|
aither | Orchestrator | System oversight, coordination, synthesis, delegation |
apollo | Specialist | Performance analysis, optimization, benchmarking, profiling |
athena | Specialist | Security auditing, threat assessment, vulnerability analysis, compliance |
atlas | Specialist | Project management, research delegation, reporting, service intelligence |
chaos | Specialist | Chaos engineering, resilience testing, failure injection, stress testing |
demiurge | Specialist | Code architecture, generation, review, refactoring, CI/CD |
hera | Specialist | Community management, social engagement, content publishing |
hydra | Specialist | Code review, QA, testing, multi-perspective verification |
iris | Specialist | Image generation, creative design, visual content production |
lyra | Specialist | Deep research, knowledge synthesis, documentation, source verification |
morgana | Specialist | Secrets management, encryption, secure configuration |
muse | Creative | Interactive narrative, art generation, ecosystem QA, MCP validation |
prometheus | Specialist | Infrastructure management, deployment, containers, scaling, monitoring |
saga | Specialist | Documentation, knowledge base management, interactive storytelling |
themis | Specialist | Compliance, fairness assessment, policy enforcement, ethics |
vera | Specialist | Technical journalism, content creation, editing, publishing |
viviane | Specialist | Memory management, knowledge retrieval, context preservation |
Active AitherOS platform specialists
On hosted AitherOS, 9 active core specialists serve workspace requests (genesis, aeon, atlas, demiurge, lyra, iris, saga, vera, hera), complemented by on-demand registered archetypes invoked via Genesis/Forge across Elementals (aeros, hydra, ignis, terra), Knights, Domain Specialists (athena, argus, executive, isolde, plutus, prospero, reasoner, umbra), Red-Team, and Edge profiles.
Agent Notebooks (.anb)
Agent Notebooks (.anb) are executable, reviewable, cost-tracked DAGs of typed cells — the durable, auditable counterpart to fire-and-forget dispatches. (They are distinct from Research Notebooks, which provide NotebookLM-style source upload, Q&A, and audio briefings.)
- 14 cell types:
- Content & documentation:
context,plan,note,result - Execution & control flow:
prompt,tool_call,agent_delegate,service_call,transform,checkpoint(human approval gate),parallel_block,loop,condition,script(sandboxed)
- Content & documentation:
- Durability & review: Per-cell execution traces, token/cost accounting, baseline pinning,
diffandreplay, review gates (approve/reject/changes/apply), interactive SSE sessions, and.ipynbexport.
adk notebook plan "Audit API routes and generate OpenAPI tests"
adk notebook list
adk notebook get <notebook-id>
adk notebook run <notebook-id>
adk notebook status <run-id>
adk notebook export <notebook-id> --format ipynb
ReAct tools (notebook_plan, notebook_list, notebook_get, notebook_execute, notebook_run_status, notebook_export) enforce fail-closed RBAC via adk login and automatically retry transient 502/503/504 responses.
Deterministic multi-agent workflows (awflow)
awflow (v0.2.3, Apache-2.0, https://github.com/Aitherium/awflow) is a library-first Python runtime for deterministic, journaled multi-agent workflows with hard token budgets and content-hashed prefix replay.
# Always install under the aitherium-awflow package name (import name is awflow)
pip install aitherium-awflow
# Optional local JSON Schema validation extra:
pip install "aitherium-awflow[schema]"
Note: Always specify
aitherium-awflowon PyPI — the shorter unscoped package name on PyPI belongs to an unrelated third-party project.
Core primitives exported by awflow:
run_workflow(script, journal_path=..., resume_from=..., budget_tokens=...)— Executes a workflow with crash-safe journaling, content-hashed prefix replay on resume, and immediateBudgetExhaustedenforcement.agent(...)— Dispatches a typed agent step with optional schema validation.parallel(...)— Barrier-synchronized fan-out across independent tasks (cap: 4,096 items).pipeline(...)— Barrier-free streaming multi-stage fan-out (cap: 4,096 items; a failed item drops without halting sibling items).phase(...)andlog(...)— Structured stage grouping and journaled progress logging.get_budget/set_budget/set_concurrency_capandLaneDispatcher/LaneResult/StepNeeds/NoLaneError— Programmatic budget and lane routing controls.
Mirror workflow journals into workspace expedition tracking with adk workflow mirror and adk workflow status.
A2A mesh and remote invocation (adk mesh / adk invoke)
awdk implements Google A2A v0.3.0 over JSON-RPC 2.0 and SSE:
- Discovery:
GET /.well-known/agent-card.json(canonical; legacy/.well-known/agent.jsonsupported for compatibility) andPOST /a2a(skills/invoke,message/send, SSE streaming, task lifecyclesubmitted -> working -> completed|failed, auto-exposed@toolskills). - Cryptographic identity & trust: Each node maintains a persistent Ed25519 keypair. Outbound calls sign requests with
X-SignatureandX-Public-Key; inbound peers enforce verification viaAITHER_A2A_REQUIRE_TRUST=true|audit|false. - Public Concierge endpoint:
https://aitherium.com/a2aexposes Aitherium's read-only public A2A Concierge.
# Discover peer agents across your mesh and configured backends
adk agents ls
# Signed remote skill invocation
adk invoke <agent> <skill> --arg key=value --as-agent <caller>
# Private WireGuard/Headscale mesh lifecycle & compute lending
adk mesh join
adk mesh status
adk mesh ls
adk mesh serve
adk mesh lend # contribute RAM/compute to the mesh
adk mesh create # create an isolated per-tenant mesh
adk mesh link # federate linked meshes
awsh and coding harnesses (adk harness)
awsh (@aitherium/awsh v2.0.0, BUSL-1.1)
npm i -g @aitherium/awsh
# or via the cross-platform installer:
curl -fsSL https://aitherium.com/install.sh | sh
awsh (binaries awsh, aither, aither-shell) is a full-screen Node/TypeScript terminal cockpit featuring auto-detected multi-protocol avatars (Kitty/Ghostty/WezTerm, iTerm2, Sixel, 24-bit half-block), slash commands, Forge dispatch (-f), phone reach (awsh rc), shell omnibox integration (awsh init pwsh|bash|zsh|terminal), and scriptable headless pipe mode:
awsh -p "Summarize git diff --stat" --output-format json
awsh -p "Stream review findings" --output-format stream-json
adk harness — driving real coding CLIs
adk harness drives installed coding CLIs over a bearer-authenticated loopback daemon (adk harness serve), while adk harness up boots the local harness stack and auto-wires Google Antigravity and Claude Code hooks on a shared policy plane. (Use adk shell to pass through to awsh.)
| Transport | Supported Harnesses | Execution Model |
|---|---|---|
structured-bidi | claude | Persistent bidirectional JSON stream over stdin/stdout with isolated per-profile CLAUDE_CONFIG_DIR |
oneshot-per-turn | gemini, codex, aider, opencode | Fresh subprocess per turn (stateless between turns) |
pty-stream | terminal, sandbox | Interactive PTY or isolated Docker dev-container TTY |
http-stream | aither, group | Remote SSE streaming against AitherOS |
Fail-closed scoping (adk.claude_runner.ClaudeRunner + RunScope) enforces allowed_tools (--allowedTools), disallowed_tools, cwd, add_dirs, model, system_prompt, and timeout_sec, tearing down the entire process tree on exit.
Open-core license tiers
awdk licensing fails closed to COMMUNITY when no active entitlement token is present:
| Tier | Capabilities Included |
|---|---|
COMMUNITY (free) | Local execution, single sovereign agent, effort up to 3, typed SQLite memory, knowledge and code graphs, ReAct loop |
STARTER | Everything in COMMUNITY + multi-agent fleet, premium identities, channel adapters |
BUILDER | Everything in STARTER + scheduled cron agents, full tool surface, skill and tool packs |
PROFESSIONAL | Everything in BUILDER + extended reasoning effort, swarms, custom agent builds, computer use |
ENTERPRISE | Everything in PROFESSIONAL + mesh federation, governance controls, enterprise support |
Authorization and governance spine
Every agentic action in Aitherium passes through a composable, fail-closed governance spine built from standalone public bricks:
awnest (human proof)
-> awnboard (front gate & key admission)
-> awiam (caller identity & session store)
-> awbac (fail-closed RBAC with denial explanations)
-> awdit (hash-chained, tamper-evident audit trail)
-> awtunnel (private reachability without public IPs)
Scoped spend limits and egress boundaries layer directly onto the spine via awpermit (per-scope spend caps and named accountability) and awwall (fail-closed outbound egress allowlists).