
Rule types
Tracked write and delete paths are also marked assume-unchanged. Write paths that are not tracked are added to an AIDE-owned block in
.git/info/exclude, so preparation changes stay out of the normal Git changes list.
Add rules
Upload files
Under Write or override, upload binary or text files, or create an empty text file. Edit each destination to the exact repository-relative path you want. UTF-8 contents open in a monospace editor like repository skill files; binary files remain replace-only. The editor also shows the byte size and SHA-256 digest.
Add delete paths
Add each exact file that should be absent after preparation.
Add assume-unchanged paths
Add tracked files whose local edits should stay hidden without AIDE changing their contents.
Save preparations
Confirm the atomic replacement. Existing worktrees are not modified by saving. New and changed definitions become Pending; unchanged rules retain their latest status.
Path and upload limits
- Paths use exact POSIX file syntax. Absolute paths, empty segments,
.or..,.git, backslashes, control characters, directories, and glob characters are rejected. - Only one rule can own a path.
- A repository can have up to 500 rules.
- One uploaded file can contain up to 10 MiB. All uploaded content can total up to 20 MiB.
- The agent refuses paths that escape through a symbolic link.
Worktree creation and Git operations
New worktrees and moved checkouts apply the current rules before they become available. If preparation fails, AIDE removes the new worktree and deletes only a branch created by that job. A normal Sync or Rebase first checks whether managed changes block the operation. If they do, no worktree files are modified and the UI lists the affected paths. Only then can you confirm Force Sync or Force Rebase. A real rebase conflict remains active and suspends preparation statuses. Cancel rebase reapplies the rules. If a rebase is completed outside AIDE, use Apply on Prepare.MCP and workflows
The built-in MCP catalog exposes the same preparation lifecycle:get_codebase_repository_preparationsreads repository rules and uploaded write contents.save_codebase_repository_preparationsatomically replaces the rule set. Omitted rules are deleted, so MCP clients treat it as a destructive tool.get_worktree_preparation_overviewreads a compact status matrix without duplicating uploaded file bytes.run_worktree_preparationsdispatches Inspect, Apply, or Undo for one or more worktrees and returns jobs plus explicit skip reasons.run_worktree_operationacceptsforcePreparationsfor an explicitly forced Sync or Rebase.get_worktree_automationsincludes the typed Auto Sync pause reason, andforce_worktree_auto_syncretries only an Auto Sync paused by a preparation conflict.
Related pages
Prepare
Compare and manage rule status in every worktree.
Repository details
Manage the repository’s other shared settings.
