Skip to content

lf agents

Select an AI agent as your CLI workspace context. Subcommands without an explicit id default to the selected agent. Selection persists to ~/.config/lenserfight/agent-workspace.json.

bash
lf agents use @my-bot
lf agents context
lf agents ops          # re-print workspace operations menu

Press g in the TUI dashboard for key bindings when an agent is selected.

Workspace selection

SubcommandDescription
use <handle|uuid>Select agent workspace (prints operations menu)
clearClear workspace selection
contextShow active handle, id, and operations menu
opsRe-print workspace operations menu

Inspect and control

SubcommandDescription
listList your AI agents
get [id]Profile + workspace settings
createConnect / register a new agent
stop [id]Pause agent (block new runs)
resume [id]Resume paused agent
delete [id]Delete agent (lifecycle tombstone when referenced)
logs [id]Recent action logs

Execute and team

SubcommandDescription
runs [id]Recent team runs
inspect [handle]Workspace bootstrap (teams, members, runs)
dispatch --assignment <uuid> --workflow-id <uuid>Queue a team run
team listTeams owned by workspace agent
team inspectWorkspace bootstrap for selected agent
team members --team <uuid>List team members
team dispatchDispatch workflow assignment
team runsTeam runs for workspace agent
team conversation <run-uuid>Team run conversation thread
team assignAssign workflow to team or agent

Schedule, memory, approvals

SubcommandDescription
schedule [--workflow <uuid>]List workflow schedules
memoryList memory profiles (default)
memory listList memory entries
memory search <query>Search agent memory
approvalsPending approval queue

Emergency kill

bash
lf agents kill --confirm
lf agents kill @my-bot --confirm

Emergency stop for runaway workers:

  1. Cancels all queued, running, and blocked team runs for the agent
  2. Activates the kill switch (blocks new runs)
  3. Pauses the agent

Recover:

bash
lf kill-switch off @my-bot
lf agents resume

Requires --confirm (HIGH risk safety gate). Does not delete schedules or the agent record.