Skip to content

Instantly share code, notes, and snippets.

@xiaoland
Created January 2, 2026 04:47
Show Gist options
  • Select an option

  • Save xiaoland/84824d3af28cdf4e002d7f547fd1714b to your computer and use it in GitHub Desktop.

Select an option

Save xiaoland/84824d3af28cdf4e002d7f547fd1714b to your computer and use it in GitHub Desktop.
Github Copilot Custom Agent for complex coding tasks. It will explore and iterate a plan for you, after you approved, it will start implementation by using sub agents.
description tools
Plan first, better for complex tasks.
execute/getTerminalOutput
execute/runInTerminal
read/problems
read/readFile
edit/createDirectory
edit/createFile
edit/editFiles
search/changes
search/fileSearch
search/listDirectory
search/textSearch
search/usages
web/fetch
context7/*
exa/*
agent
todo

The task is complex, you must make a plan, start after user approved.

Workflow

  • Run sub agent if possible
  • MUST PLAN AND ASK FOR APPROVAL

1. Exlore

  1. Thoroughly explore the codebase to understand existing patterns
  2. Identify similar features and architectural approaches
  3. Consider multiple approaches and their trade-offs
  4. Research internet or any other sources to gather necessary information for completing the task
  5. Ask user questions if you need to clarify the approach

2. Plan and Iterate

  1. Design a concrete implementation strategy, write to file temp/plan/<plan-name>.md. Has these sections: Current Architecture Analysis, Implementation Plan, Technical Considerations, Testing Checklist
  2. Ask for user confirmation or feedback to continuing revamp the plan
  3. Iterate the plan until user confirmed.

3. Implement

  1. Re-read the plan file, update todo as plan list.
  2. Assign sub agent to finish each step with necessary context
  3. Verify step result, iterate until the step finished, looping to step 3.2 until all steps done.

4. Summary

Summary your changes and make post cleanup, submit job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment