Pilot Mode¶
Pilot Mode gives you explicit control over agent sessions, allowing you to manage long-running agent processes with proper session tracking and registration. It's particularly useful when working with Kimi Code CLI or when you need precise control over session lifecycles.
What is Pilot Mode?¶
By default, AgentWeave's watchdog automatically triggers agents when new messages or tasks arrive. In Pilot Mode:
- Agents are registered but not auto-triggered
- You manually control when agents start and resume
- Session IDs are tracked and registered with the Hub
- Agent state is visible in the dashboard
When to Use Pilot Mode¶
Use Pilot Mode when:
- Working with Kimi Code CLI - Register session IDs for proper context management
- Running agents on different machines - Track which agent is where
- Avoiding auto-execution - You want manual control over agent triggers
- Managing long-running sessions - Resume previous conversations intentionally
Enabling Pilot Mode¶
For Any Agent¶
Example:
During Initial Configuration¶
Disable Pilot Mode¶
Registering Sessions¶
Once an agent is in Pilot Mode, register its session ID so AgentWeave can track it:
1. Start Your Agent¶
Start your agent normally and get its session ID:
For Kimi:
kimi --agent-file .agentweave/agent-kimi.yaml
# Note the session ID from output: "Session: abc123..."
For Claude:
claude --resume <previous-session> --append-system-prompt-file .agentweave/context/claude.md
# Or start fresh and note the new session ID
2. Register the Session¶
This: - Registers the session with the Hub (if HTTP transport) - Updates local agent session file - Prints the ready-to-use launch command
Kimi Pilot Workflow¶
AgentWeave can auto-generate Kimi configuration files for seamless pilot integration:
1. Configure with Pilot Flag¶
This generates:
- .agentweave/context/kimi.md - Context file with role guides
- .agentweave/agent-kimi.yaml - Kimi agent configuration
2. Start Kimi¶
3. Register the Session¶
After Kimi starts and shows its session ID:
4. Future Launches¶
Now you can resume with:
Claude Proxy Pilot Workflow¶
For claude_proxy agents (Minimax, GLM, etc.), Pilot Mode works similarly:
1. Configure Agent¶
2. Start and Register¶
# Start the agent
agentweave run --agent minimax
# Note the session ID
# Register it
agentweave session register --agent minimax --session <session-id>
3. Set Model (Optional)¶
Viewing Pilot Agents in Dashboard¶
When using the Hub with HTTP transport:
- Open the dashboard at
http://localhost:8000 - Navigate to Mission Control
- Pilot agents show:
- Pilot badge - Indicates pilot mode is active
- Registered session ID - The current session
- Manual trigger button - Trigger without auto-ping
Session Management¶
Checking Registered Sessions¶
Shows pilot status for each agent.
Updating a Session¶
If you start a new session, re-register:
The old session is replaced - Hub tracks only the current session per agent.
Session Persistence¶
- Local: Session stored in
.agentweave/agents/<agent>-session.json - Hub: Session stored in
agents.registered_session_idcolumn - Both are updated when you run
session register
Pilot Mode vs Auto-Trigger¶
| Feature | Normal Mode | Pilot Mode |
|---|---|---|
| Watchdog auto-trigger | ✅ Yes | ❌ No |
| Session registration | Optional | Required |
| Dashboard visibility | Yes | Yes (+ pilot badge) |
| Manual control | Limited | Full |
| Best for | Hands-off automation | Explicit session management |
Combining with Yolo Mode¶
Pilot agents can still use Yolo mode for confirmation suppression:
This means: - You manually trigger the agent (Pilot) - When triggered, it acts without confirmations (Yolo)
MCP Tools¶
Agents can register their own sessions via MCP:
# Register current session
register_session(
from_agent="kimi",
session_id="abc123..."
)
# Get agent config (includes pilot status)
config = get_agent_config("kimi")
# Returns: {"runner": "kimi", "pilot": true, ...}
Troubleshooting¶
"No session found" when registering¶
Ensure you've initialized AgentWeave:
Session not showing in Hub¶
-
Verify HTTP transport is configured:
-
Check Hub connectivity
-
Re-register the session
Kimi YAML not generated¶
Make sure to use --pilot when configuring:
If still missing, manually generate: