Skip to content

Agent source

Everything in the browser below is mirrored verbatim from the agent's actual source tree in the AIMO repository — nothing here is a simplified or rewritten example.

A few starting points:

  • Connection loop (agent/jobs/agent_worker.py) — the outbound WebSocket connection to AIMO: backoff, JWT refresh, idle reconnect. See Security: network boundary.
  • Running monitors (agent/monitor/process.py) — turns monitor definitions into a grouped SQL query and returns only the aggregates. See Security: aggregates, not raw rows.
  • Credential encryption (agent/clientdb/credentials.py) — scrypt + AES-256-GCM, encrypted before it ever leaves your environment. See Security: database credentials.
  • Configuration surface (agent/settings.py) — the environment variables behind the Agent CLI requirements table.
Browse the agent source59 files, mirrored verbatim — tree navigation, full syntax highlighting.
  • Architecture — network layout and trust boundaries.
  • Security — the properties this code implements.
  • Agent CLI — the commands built on top of this code.
  • Operations — the job types the running agent executes.