页面简介
Ever having trouble remembering shell commands and flags for this or that? Ever wish you could just *say* what you want the shell to do? Don’t worry: we’re building GitHub Copilot assistance right into your terminal.
正文摘录
Concluded exploration GitHub may or may not release products related to this research in the future. You may be looking for GitHub Copilot CLI, a fully-fledged CLI coding agent.The original name of this project was “Copilot for CLI”. The technical preview ended on March 21, 2024.GitHub Copilot in the CLI is now generally available. The terminal is a powerful place: In a single line of arcane shell magic, you can transform files and parse data at will. But it can take many years of regular use to become a shell wizard. Even with solid proficiency, most of us regularly need to optimistically type --help or scroll through man pages. Oftentimes, you simply turn to a web search, hopefully finding something like a relevant StackOverflow answer that can get you to the next step. What if you had a shell wizard by your side, with comprehensive knowledge of flags and the entire AWK language? When you needed something more complicated than cd myrepo, you could turn to this guru and just ask - in regular, human language, what you wanted to get done! Three modes of interaction Copilot Completions for CLI provides three shell commands: ??, git? and gh?: ?? is meant as the general-purpose goto for arbitrary shell commands. It will compose commands and loops, and throw around obscure find flags to satisfy your query. ?? list js files?? make get request with curl git? is used for searching specifically for git invocations. Compared to ?? it will be more powerful at generating Git commands, and your queries can be more succinct when you don’t need to explain that you’re in the context of Git. git? list all commitsgit? delete a local branch gh? combines the power of the GitHub CLI command and query interface with the convenience of having AI generate the complicated flags and jq expressions for you. gh? all closed PRsgh? create a private repo Related work Product Jun 2021 GitHub Copilot The first generative AI code assistant to reach developers at scale, built and incubated at GitHub Next. Oege, Albert, and 13 others Completed Mar 2022 GitHub Copilot Labs A VS Code extension for experimental applications of GitHub Copilot. Irene, Idan, and Amelia Product Mar 2023 Copilot for Docs How would it feel to have an expert on hand at all times? We built a tool that uses relevant information from a project’s documentation to answer questions or explain concepts. Amelia, Aqeel, and 5 others Product Mar 2023 Copilot for Pull Requests Pull requests are a central part of the GitHub user experience. Copilot for PRs brings the power of Copilot to the PR experience, to help you write better PR descriptions, and to help your team review and merge PRs faster. Andrew, Devon, and 5 others Completed Oct 2022 GitHub Copilot for Your Codebase When editing, GitHub Copilot only knows about the contents of your current file and possibly a few other open tabs, rendering it blind to important type definitions, patterns and greater connections in your codebase. We want to let GitHub Copilot see your entire repo when it comes up with its suggestions. Eddie, Johan, and 2 others Completed Mar 2023 Copilot Voice Write code without the keyboard. Difficulty typing? Use your voice to code without spelling things out by talking with GitHub Copilot. Completed Apr 2024 Copilot Workspace An agentic dev environment, designed for everyday tasks. Don, Eddie, and 5 others Prototype May 2025 Discovery Agent Agentic Setup, Build, and Testing of Repositories. Tamás, David, and Rahul 1 of