Using
GitHub Copilot
Last reviewed
Inline completion in VS Code, and agents for the work a team repeats. My current experiment: predefined agents on github.com or GHE, with a learning loop built on agentic GitHub Actions.
Predefined agents
A team gets the same agents on github.com or GHE. Each one is a file in .github/agents/ with a description, a model and a tool allowlist. The knowledge stays in skills, so the agent file stays thin.
The learning loop, still an experiment
After an agent's pull request closes, an agentic GitHub Actions workflow writes a retro and can propose one lesson as an issue. A reviewer does the same with a /lesson <what went wrong> comment on the PR. A confirming label on the issue starts a second workflow, which opens the pull request that changes the skill. Agents never edit skills themselves.
Commands
/agentin Copilot CLI to pick one of the predefined agents./chronicle: session history and tips, still trying it./model plansets a specific model for plan mode, and/modela different, cheaper one for regular work.
gh aw compile <workflow>
Links
- GitHub Copilot docs — Agent mode, custom instructions, model choice.
- GitHub Copilot CLI command reference — Slash commands, options and tools.
- GitHub Agentic Workflows — Docs for the
gh awextension and its workflows.
History
- 29 Nov 2026 Checked against current docs; the learning loop now also takes a
/lessoncomment. - 2 Sep 2026 Reviewed. No change.