Skip to content

Commit 49b6d49

Browse files
Vadim MitroshkinVadim Mitroshkin
authored andcommitted
feat: implement Ask mode with /ask and /code commands
- Add agent_modes.py with AgentMode enum (CODE/ASK) - Add mode-aware tool filtering for ask mode - Add /ask and /code REPL commands - Fix tool calling prompts (fileName, filepath) - Enhance CODE mode prompt with explicit tool instructions
1 parent f028876 commit 49b6d49

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
# 🤖 SuperCoder
22

3-
[![Version](https://img.shields.io/badge/version-0.2.2-blue.svg)](https://github.com/Mage212/supercoder)
3+
[![Version](https://img.shields.io/badge/version-0.2.3-blue.svg)](https://github.com/Mage212/supercoder)
44
[![Python](https://img.shields.io/badge/python-3.11+-green.svg)](https://python.org)
55
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
66

77
**AI Coding Assistant for the Terminal** — A powerful, extensible, and terminal-native coding agent designed to help you build, search, and fix code with natural language.
88

99
---
1010

11-
## 🆕 What's New in v0.2.2
11+
## 🆕 What's New in v0.2.3
1212

13-
- **Improved UI**: Enhanced chat interface with styled user/assistant messages and better visual feedback
13+
- **Ask Mode**: New `/ask` command for Q&A without file modifications
14+
- **Code Mode**: New `/code` command to switch back to full editing mode
15+
- **Mode-Aware Tools**: Ask mode restricts tools to read-only operations
16+
- **Enhanced Prompts**: Improved tool calling examples with correct parameter names
17+
18+
### Previous: v0.2.2
19+
20+
- **Improved UI**: Enhanced chat interface with styled user/assistant messages
1421
- **Interactive Command Execution**: EOF-based input handling to prevent command hangs
15-
- **Custom Headers**: Tool name and repository link now passed in HTTP headers for better API compatibility
16-
- **Tool Calling Configuration**: New `tool_calling_type` parameter in config to specify model-specific tool calling instructions (supports `supercoder`, `qwen_like`, `json_block`, `xml_function`)
22+
- **Tool Calling Configuration**: Model-specific tool calling instructions
1723

1824
---
1925

@@ -156,6 +162,9 @@ supercoder --no-repo-map # Disable RepoMap
156162

157163
| Command | Description |
158164
|---------|-------------|
165+
| `/ask` | Switch to Ask mode (Q&A without edits) |
166+
| `/ask <question>` | Ask one question without editing, then return |
167+
| `/code` | Switch to Code mode (full editing) |
159168
| `/help` | Show available commands |
160169
| `/continue` | Resume a previous session |
161170
| `/sessions` | List saved sessions |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "supercoder"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
description = "AI Coding Assistant for the Terminal"
55
readme = "README.md"
66
requires-python = ">=3.11"

0 commit comments

Comments
 (0)