axint.xcode.guard
Checks project memory and Axint session integrity to prevent context loss during long Xcode tasks. Writes a guard proof and optionally starts a session to maintain state consistency.
Instructions
Guard an Xcode agent session against context compaction and Axint drift. Checks project memory files, active Axint session, latest Axint Run or guard proof, and long-task freshness. Writes... Use: call around long Xcode tasks, context recovery, broad Swift edits, or before claiming runtime proof. Effects: writes .axint/guard proof and may start a session; does not edit app source or use network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory to guard. Defaults to the MCP process cwd. | |
| projectName | No | Project name for the guard report. | |
| expectedVersion | No | Expected Axint version for the active project. | |
| platform | No | Target Apple platform, such as macOS, iOS, visionOS, or all. | |
| stage | No | Current Xcode workflow stage. Defaults to context-recovery. | |
| sessionToken | No | Current axint.session.start token, if already known. | |
| modifiedFiles | No | Files in scope for this task. | |
| notes | No | Agent/user notes to scan for compaction, drift, forgotten Axint usage, or long-task risk. | |
| lastAxintTool | No | Last Axint tool the agent used, e.g. axint.suggest or axint.feature. | |
| lastAxintResult | No | Short result from the last Axint tool call. | |
| maxMinutesSinceAxint | No | Maximum allowed minutes since latest Axint evidence. Defaults to 10. | |
| autoStartSession | No | Whether to start axint.session.start automatically if no active session exists. Defaults to true. | |
| writeReport | No | Whether to write .axint/guard/latest.json and latest.md. Defaults to true. | |
| format | No | Output format. Defaults to markdown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Primary Axint tool response text, matching the first text content block. | |
| isError | No | Whether Axint marked the tool response as an error. |