Interactive ↔ Autonomous Agent Bridge
Hand off work between interactive Claude Code sessions and autonomous AILANG agents. This page explains the bridge concept and gets you to a working handoff; the pages it links own the details.
The Main Human-AILANG Interface
This is the primary way humans interact with AILANG — through Claude Code for exploration and the Coordinator for autonomous execution.
What It Does
The workflow:
- Interactive: You explore with Claude Code, create design docs
- Handoff: Send a message to an agent inbox via
ailang messages send - Autonomous: Coordinator assigns the task, agents implement in isolated worktrees, every merge goes through human approval
- Notification: Your next session shows the completed work via the SessionStart hook
Quick Start
In the AILANG repository the hooks
(.claude/settings.json) and coordinator config are already set up. Elsewhere,
follow the Hooks Setup Guide first.
# Start server + coordinator
make services-start
# Send a test message
ailang messages send user "Integration test" --title "Test" --from "claude-code"
# Check inbox, then acknowledge
ailang messages list --unread
ailang messages ack --all
A Complete Handoff, End to End
- Explore interactively — Claude Code investigates a failure and writes
design_docs/planned/M-FIX-FACTORIAL.md. - Hand off:
ailang messages send sprint-planner "Plan sprint for M-FIX-FACTORIAL" \--title "Sprint: M-FIX-FACTORIAL" --from "user"
- Autonomous pipeline —
sprint-plannerdrafts a plan in a worktree; on your approval it merges and triggerssprint-executor, which implements with TDD and files its own approval request. - Notified next session — the SessionStart hook surfaces the completion message in your inbox.
- Review:
ailang messages read <id> # the agent's reportailang chains view <chain-id> --spansailang chains diff <chain-id> # the actual code changes
Where the Details Live
| Topic | Page |
|---|---|
| Full messaging CLI (send/read/ack/forward/search) | Agent Messaging |
| Hook configuration (HTTP + command hooks, auth) | Hooks Setup |
| Coordinator: agents, pipelines, approvals | Coordinator Guide |
| Worked multi-agent workflows | Agent Workflows |
| Cross-repo messaging via GitHub | Agent Messaging |
| Chains, costs, dashboard, tracing | Telemetry |
Practices that matter: one feature per design doc; descriptive message
titles (Sprint: M-FIX-EVAL-FACTORIAL, not fix); review diffs before
approving; --type bug auto-creates GitHub issues.
If It Doesn't Work
curl http://127.0.0.1:1957/health # server up?
ailang coordinator status # coordinator running?
tail -f ~/.ailang/state/hooks.log # hooks firing?
More in the Hooks Setup troubleshooting section.