YBX.

Agents · · 简体中文

GitHub Copilot CLI: a first repository task

Begin with a repository question, review the proposed change, and check the diff and tests before keeping the edit.

Pick a question with a visible answer

Open the CLI inside a repository you control. Ask it to find where the command-line arguments are parsed and point to the tests covering them. Confirm the paths in your editor. The task gives you an easy way to catch a misunderstood project layout.

Turn the answer into a small edit

For a practice change, ask it to improve one usage message and identify the existing test to run. Use plan mode to review the expected files and steps before implementation. During execution, inspect what each tool approval would allow. GitHub documents both one-time approval and permission that can apply again.

Check the effect in your terminal

Compare the changed files with the plan using git diff. Run the named test and try the help command directly. Compare the actual text with the desired text, including any example flags. This article describes a starter workflow based on GitHub’s documentation.

Sources

Related reading