GitHub Copilot: How to Make the AI Follow Your Code Rules
GitHub Copilot has finally grown up. With the release of VS Code 1.106, developers can create Custom Agents: specialized assistants that remember project context without constant prompting. Previously, @workspace gave averaged answers and ignored a company's internal standards or specific architectural decisions. Now you can write the rules of the game once in a configuration file, and the AI will follow them strictly. It is a shift from a universal know-it-all to a team of narrow specialists who save time on manual context management.
AI-processed from Habr AI; edited by Hamidun News
Imagine you hired a very talented but completely amnesiac intern. He writes great code and knows every modern library, but every morning you have to explain all over again that this project doesn't use Redux and that the documentation lives in one strictly defined folder. That is what working with GitHub Copilot looked like until recently.
You spent precious minutes "feeding" the chat the right files or reminding it for the hundredth time about the architectural patterns your team had adopted. The standard @workspace agent is good as a universal tool, but its "averageness" often slowed down experienced developers. When the AI offers a solution that is technically correct but stylistically alien to your project, that isn't help, it's extra refactoring work.
Things changed with the release of VS Code 1.106. The developers at GitHub and Microsoft finally heard the groans of people tired of endlessly copying instructions into the chat window. Custom Agents arrived: a mechanism that turns Copilot from a random fellow traveler into a staff member who knows all your internal regulations. Instead of pointing the AI to the quirks of your stack every time, you can now create a specialized role. It could be a security expert that checks code against internal checklists, or a frontend architect who knows every nuance of your custom component library. The point is that context no longer has to be forced in by hand; it becomes part of the agent's personality.
Setting up these assistants is as pragmatic as it gets. Microsoft offers two routes: the visual interface in VS Code for those who like things to be visible, and configuration files for automation fans. In the github-copilot.
json file you can now write not just a set of instructions but an entire ecosystem of knowledge. You tell the agent which files to rely on first, which external documentation to take into account, and which rules to follow when generating answers. This is a fundamental shift in user experience.
Where you used to adapt to the logic of the AI, the AI now adapts to your workflow. You are literally making a cast of your experience and handing it to the algorithm.
Why does this matter right now? The industry is gradually moving away from the euphoria over "just smart chats" and toward deep integration of AI into production pipelines. We no longer just want to "generate a function"; we want that function to fit perfectly into an existing project, with all its hacks, legacy code and last year's brilliant architectural finds. Custom Agents tackle the cognitive load on the developer. You no longer need to keep in mind what exactly Copilot knows about your project at the moment. You simply call the right agent and get a result that meets your expectations 90% of the time instead of the usual 60%.
Of course, this is only the beginning of the road to fully autonomous agents, but it is a significant step. In the future we will almost certainly see marketplaces for such custom roles, or the ability to share them within a team through the repository. For now, it is a good reason to rethink your approach to pair programming with AI. If you still use the standard chat for complex project tasks, you are simply overpaying in time because you don't want to configure the tool once. Setting up your own agent takes ten minutes and saves hours that used to go into fixing "hallucinations" or averaged advice from a universal algorithm.
The bottom line: Microsoft is betting on personalization and narrow specialization. Will custom agents be able to free us completely from manual context management, or will we just get one more layer of configuration to keep track of?
- Nov 2, 2026Anthropic needs to grow revenue 32% a year to cover $850 billion in contracts
- Nov 2, 2026Microsoft releases 4B model Mage-VL-Cowork, which solves 66.0% of OSWorld-Verified tasks
- Nov 1, 2026Google's StreamVibe video agent beats other models by 10.7% on response timing and quality
- Oct 30, 2026Mistral opens Large 4 weights: strong at code, but Chinese models score 32 to its 26
Build & Ship Production AI Agents Without Boilerplate Code
Start your free 72-hour trial at Hamidun Academy (academy.hamidun.com) — interactive lessons on Claude Code & Cursor, live Tech Radar, and production agent templates.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.