github / github/copilot-cli

Create a new Shell Mode accessible through shift+tab

未關閉
#2,140 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:input-keyboard area:tools
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

I want to run terminal (shell) commands by default and only query the agent when needed.

### Proposed solution

Create a new mode, Shell Mode, which runs terminal commands by default. Then I can use `!` or `/agent` to access the agent when I need to.

### Example prompts or workflows

If I try and run `ls` or `git status` it queries the agent wasting time and costing credits.

I would like to be able to:
1. Press `shift+tab` until I enter "Shell Mode"
2. Shell mode assumes my text is a shell command by default
3. To access agent features, I use `!` (opposite of the default mode) or `/agent`
4. To return to normal mode, I can use `shift+tab` to toggle back to it.

This way the user has the ability to use copilot-cli as a shell first and an agent second rather than the other way around.

BONUS: Have copilot-cli automatically detect shell commands vs. agent queries and smartly choose the correct path

### Additional context

_No response_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。