{"id":21375752,"url":"https://github.com/ulysseswu/pscopilot","last_synced_at":"2026-04-02T01:36:34.032Z","repository":{"id":87211119,"uuid":"571262746","full_name":"UlyssesWu/PSCopilot","owner":"UlyssesWu","description":"POwershell PredictOr POwered by coPilOt.","archived":false,"fork":false,"pushed_at":"2022-11-29T15:42:53.000Z","size":252,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-13T10:42:51.117Z","etag":null,"topics":["intellisense","powershell","powershell-module"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UlyssesWu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-11-27T17:18:43.000Z","updated_at":"2025-05-26T22:35:33.000Z","dependencies_parsed_at":"2023-05-19T05:00:42.062Z","dependency_job_id":null,"html_url":"https://github.com/UlyssesWu/PSCopilot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UlyssesWu/PSCopilot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlyssesWu%2FPSCopilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlyssesWu%2FPSCopilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlyssesWu%2FPSCopilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlyssesWu%2FPSCopilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UlyssesWu","download_url":"https://codeload.github.com/UlyssesWu/PSCopilot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UlyssesWu%2FPSCopilot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:05:07.454Z","status":"ssl_error","status_checked_at":"2026-04-02T00:56:46.496Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["intellisense","powershell","powershell-module"],"created_at":"2024-11-22T09:12:40.588Z","updated_at":"2026-04-02T01:36:34.027Z","avatar_url":"https://github.com/UlyssesWu.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSCopilot\nUse **Copilot** to suggest commands when using Powershell.\n\nThis is a project just for fun, don't take it seriously🤣\n\n![PSCopilot](https://github.com/UlyssesWu/PSCopilot/blob/main/img/PSCopilot_1.png)\n\n## Requirements\n1. Powershell 7.2+ with **PSReadLine** module installed (usually by default).\n2. A valid Copilot subscription.\n\n## Use\n1. Build the project.\n2. Open Powershell in Windows Terminal. \n  `Import-Module {path to PSCopilot.dll}`.\n3. `Request-Copilot`, and finish the verification.\n4. Now you can use PSCopilot. Press \u003ckbd\u003eF2\u003c/kbd\u003e *repeatedly* to get suggestions.\n\nYou can use this pattern to *suggest* Copilot:\n\n`echo \"shutdown the computer in 60s\"; ` (now Press \u003ckbd\u003eF2\u003c/kbd\u003e)\n\n(Maybe `Write-Output` is better than `echo`.)\n\n(Optional) You can also copy all files to `$PSHOME\\Modules\\PSCopilot` and use `Import-Module PSCopilot` to launch PSCopilot.\n\n![PSCopilot_demo](https://github.com/UlyssesWu/PSCopilot/blob/main/img/PSCopilot_2.png)\n\n## Debug\n1. Build the project with `Debug` configuration.\n2. Open Powershell in Windows Terminal. \n  `Import-Module {path to PSCopilot.dll}`.\n3. `Set-Copilot -dbg`. Debugger Attach dialog will pop up.\n\n## Credits\nThis project is using [copilotplayground/CopilotDev.NET](https://github.com/copilotplayground/CopilotDev.NET) (license: MIT). Much thanks to the author **TheFortification**.\n\n## FAQ\n\n### Why do I have to Press \u003ckbd\u003eF2\u003c/kbd\u003e repeatedly like a psycho?\nPSReadLine Predictor mechanism does **not** support async suggestion. We have to return suggestions immediately. When you input or press \u003ckbd\u003eF2\u003c/kbd\u003e, a query will be send to Copilot. The returned suggestion will be kept, and will be displayed when you press \u003ckbd\u003eF2\u003c/kbd\u003e again.\n\n### There are many useless suggestions.\nYes, it is silly🤡\n\nTo clear input history, use both \u003ckbd\u003eAlt\u003c/kbd\u003e + \u003ckbd\u003eF7\u003c/kbd\u003e and `Clear-Copilot` command.\n\n---\nby Ulysses (wdwxy12345{at}gmail.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulysseswu%2Fpscopilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulysseswu%2Fpscopilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulysseswu%2Fpscopilot/lists"}