Clean Xcode build artifacts
AI agents invoke xcode_clean to trigger actions in Xclaude Plugin. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
xcode_clean executes a command that interacts with Xcode's build system to remove/clean build artifacts. While not destructive of source code (reversible via rebuild) and not a write to user data, it is an Execute category tool because it runs a build system command whose effects depend on the Xcode project state.
From the tool's definition Tool performs 'Clean Xcode build artifacts', which executes a build system command that modifies the local development environment by removing build outputs. This is a Xcode build operation that triggers external system operations.
Attacks that exploit this kind of access
Clean Xcode build artifacts. It is categorised as a Execute tool in the Xclaude Plugin MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Xclaude Plugin MCP server in PolicyLayer and add a rule for xcode_clean: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Xclaude Plugin. Nothing to install.
xcode_clean is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the xcode_clean rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for xcode_clean. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
xcode_clean is provided by the Xclaude Plugin MCP server (conorluddy/xclaude-plugin). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
xcode_clean is one line of Xclaude Plugin's registry record.
The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.
Teams ship this data inside their own products. See what a licence covers →