Answer: To use the Cleanup specialist custom agent, go to the agents tab at https://github.com/copilot/agents, select the repository and branch, click Create a custom agent, name the file cleanup-specialist.agent.md and paste in the example agent profile, then commit and merge it into your repository's default branch. Then return to the agents tab, select your "cleanup-specialist" agent from the dropdown, enter a task, and click or press Enter. Status: Confirmed Entry: tool/github-copilot/agents-and-automation/use-cleanup-specialist-agent Revision: 3 Digest: sha256:544a789d0d9e0e8e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:33:51Z Last changed: 2026-11-19T13:09:44Z (agent dropdown selection: — → cleanup-specialist) Last verified: 2026-11-20T13:16:03Z Next check: 2026-11-21T13:16:03Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of agents tab URL | https://github.com/copilot/agents | [1] | 2026-11-20 agent profile file name | cleanup-specialist.agent.md | [1] | 2026-11-20 template file name | my-agent.agent.md | [1] | 2026-11-20 agent directory | .github/agents | [1] | 2026-11-20 agent dropdown selection | cleanup-specialist | [1] | 2026-11-20 example task | Refactor and clean up any messy or inconsistent code in the `src/utils` directory, then document the improvements you made. | [1] | 2026-11-20 Sources: [1] GitHub. "Cleanup specialist - GitHub Docs". https://docs.github.com/en/copilot/tutorials/customization-library/custom-agents/cleanup-specialist Role: primary. Accessed: 2026-11-20T13:16:03Z Quote: "Go to the agents tab at https://github.com/copilot/agents ." (Supports: agents tab URL) Quote: "Name the file cleanup-specialist.agent.md and paste in the example agent profile." (Supports: agent profile file name) Quote: "An agent profile template called my-agent.agent.md will open in the .github/agents directory" (Supports: template file name) Quote: "will open in the .github/agents directory, in the repository you chose." (Supports: agent directory) Quote: "select your "cleanup-specialist" agent from the dropdown." (Supports: agent dropdown selection) Quote: "Refactor and clean up any messy or inconsistent code in the `src/utils` directory, then document the improvements you made." (Supports: example task) Snapshot SHA-256: f6e9161233ea0f3162b7e15a0e1a0408d860293e8bd826f1dd955fa05a579c8a (captured 2026-11-18T13:12:40Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:12:39Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:16:03Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:16:03Z Last attempt: 2026-11-20T13:16:03Z Notes and limitations: Extracted automatically from a single official source (section "How to use this custom agent"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/use-cli-in-script How do I use GitHub Copilot CLI in a script to automate tasks? https://latestn.com/tool/github-copilot/agents-and-automation/use-cloud-agent-in-ide How do I use the GitHub Copilot cloud agent from my IDE? https://latestn.com/tool/github-copilot/agents-and-automation/use-code-review-prompt-file How do I use the GitHub Copilot code review prompt file? https://latestn.com/tool/github-copilot/agents-and-automation/use-agent-mode-in-ide-2 How do I use agent mode in my IDE with GitHub Copilot? https://latestn.com/tool/github-copilot/agents-and-automation/use-automations How do I use automations in the GitHub Copilot app? https://latestn.com/tool/github-copilot/agents-and-automation/use-bug-fix-teammate-agent How do I use the bug fix teammate custom agent in GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:09:44Z | changed | agent dropdown selection: — → cleanup-specialist | [1] 2026-11-19T13:09:44Z | changed | template file name: — → my-agent.agent.md | [1] 2026-11-19T13:09:44Z | changed | agent profile file name: — → cleanup-specialist.agent.md | [1] 2026-11-19T13:09:44Z | changed | template filename: my-agent.agent.md → — | [1] 2026-11-19T13:09:44Z | changed | agent profile filename: cleanup-specialist.agent.md → — | [1] 2026-11-17T13:36:17Z | changed | example task: — → Refactor and clean up any messy or inconsistent code in the `src/utils` directory, then document the improvements you made. | [1] 2026-11-17T13:36:17Z | changed | template filename: — → my-agent.agent.md | [1] 2026-11-17T13:36:17Z | changed | agent profile filename: — → cleanup-specialist.agent.md | [1] 2026-11-17T13:36:17Z | changed | agent dropdown selection: cleanup-specialist → — | [1] 2026-11-17T13:36:17Z | changed | merge target: default branch → — | [1] 2026-11-17T13:36:17Z | changed | template file name: my-agent.agent.md → — | [1] 2026-11-17T13:36:17Z | changed | agent profile file name: cleanup-specialist.agent.md → — | [1] 2026-11-13T03:33:51Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/use-cleanup-specialist-agent/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/use-cleanup-specialist-agent POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/use-cleanup-specialist-agent with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/use-cleanup-specialist-agent?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use the Cleanup specialist custom agent in GitHub Copilot? Revision 3, last verified 2026-11-20T13:16:03Z. https://latestn.com/tool/github-copilot/agents-and-automation/use-cleanup-specialist-agent (accessed 2026-11-21T10:03:34Z). @misc{LatestN_tool_github_copilot_agents_and_automation_use_cleanup_specialist_agent_r3, title = {How do I use the Cleanup specialist custom agent in GitHub Copilot?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/use-cleanup-specialist-agent}}, note = {Revision 3; digest sha256:544a789d0d9e0e8e; last verified 2026-11-20T13:16:03Z; accessed 2026-11-21T10:03:34Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/agents-and-automation/use-cleanup-specialist-agent