Skip to content

ghcs-like behaviour/flag #532

@NSPC911

Description

@NSPC911

Describe the feature or problem you'd like to solve

A behaviour similar to gh-copilot extension's ghcs function

Proposed solution

It lets you get a command quickly, without using extra tokens, unlike the current option of using -p

Example prompts or workflows

I personally love ghcs because it lets me type something, and I get a command in return. That's it, I see the command, if I like it, I run it, else, I tell it to improve it.

Just recently, I wanted a function for this task

in powershell, list the current git branches, pipe it to fzf, and use its output to switch to the branch

I instinctively ran ghcs, but that is deprecated, so I ran

copilot -p "in powershell, list the current git branches, pipe it to fzf, and use its output to switch to the branch"

but this simple prompt made copilot attempt to run the command, then generate a full paragraph, which for some reason made it use 41.9k input, 527 output?? like I just want a command, I don't need a full paragraph

another example is this

in powershell, create 100000 files, but don't show any output

ghcs gave me

for ($i=1; $i -le 100000; $i++) { New-Item "file$i.txt" -ItemType File -ErrorAction SilentlyContinue | Out-Null }

I made it revise its command to show a progress bar

for ($i=1; $i -le 100000; $i++) { New-Item "file$i.txt" -ItemType File -ErrorAction SilentlyContinue | Out-Null; Write-Progress -PercentComplete (($i/100000)*100) -Status "Creating files" -CurrentOperation "Creating file$i.txt" }

and that's it, I ran it, bam done

but copilot however

> copilot -p "in powershell, create 100000 files"
I'll create 100,000 files in PowerShell for you.

✗ Create 100000 files
   $ 1..100000 | ForEach-Object { New-Item -Path "file_$_.txt" -ItemType File -Force | Out-Null };
   Write-Host "Created 100,000 files"
   Permission denied and could not request permission from user

The operation was blocked due to permission restrictions. This is likely because creating 100,000 files in the current directory could significantly impact the system. Would you like me to:

1. Create them in a specific subdirectory instead?
2. Create a smaller number of files?
3. Attempt the operation with a different approach?


Total usage est:       1 Premium request
Total duration (API):  7.6s
Total duration (wall): 12.7s
Total code changes:    0 lines added, 0 lines removed
Usage by model:
    claude-sonnet-4.5    27.7k input, 307 output, 0 cache read, 0 cache write (Est. 1 Premium request)

like what why, I don't need this much, I just want the command, which yes, I can see, but I have to move over my mouse to copy it then paste it, I just don't like this workflow

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions