iranti_handshake
Initialize an agent's working memory for a new task by providing operating rules and relevant context, with suggestions for updating shared memory when needed.
Instructions
Initialize or refresh an agent's working-memory brief for the current task. Call this at session start or when a new task begins, passing the task and recent messages. Returns operating rules plus prioritized relevant memory for that task. If the recent messages appear to contain durable facts that are not yet in shared memory, the result may include a backfill suggestion. If your host does not support a true session-start hook, call this on the first user turn before you start answering recall-style questions. Do not use this as a per-turn retrieval tool; use iranti_attend.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The current task or objective. | |
| recentMessages | No | Recent conversation messages. | |
| agent | No | Override the default agent id. | |
| agentId | No | Alias for agent. Override the default agent id. | |
| host | No | Host identifier (e.g. claude_code, codex). Used to verify host setup has been run for this project. | |
| postCompaction | No | Set to true after context compaction to force re-delivery of operating rules. Omit on normal mid-session handshake calls — rules are only sent once per context window. |