axint.xcode.guard
Guards Xcode agent sessions against context compaction and Axint drift by checking project memory, active sessions, and freshness, ensuring proof before long tasks or edits.
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. Use: call around long Xcode tasks, context recovery, broad Swift edits, or before claiming runtime proof; use workflow.check. Inputs: stage selects the gate; modifiedFiles and notes narrow drift checks; autoStartSession defaults true. 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. | |
| notes | No | Agent/user notes to scan for compaction, drift, forgotten Axint usage, or. | |
| stage | No | Current Xcode workflow stage. Defaults to context-recovery. | |
| format | No | Output format. Defaults to markdown. | |
| platform | No | Target Apple platform, such as macOS, iOS, visionOS, or all. | |
| projectName | No | Project name for the guard report. | |
| writeReport | No | Whether to write .axint/guard/latest.json and latest.md. Defaults to true. | |
| sessionToken | No | Current axint.session.start token, if already known. | |
| lastAxintTool | No | Last Axint tool the agent used, e.g. axint.suggest or axint.feature. | |
| modifiedFiles | No | Files in scope for this task. | |
| expectedVersion | No | Expected Axint version for the active project. | |
| lastAxintResult | No | Short result from the last Axint tool call. | |
| autoStartSession | No | Whether to start axint.session.start automatically if no active session exists. | |
| maxMinutesSinceAxint | No | Maximum allowed minutes since latest Axint evidence. Defaults to 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| isError | No |