execute_cleanup
Executes approved cleanup actions from analysis, moving files with git history preservation and creating missing directories. Accepts specific action IDs or 'all' to perform all moves.
Instructions
Execute approved cleanup actions from analyze_knowledge_repo().
Side effects: moves files within the knowledge repo using git mv
(preserves git history) and creates missing category directories.
NEVER deletes any file. Requires analyze_knowledge_repo() to have
been called first in this session.
Use "all" to execute every proposed action, or pass a comma-separated
list of specific action IDs (e.g. "a1,a3") to cherry-pick.
Call reindex() after cleanup to rebuild the search index.
Args:
actions: Comma-separated action IDs from the analysis report,
e.g. "a1,a2,a5", or "all" to execute everything
project: Target project name (optional)
Returns:
Per-action results (directories created, files moved), any errors,
and a rollback command to undo the moves if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | ||
| project | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |