Migrating AI Coding Assistant Project Configuration Across Tools: A Single Source of Truth with Dual Adapters
This article explains how to migrate an AI coding assistant project’s configuration to another tool without duplicating rules, memory, or workflows. It distinguishes shared project assets from tool-specific adapters, then walks through extracting a single source of truth, writing thin launchers, adapting discovery mechanisms, and validating the migration with a practical checklist.
1. Why Copying the Configuration Directory Directly Is the Worst Option
A long-running AI coding assistant project usually contains more than code. Its project root often accumulates entry-point rule files, long-term memory, custom Skills, Hooks, and reusable workflows. Together, these elements form the tool’s “understanding” of the project: it knows what the project conventions are, what stage the project is in, which operations can be performed directly, and which operations must first ask the developer for confirmation.
When you need to switch the project to another AI coding tool because of account risk, platform policy changes, or a team toolchain adjustment, many developers’ first instinct is to copy the existing configuration directory, rename it, and call it done. This approach looks fastest, but it creates long-term maintenance risks:
- Rule forking: After copying, the project immediately has two sets of rules, two copies of memory, and two workflows. If you change a rule on Tool A today and forget to sync it to Tool B a few days later, the problem may not be obvious at first. Over time, however, the two tools’ understanding of the same project will diverge.
- Memory drift: Long-term memory is essentially a living document that evolves continuously during development. Once two copies exist, any copy that stops being updated becomes an outdated information source. Decisions made by the tool based on outdated memory can then mislead development.
- Doubled maintenance cost: Every rule adjustment, pitfall record, and workflow change must be synchronized on both sides. The burden of “remembering to sync” is purely manual and unreliable.
The conclusion is clear: copying the directory is not compatibility; it is forking.
2. First Clarify What You Are Actually Migrating
To design a reasonable migration plan, the first step is to distinguish two types of content in the project that have completely different natures.
1. Project Assets (Should Be Shared)
- Project rules and architecture conventions
- Long-term memory, current task list, and pitfall records
- Business knowledge base and reference docs
- Reusable workflow definitions
- Automation scripts in Shell, Python, Node, etc.
This content does not belong to any single tool. It just happens to be stored in a tool’s default directory. It describes knowledge about the project itself and is independent of which assistant tool is being used.
2. Tool Adapters (Need One Copy per Tool)
- Which entry file is read automatically at startup
- Which directory custom skills are discovered from
- Where configuration for extension protocols such as MCP-style tool connections is written
- What events hooks listen to and what output protocol they use
- What permission model applies when executing commands
This content is tightly bound to specific tool conventions. It cannot be shared and should not be shared.
If you copy the entire configuration directory as-is, you also copy the tool adapter layer. That is the root cause of runaway maintenance costs later. The correct approach is:
Keep only one copy of project assets, and attach a very thin adapter layer to each tool.
3. Migration Implementation Steps
Step 1: Inventory and Extract Shared Assets
First, inventory the contents of the original configuration directory according to the two categories above. It is recommended to move project assets into a tool-agnostic shared directory, for example:
project/├── docs/ # Architecture conventions, business knowledge base├── memory/ # Long-term memory, task state, pitfall records├── workflows/ # Reusable workflows├── scripts/ # Automation scripts└── .rules/ # Project rules (single source of truth)
After the migration, keep only the minimum content in the original tool directory that points to or references these shared assets. The purpose of this step is to establish a Single Source of Truth: all changes to rules and memory happen in one place only.
Step 2: Write a Thin Launcher for Tool B
Most AI coding tools automatically read an entry file when a task starts. They follow a resolution rule that reads progressively from the Git root to the current working directory, with closer files taking higher priority, and they also have a default size limit for entry files. Therefore, the entry file is not suitable for a giant protocol document. Instead, it should be a thin launcher that does only two things: declare where the project context should be read from, and add a small number of tool-specific conventions.
The structure looks like this (using Tool A and Tool B with different entry file names as an example):
# AGENTS.md (Tool B entry, thin launcher)## Project Context- Project rules and architecture conventions: read the .rules/ directory- Long-term memory and task state: read the memory/ directory- Business knowledge base: read the docs/ directory## Working Conventions- When modifying rules or memory, update only the shared directories above; do not record them in this file- This file should contain only adapter rules specific to Tool B
Tool A’s entry file also points to the same set of shared directories. In this way, both tools read exactly the same project knowledge, rule changes land in only one place, and synchronization problems are naturally avoided.
Step 3: Adapt Memory and Workflow Discovery Mechanisms
Different tools have different discovery directories, event models, and output protocols for custom skills and hooks. The principles for migration are:
- Share the skill itself: Put skill implementation scripts and prompt templates in the shared directory.
- Write registration and triggers separately: In each tool’s adapter directory, write a very thin declaration file that points to the shared skill directory and declares trigger events according to that tool’s protocol.
For differences in permission models—for example, some operations require confirmation under one tool but are allowed by default under another—explicitly declare a consistent security policy in both entry files: “which operations must first ask the developer.” This keeps both ends aligned and prevents inconsistent execution results caused by different permission defaults.
4. Post-Migration Acceptance Checklist
After migration, run through the following checklist:
- Consistency validation: Ask both tools the same set of project questions (tech stack, current task, key rules) and confirm that their answers match.
- Single-source validation: Modify one project rule and confirm that both tools can read the latest version in their next session, with no second place requiring manual synchronization.
- Permission alignment validation: Check whether high-risk operations (deleting files, executing external commands, modifying configuration) have consistent confirmation policies on both ends.
- Size check: Confirm that each entry file remains concise and complies with the tool’s default size limit for instruction chains. Move large content down into the shared documentation directory, and keep the entry file as references only.
- Rollback plan: Preserve the original tool directory’s adapter capability so that it works with the new shared assets. This enables true dual-tool coexistence rather than a one-shot switch.
5. Conclusion
The core challenge of migrating project configuration across AI coding tools is not “whether files can be copied,” but how to avoid forking project knowledge. The right approach is to extract project assets—rules, memory, knowledge base, workflows, and scripts—into a tool-agnostic single source of truth, and then attach a thin entry layer to each tool that contains only discovery rules and protocol adapters. This makes it cheap to adopt a new tool, reduces dependence on a single platform’s account policy changes, keeps both tools’ understanding of the project consistent, and minimizes long-term maintenance costs.
