What I've Learned About GitHub Copilot Agent Mode

Banner image for What I've Learned About GitHub Copilot Agent Mode

Published: 2025-06-23T00:32:02Z

Tags: #githubcopilot #learning #ai #showdev

This is Agent Mode, not autopilot. I tested the edges — from rogue workarounds to “wait, that worked?” moments. Welcome to the weird side.

Surviving Premium Limits & Leveling Up with Custom Instructions

If you’re the kind of dev who treats Copilot’s agent mode like your own private coding butler (and not just a fancier autocomplete), you’ve probably bumped into some premium request limits. I sure did—hard enough to get shut down after just four days of bouncing between 4–5 active projects with Claude models. Whoops.

But instead of a doom spiral, I figured: let’s share what’s actually working, and help someone else avoid my mistakes (and my, uh, "Baby Billy on water skis" level of desperation to get back to coding 🦆⛷️).


TL;DR I'm at a full stop for the moment thanks to this giant red 0 on the page, so I decided to take some time to put together some of the things that's really worked well for me when using Copilot. Here's hoping someone else can avoid some of the mistakes I made early on.


🛠️ My Real-World Copilot Agent Workflow

1. Repository-Specific Instructions 📒

The real MVP for me? The .github/copilot-instructions.md file.

## Purpose
- Summarize your current goal before making changes. 
- For every code edit, output a short plan first.

## Persona
- Assume the user is new to the codebase.

## Technologies
- This repo was recently upgraded to Java 21 from version 17.
- ALWAYS write new code using the latest standards and best practices
Enter fullscreen mode Exit fullscreen mode

🔗 Learn more about repo-specific Copilot instructions here


2. Keep Chats Contained 🗂️

Don’t just let a chat run forever. The context window is limited—so start a new Copilot Agent chat for each new topic, user story, or bug.


3. Limit the Blast Radius 💥

Try not to tackle everything at once.

# Story: Add User Login

**Goal:** Implement secure user authentication.
**Acceptance Criteria:**
- Login with email & password
- JWT token issued on success
- Error shown on failure
Enter fullscreen mode Exit fullscreen mode

4. Iterative Prompt Engineering 🧬

Change instructions slowly and only when you’re sure you understand how Copilot is misbehaving.


5. Encourage Copilot to Self-Check 🦉

If Copilot starts acting weird (editing the wrong files, doing something unexpected), hit pause ⏸️ and ask it to explain its plan.


6. Let Copilot Write Its Own Instructions ✍️🤖

Yes, really! Start an Ask chat, put your repo in context, and prompt Copilot:

“Write your own repo-specific instructions based on the structure and common pitfalls you see.”


📝 Bonus: What to Put In Your Instructions


🚩 What Not To Do


I posted a couple of the best instructions I have so far.

Feel free to copy these and adapt however you need them. Be warned, these work best with Claude models and will cost a fortune but it's so fun to watch 🚂

Please excuse my static "I need a place to put these icons so I'll stop forgetting what I said yesterday" page, but it was there and easy, so that's where they went.

UPDATE: I have these plus more newer versions in my awesome-github-copilot repo.


Ready to help Copilot break out of agent jail?

Share your quirkiest hacks, wildest agent fails, or the most “I can’t believe that worked” workaround you’ve got. The weirder the better—bonus points for GIFs, rhymes, or actual Baby Billy water skis.

So drop your story below and let’s see if we can turn this zero-balance meltdown into a full-on Agent Mode glow-up! 🦑


🛡️ RAI Disclaimer

Everything I share here is my own perspective—created with the help of AI tools (GitHub Copilot, ChatGPT, and their friends), but always with a human in the loop. I do my best to catch accidental bias and fact-check, but if you ever spot something odd, let me know! AI isn’t perfect, and neither am I.

TL; DR: AI helped, but you can blame me for the chaos! 🫠

Read on Dev.to →