r/GithubCopilot • • 1d ago

GitHub Copilot Team Replied Local vs Copilot harness on simple task

Task Prompt: Fix the typos (if any) of the files present in XYZ directory.

There were 20+ files.

Local harness:

Reads the 20 files and gives me the response.

Copilot harness:

print all files in directory with line numbers
Ran terminal command: cd G:\xyz  Get-ChildItem | % { "=== $($_.Name)"; $i=0; Get-Content $_.FullName | % { $i++; "$i`: $_" } }

After multiple similar powershell terminal commands

Ran terminal command: Get-ChildItem | % { $h=(Get-Content $_.FullName -TotalCount 17) -join "`n"; $s=[BitConverter]::ToString([Security.Cryptography.MD5]::Create().ComputeHash([Text.Encoding]::UTF8.GetBytes($h))); "$($_.Name) $s" }

Almost 5 permission requests to execute multiple power shell commands to read the files. Can't we just read the files directly?

Even worst is I see a Python script written on fly to predict the typos with regex. Many of the files are just text files.

Is there any way to improve it, Given Local is about to get deprecated.

19 Upvotes

19 comments sorted by

4

u/connor4312 GitHub Copilot Team 1d ago

Thanks for the feedback! Can you share the model+reasoning level you were using for each?

2

u/Anonboy403 1d ago

Claude Sonnnet 5.5 with high reasoning level. Actually I am trying to understand why you guys have pivoted from direct file reading from local harness to something which creates power-shell command on the fly for almost all cases.

Others have pointed out it saves token but I am not seeing any difference. In fact Copilot harness consumed more tokens compared to local harness. I will give the benefit of doubt to Copilot harness as I have only tested with few queries.

Here is another:

Prompt: Check for typos in comments alone.

Copilot harness:

```

Get-ChildItem -Recurse -Filter <some long command in middile> $words = foreach($f in $files){ Get-Content $f.FullName | ? { $_ -match '^\s*(/?\*|//)' } | % { [regex]::Matches($_,'[A-Za-z]{4,}') | % { $_.Value.ToLower() } } }; ($words | Sort-Object -Unique) -join ' '

Tool execution failed with exit code 1
```

It asked me to allow execution of the above command. I honestly could not fully resolve what the regex does in matter of seconds.

Some others are pointing we could customize and allow permissions but I am just wondering why these many commands needs to be executed for a super trivial tasks like reading the files? Many of the commands are failing for the first time and harness keeps refining the commands at my token cost.

Would like to give user an option to choose prior file reading methodology.

1

u/AfterICooked 1d ago

The model chooses what to do

2

u/Anonboy403 1d ago

The same model in local harness is not choosing this behavior.

2

u/AfterICooked 1d ago edited 1d ago

it probably would but the local harness has a stricter system prompt and tools surrounding it. Opus models love building little tools to quickly move through files. They’re optimized for Claude code which has auto mode. If you’re trying to drive agents with manual approvals in 2026 you’re shooting yourself in the foot 

1

u/AutoModerator 1d ago

u/connor4312 thanks for responding. u/connor4312 from the GitHub Copilot Team has replied to this post. You can check their reply here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

5

u/WordWithinTheWord 1d ago

It’s a tradeoff of autonomy vs security.

The inverse is the Claude Code harness that will just let Claude go dig through your computer at will

3

u/Anonboy403 1d ago

I am not sure how later is secure. Any mishap in power-shell command generation would cause undesirable results. May be that is the reason it is asking me to grant permission for each command execution. In my case it prompted multiple times the specified task which was frustrating. I see it once tried to write some Python script on the fly which caused TypeError and tried to fix the script multiple times resulting in token burn.

2

u/WordWithinTheWord 1d ago

Yes that’s why the assisted permissions attempts to guard against undesired or out of scope commands.

I don’t personally have metrics, but all harness optimizers favor command line file navigation because on average it’s more token efficient.

12

u/lppedd VS Code User 💻 1d ago

They'll have to postpone Local removal. There is no way two months of development will fix all these issues. At least that's my opinion on this whole topic.

2

u/smithy_dll 1d ago

Can’t Microsoft use copilot to fix copilot?

2

u/Lovely-Petalz8 17h ago

it definitely feels like a bigger undertaking than just a couple of months.

4

u/Whole-Ad-9429 1d ago

Don't update

2

u/Feisty_Preparation16 1d ago

Open up a workspace with all your current repos. Open settings json, have a chat with your agent referencing the release notes and altering the now editable chat.permissions.assisted.instructions so that when that agent that's enabled by assisted permissions reviews what your actual agent is doing allows pertinent tool calls etc.

I'd love to stay on local but if you want automated agents etc this will work.

You need 1.147 for this.

1

u/AutoModerator 1d ago

Hello /u/Anonboy403. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Future_AGI 14h ago

Rules in .github/copilot-instructions.md load as project-wide chat instructions, and a line like "read files with the editor's read tool, never through terminal commands or scripts" may cut many of the PowerShell detours without repeating it each time.

1

u/_ronki_ 1d ago

No they won’t improve it. It’s the law. Copilot has to suck ass. Sorry.

0

u/Deathmore80 1d ago

Bro that is 100% a skill issue. You can enable full auto bypass all permissions mode. If you're scared you can also just use the assisted permissions mode , which will only ask you for commands that are actually useful to ask if you're sure about it (irreversible changes , doing stuff in the prod db , messing with system32 or something , etc)

The permissions are fully customizable, just read about it. Or if you're lazy hell just ask an AI agent to set it up how you want them

3

u/just_blue 1d ago

Assisted permissions mode is a little more sensitive in my experience. Today it declared a rg command inside the repo as too broad. It will even misread my prompt and declare I did not allow edits, despite I explicitly did. Sometimes I feel the default permissions would prompt me less, lol. Vastly different to "auto" in Claude Code or Codex which come up very rarely, only with real issues. It seems the whole transition from local thing is occupying so many resources that optimizing things is far away, unfortunately.

Don't get me started with broken caching with other model providers and no debug window output from the Copilot harness. I don't think it is as bad as OP described, but the transition would feel way better if you could feel real improvements instead of just discovering what's broken and stopped working.