AI Code Workflow is a VS Code extension for browser-based AI coding assistants such as ChatGPT, Claude, Gemini, Grok, and similar tools. It refreshes Repomix project context, builds one ready-to-send AI request file, collects optional screenshots or files, opens the selected AI chat, and then safely previews and applies the JSON operations returned by the model.
- Create AI Request: Write a task in VS Code and always refresh
repomix-outputbefore preparing a request. - Multi-Provider Handoff: Open ChatGPT, Claude, Gemini, or Grok.
- Any File Assets: Paste screenshots with
Ctrl+Vor add any local files; they are copied into the handoff package. - Bundled Instructions: Uses the extension's built-in JSON operations instruction template in any project.
- Repomix Scope Rules: Add include/exclude file or folder rules before preparing context, so Repomix can scan only the relevant project areas.
- Clean Handoff Folder: Generates
ai-request.txt, fresh Repomix output, and any added files in one folder for easy multi-file upload. - Temp Cleanup: Removes old AI Code Workflow handoff and asset folders from the system temp directory.
- Review & Apply Patch: Paste the AI JSON response, format it, analyze operations, preview diffs, and apply safely.
- Patch Payload Search: Search inside the AI patch payload, see match counts, and jump between matches while reviewing JSON operations.
- Safety Checks: Blocks absolute paths, path traversal,
.git, andnode_modulesedits before writing changes.
- Open a workspace folder that is a Git repository.
- Run AI Code Workflow: Open from the command palette.
- In Create AI Request, write the task you want the AI model to perform.
- Paste any useful screenshots into the request area with
Ctrl+V. - Optionally add Repomix scope rules to include only specific files/folders or exclude noisy paths from the generated project context.
- Pick an AI provider and click Prepare AI Request. Repomix is refreshed every time using the selected scope rules.
- Paste the copied prompt into the AI chat and upload the files from the handoff folder together.
- Paste the model's JSON response into Review & Apply Patch.
- Use the search field if you need to find specific files, operations, or text inside the patch payload.
- Use Analyze, Preview, and Apply Patch to inspect and write the patch.
aiCodeWorkflow.instructionPath: Optional custom instruction file. Relative paths resolve from the repository root.aiCodeWorkflow.repomixCommand: Command used to refresh project context. Defaults tonpx.aiCodeWorkflow.repomixArgs: Arguments for the context command. Defaults to["repomix"].aiCodeWorkflow.defaultProvider: Provider selected when the workflow panel opens. Defaults tochatgpt.
This project is licensed under the MIT License.