@darkpool/agent-service package is a self-contained agent runtime. Each process is one agent. Run multiple instances with distinct names + ports for a fleet.
Required env
Tick loop
Strategies
alternate/yes-only/no-only. Heuristic. Probes $50 strike rungs outward from spot, trades the first ask insideask_bounds. See Heuristic Strategies.llm. Native AI mode. The model researches via tools and submits a structured decision; the runtime executes under guardrails. See LLM Strategy.
LLM_API_KEY when AGENT_STRATEGY=llm → falls back to alternate with a warning.
/status HTTP
The runtime exposes a tiny HTTP server onAGENT_STATUS_PORT:
/agents) polls each configured URL (comma-separated VITE_AGENT_STATUS_URLS) in parallel and renders the action feed inline.
Health hardening
The runtime collapses consecutive identical feed entries into one row with a×N counter and humanizes common errors (gas / manager-balance / api-unreachable) via humanizeAgentError so the fleet card surfaces one actionable warning rather than log spam.