From b8c85df3980bf02fd378b7b196b8c31b6cd06c73 Mon Sep 17 00:00:00 2001 From: rob Date: Fri, 5 Dec 2025 01:40:52 -0400 Subject: [PATCH] docs: Add AI-Assisted Code Generation section to README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document the new AI assist panel in the code step dialog: - Provider selection dropdown - Editable prompt template with {code} placeholder - Output/feedback area showing status and errors - Auto-adjust button to generate/modify code 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index bbd3d88..83eb988 100644 --- a/README.md +++ b/README.md @@ -304,6 +304,31 @@ vnoremap ec :!explain-code - Code/Prompt editors have DOS-style scrollbars with `▲` and `▼` arrow buttons. - In step dialogs, use `Tab` to cycle between File, Editor, and Output fields. +## AI-Assisted Code Generation + +When adding or editing a **Code Step**, the dialog includes an AI assist panel: + +``` +┌─ Code ─────────────┐ ┌─ AI Assisted Auto-adjust ─────────────┐ +│ result = input... │ │ Provider: [opencode-deepseek] [▼] │ +│ │ │ ┌─ Prompt ──────────────────────────┐ │ +│ │ │ │ Modify this code to... │ │ +│ │ │ │ {code} │ │ +│ │ │ └──────────────────────────────────┘ │ +│ │ │ ┌─ Output & Feedback ───────────────┐ │ +│ │ │ │ ✓ Code updated successfully! │ │ +│ │ │ └──────────────────────────────────┘ │ +│ │ │ < Auto-adjust > │ +└────────────────────┘ └───────────────────────────────────────┘ +``` + +- **Provider**: Select any configured AI provider +- **Prompt**: Fully editable template - use `{code}` placeholder for current code +- **Output**: Shows status, success/error messages, and provider feedback +- **Auto-adjust**: Sends prompt to AI and replaces code with response + +This lets you generate or modify Python code using AI directly within the tool builder. + ## Philosophy SmartTools is a **personal power tool**: