APA / Guides
Multi-Agent Workflow

Managing Multiple Agent Sessions: One Progress Ledger and Decision Queue

Running three AI coding or personal Agents in parallel is easy to start and hard to supervise. When every session holds its own prompts, progress, and blocked questions, you become the human dispatcher between terminals.

Why parallel Agent sessions stall in practice

An individual agent harness is built around a single session. Once you run several tasks in parallel—a bug fix in one terminal, a research task in another, a personal follow-up in a third—four concrete failure modes appear:

Separating execution from state

APA (Awesome Personal Agent) does not replace your agent harness or wrap its loop. It draws a clean line: your Agent owns execution; APA owns the ledger, the clock, and the decision queue.

Problem across sessions Without a workbench With APA
Session needs your decision Blocks silently in a terminal or chat tab Calls apa ask; appears in For you to decide with numbered options and no timeout default
Handing work to another Agent Ad-hoc sub-agent spawn; easy to lose track apa delegate --start or apa dispatch add creates a tracked child item and collects apa report
Starting a fresh session Paste background notes manually apa context gives a bounded overview; apa search and apa item thread drill down on demand
Auditing what happened Grep terminal logs and chat scrollback apa why <id> replays source, rules, judgments, reports, and who answered each decision

The concrete CLI loop every Agent follows

Whether an Agent connects through a native plugin (Hermes, Alma) or runs the apa binary directly (Claude Code, Codex CLI, Pi), every session speaks the same ledger commands:

# 1. Start with current state (overview on first call, only changes after)
apa context

# 2. Drill down into a specific item without flooding the context window
apa search "android crash"
apa item show itm_01...
apa item thread itm_01...

# 3. Queue a real decision instead of stalling in a hidden prompt
apa ask itm_01... --question "Ship fix in 1.3 beta or hold for 1.4?" \
  --option beta="Include in 1.3 beta" --option hold="Hold for 1.4"

# 4. Delegate to another registered executor and collect its report
apa delegate --parent itm_01... --assignee coder --start
apa report itm_02... --outcome done --summary "Fixed crash and opened PR #147"

Questions created with apa ask require at least two real options (or free-text input) and never time out into a default answer. Replies from the Web console or a paired channel (such as Telegram) resume the item and are recorded permanently in the discussion thread.

Objective boundaries: when you do not need APA

Keep things simple when a single session already works. APA adds a self-hosted daemon, a SQLite ledger, and a Web console. Skip it if you only run one interactive coding session at a time, if you want a terminal multiplexer or agent-loop orchestrator, or if you need multi-user team project management. APA is a single-user personal workbench for work that outlives a single session.