r/GithubCopilot • u/Anonboy403 • 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
4
u/connor4312 GitHub Copilot Team 1d ago
Thanks for the feedback! Can you share the model+reasoning level you were using for each?
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
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.
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