handler agent¶
List, inspect and delete agents, and watch or switch an agent's network.
When to use it¶
- To find an agent's id, or see how each agent is contained.
- To clean up agents made outside projects in folders you no longer use.
- When an agent fails on blocked hosts: see what it reached, or let everything through for a while to learn what it needs.
Agents of projects are created and edited in the web UI. Agents outside projects are made by
run, terminal and acp in a folder.
Usage¶
handler agent list
handler agent show ID
handler agent rm ID [--yes]
handler agent network ID [log-only|enforce]
handler agent checks ID [--run]
Subcommands¶
| Subcommand | |
|---|---|
list |
every agent, most recently used first: id, home (project NAME, Chat or outside projects), name (and what it was set up from), who works (the program, the account or provider, and the model), its settings (what differs from the defaults), live sandboxes, folder |
show ID |
its settings in full: folder, model, network and hosts (allowed, kept blocked), permissions, tools, notes, skills, containers, display, live sandboxes, and what uses it: Handler itself, your automations |
rm ID |
delete an agent outside projects and stop its sandboxes. The next handler run in that folder starts a new agent again. When Handler or an automation uses it, says so and asks first (--yes: does not ask): they stop running it until you give them another. A project's agents are removed in the web UI |
network ID |
its network mode, its own hosts, the hosts it keeps blocked, and its recent connections |
network ID log-only |
a filtered agent: every host goes through and is logged, live, while it works |
network ID enforce |
back to blocking what is not allowed |
checks ID |
a job's checks: kept runs with their right answer; --run runs them all |
Connections¶
handler agent network ID lists one line per event: time, decision, host, connection.
| Decision | |
|---|---|
allowed |
an allowed host; the line after it says whether it answered |
reached |
the host answered: the connection went through |
unreached |
could not connect to the host, why after it: connection refused (nothing listens there: a model server on this computer listening on 127.0.0.1 only, say), host not found, no answer: timed out… |
denied |
blocked: not allowed, or kept blocked |
unlisted |
in log-only: let through, but enforcing would block it. These are the hosts to allow |
held |
a request that waited a few seconds for your answer while you watched the session; the line after it says how it ended |
injected |
Handler added one of your secrets to a request to that host (the agent only has a stand-in) |
leak |
a secret's stand-in sent to a host it is not for: refused |
Learning what an agent needs¶
The web UI's Learn the sites it needs (in the agent's settings) does the same:
handler agent network a_12… log-only # every host goes through, logged
# … let the agent do its task …
handler agent network a_12… # the `unlisted` lines: the hosts to allow
handler agent network a_12… enforce
Allow them in the session's network panel, or with --allow HOST:PORT on the next run; keep
one blocked with --keep-blocked HOST:PORT (the agent is then told not to ask for it).