keepcalculator

06 Numbers and Powers

Switch AI Coding Assistants Without Losing Context

Card No. 06·41908 · Updated · Standard formula, shown below

Switching AI coding assistants—say, from GitHub Copilot to Cursor, or from Tabnine to Codeium—usually feels like starting over: the new tool doesn’t know your codebase, your preferences, or the conventions you’ve established. This guide walks you through a practical, step-by-step process to migrate your project context—including key files, coding standards, and custom instructions—so your new assistant can be productive from day one.

What You’ll Need

  • Access to your current AI assistant’s settings or configuration files (e.g., .github/copilot-instructions.md for Copilot, .cursorrules for Cursor, or similar).
  • Your project’s documentation, README, and any existing coding standards or style guides.
  • A list of the custom prompts or commands you regularly use with your current assistant.
  • The new AI assistant installed and authenticated in your IDE or CLI.

Step-by-Step

  1. Inventory your current context sources. Before switching, identify where your current assistant gets its context. Common sources include: project-level instruction files (like .cursorrules or AGENTS.md), global settings, custom commands or slash commands, and the chat history or snippets you frequently reuse. Write these down.
  2. Export your custom instructions. Copy the contents of these files into a temporary document. If your assistant stores settings in a JSON or YAML config, export that too. For example, in GitHub Copilot, you might have a .github/copilot-instructions.md; in Cursor, a .cursorrules file. Save these as plain text or markdown.
  3. Create a portable context file. Consolidate your instructions into a single, well-structured markdown file. This file should include: project overview, tech stack, coding conventions (naming, formatting, error handling), common tasks, and any “do not� rules. Name it something obvious like AI_CONTEXT.md and place it at your project root. This becomes your universal context bundle.
  4. Configure the new assistant to read this file. Most modern AI assistants support a project-level context file. For Cursor, you can create a .cursorrules file with the same content. For Copilot, place it in .github/copilot-instructions.md. For others, check the documentation—many support a AGENTS.md file (now standard in many tools) or a custom instructions field in settings. If the new assistant doesn’t support a file, paste the content into its “global instructions� or “custom instructions� setting.
  5. Migrate your custom commands and prompts. If you had custom slash commands (e.g., /review or /test), recreate them in the new tool. Most assistants allow you to define custom prompts or commands in their settings. Copy the exact prompt text and adjust any syntax differences.
  6. Re-establish your chat history context. If you relied on previous conversations for context, you can’t transfer them directly. Instead, create a “project brief� document that summarizes key decisions, architectural choices, and frequently asked questions. Then, in your first session with the new assistant, paste this brief and ask it to acknowledge the key points.
  7. Test with a representative task. Pick a small but typical task—like adding a new API endpoint or refactoring a function—and run it through the new assistant. Check if it follows your conventions (naming, file structure, error handling). If not, refine your context file.
  8. Iterate and refine. Over the first few days, note where the new assistant misunderstands your codebase. Update your context file with clarifications. For example, if it keeps using var when you prefer const, add that explicitly.

Common Mistakes

  • Assuming the new assistant reads your mind. Even if you have a context file, the assistant may not prioritize it. Always start a session by pointing to it: “Read AI_CONTEXT.md before answering.�
  • Copying instructions verbatim without adapting syntax. Different tools use different formats. For example, Cursor’s .cursorrules uses plain markdown, while some tools expect YAML. Check the new tool’s documentation.
  • Forgetting to update both global and project-level settings. If you have global preferences (like “always use TypeScript�), you need to set them in the new assistant’s global settings, not just the project file.
  • Neglecting to migrate your “negative� instructions. If you had rules like “never use any in TypeScript� or “don’t use console.log in production,� make sure those are included. They’re often the most valuable.

Tips

  • Keep your context file concise. A 2,000-word file is harder for the assistant to parse than a 500-word one. Focus on the most impactful rules.
  • Use a standard filename. AGENTS.md is becoming a cross-tool standard. Adopting it means your context is portable to many assistants.
  • Version-control your context file. Commit it to your repo so changes are tracked and your team can review them.
  • Use the assistant’s “project rules� feature if available. Tools like Cursor and Windsurf have dedicated UI for project rules, which can be more reliable than a plain file.
  • Test with a few different tasks. Don’t just test one happy path. Try error handling, edge cases, and refactoring tasks to see where the assistant struggles.

Troubleshooting

  • The new assistant ignores my context file. First, check the file location and name. For example, Copilot expects .github/copilot-instructions.md, not copilot-instructions.md. If it’s correct, try explicitly referencing it in your prompt: “According to AI_CONTEXT.md, we use snake_case for functions.� If it still ignores it, your tool may have a context window limit—shorten the file.
  • My custom commands don’t work. The syntax for custom commands varies. For example, in Cursor, you define them in .cursorrules with a specific format. Look up the new tool’s documentation for “custom commands� or “slash commands� and adjust accordingly.
  • The assistant gives different answers than my old one. That’s expected—different models have different strengths. Use this as an opportunity to refine your context. If the answers are consistently worse, consider whether the new tool is the right fit.
  • I lost my chat history. You can’t recover it, but you can recreate the important parts. Write a summary of past decisions and open a new chat with that summary as the first message.
  • The context file is too large and gets truncated. Split it into a main file with general rules and a separate file with project-specific details. Reference both in your prompt.

Frequently Asked Questions

Can I automatically transfer my context from one assistant to another?

Not automatically, but most assistants support a common format like AGENTS.md. You can copy your instructions into that file and it will work in many tools. For others, you’ll need to paste into their specific settings.

What if my new assistant doesn’t support a context file?

Most modern assistants do, but if yours doesn’t, use the “custom instructions� or “global instructions� field in its settings. You can also paste the context at the start of each session, though that’s less convenient.

Should I include my entire codebase in the context?

No. The assistant only needs high-level architecture, key conventions, and critical constraints. Including too much code will exceed the context window and dilute the important instructions.

How often should I update my context file?

Update it whenever your conventions change or when you notice the assistant repeatedly misunderstanding something. A good rule is to review it monthly.

Can I use the same context file for multiple projects?

Yes, for general conventions like language style and error handling. For project-specific details, keep a separate file per project and reference both.

What if my team uses different assistants?

Adopt AGENTS.md as a team standard. It’s supported by many tools, so everyone can use it regardless of their chosen assistant.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →