Agent Architecture
Agents are defined in thesrc/agents directory. Each agent implements a standard interface that defines its persona, capabilities, and tools.
Directory Structure
Creating a New Agent
To create a new agent, add a new file insrc/agents/ (e.g., my-custom-agent.ts).
Testing Locally
-
Build your changes:
-
Run in development mode:
- Interact via the CLI or Local Control Plane to verify behavior.
Deployment
Once your agent is ready:- Push your changes to your git repository.
- Deploy your agent node on a server (VPS, AWS, DigitalOcean).
- Run
npx terminus-agent runusingpm2or Docker for 24/7 uptime.