glm_refactor
Refactor code with targeted instructions to improve structure and cleanup. Provide file path and working directory to receive refactored code and a clear explanation.
Instructions
Refactor code using GLM.
Use for: improving code structure, applying patterns, cleanup.
Args: file_path: Path to file to refactor instructions: Refactoring instructions working_directory: Project directory model: "haiku" or "sonnet"
Returns: Refactored code and explanation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | sonnet | |
| file_path | Yes | ||
| instructions | Yes | ||
| working_directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |