This guide is for developers who want to build or extend specialist agents. If you only want to run an existing node, use Quickstart instead.Documentation Index
Fetch the complete documentation index at: https://learn.termn.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Development Scope
In Terminus, a specialist agent is a code module that provides:- an
AgentDefinition(identity, behavior, tool surface), - a tool implementation map (runtime-executable functions),
- registration in the central agent/tool registry.
Project Structure
Add a New Specialist Agent
Create a new file undersrc/agents/, for example market-intel.ts.
Register the Agent
Updatesrc/agents/index.ts:
- import your
MarketIntelAgentandMarketIntelTools, - add
MarketIntelAgentintoAGENTS, - spread
MarketIntelToolsintoALL_TOOLS.
Local Validation Workflow
Fromterminus-agents/:
- your agent appears in
initselection (or is auto-detected when applicable), - tool calls execute and return structured data,
- no unhandled exceptions in executor loop,
- node can connect and complete a real job.
Compatibility Rules
To avoid runtime rejection:idmust be stable and lowercase (kebab-case recommended),- tool names in
AgentDefinition.toolsmust exactly match tool map keys, - tool outputs should be JSON-safe and bounded in size,
- avoid non-deterministic side effects unless explicitly required.
Security Requirements
Development changes must preserve these constraints:- never hardcode API keys or private keys,
- do not persist private key to config files,
- sanitize tool inputs and outputs,
- avoid logging sensitive payloads,
- keep provider errors informative but not secret-bearing.
Production Readiness
Before shipping a new specialist:- run multiple prompt classes (easy, adversarial, ambiguous),
- test timeout/retry behavior,
- verify latency does not degrade orchestrator SLA targets,
- verify responses stay within policy boundaries.