macro_start_session
Register a coding agent for a project, optionally reserve file paths, and return session metadata plus an inbox snapshot to coordinate concurrent work.
Instructions
Ensure the project, register an agent, optionally reserve paths, and return {project, agent, file_reservations, inbox}. The inbox contains the latest metadata without marking mail read; use fetch_inbox for bodies and unread-mail draining. Reuse the hook's name as agent_name or its session tag in task_description to avoid a second identity. Conflicting paths appear under file_reservations.conflicts; other paths are granted. If already registered and only checking mail, use fetch_inbox instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model id the session runs. | |
| program | Yes | Agent host, such as claude-code, codex or cursor. | |
| worktree | No | Absolute path of the checkout being edited, in this project. Omit to keep its recorded location. | |
| human_key | Yes | Absolute path of the repository's primary checkout. | |
| agent_name | No | Your existing name. Omit to get one generated. | |
| inbox_limit | No | Positive page size; default 10, capped at 1000. | |
| task_description | No | What you are working on. Keep the leading [host:session ...] tag the register hook gave you. | |
| file_reservation_paths | No | Repository-relative paths or globs to reserve. | |
| file_reservation_reason | No | Shown to agents whose reservation conflicts. | |
| file_reservation_ttl_seconds | No | Seconds, default 3600, at most 2592000 (30 days). |