AI Coding Assistant Project Asset Migration: Single-Source Configuration and Dual-Tool Adapter Layers
When a project is managed by AI coding assistants, important knowledge often accumulates in a tool-specific directory, creating the impression that those assets belong to the tool. This article separates reusable project assets from tool-specific adaptations and explains how to keep the former as a single, version-controlled source while keeping per-tool entry files, skills, hooks, MCP configuration, and permission policies thin and localized. It also provides an implementation checklist and daily practices for switching between or running multiple coding assistants in parallel without creating long-term knowledge drift.
Why “Copy the Directory” Deserves Another Look
A project managed by AI coding tools for a long time contains more than source code. The assistant often leaves behind a large set of assets: conventions, task context, troubleshooting notes, reusable scripts, and automation workflows. These are team intellectual assets, not the private property of a particular tool. The problem is that they usually live in a tool-specific directory by default, which over time creates the false impression that the assets belong to the tool.
When a team switches to another AI coding assistant or uses another one in parallel, a common first reaction is to copy the entire tool-specific directory, rename it, and move on. It looks like the fastest path, but it creates long-term maintenance risk.
The real cost of copying
Copying immediately creates two rule sets, two memories, and two workflows. From then on, every convention changed on one side may or may not be synchronized to the other. The problem may not show up at first. Over time, however, the two sides develop different understandings of the same project: one says “run tests before committing” while the other still follows the old rule; one reflects an updated architecture decision while the other generates code against a deprecated design.
That is not compatibility. It is a fork. The cost of a fork is not just a one-time migration effort but the continuing cost of maintaining consistency, which can easily become more expensive than doing the migration properly.
Step 1: Clarify What You Are Migrating
Before changing files, classify the contents of the project into two groups.
Group 1: Project assets that should be shared from a single source
- Project conventions and architecture agreements: coding style, directory structure principles, and module boundaries.
- Long-term memory and context: task progress, architecture decision records (ADRs), known pitfalls, and mitigation approaches.
- Business knowledge base: domain terminology, API descriptions, and reference documentation.
- Repeatable workflows: documented build, test, and release processes.
- Shared scripts: automation scripts in Shell, Python, Node, and similar languages.
This content is independent of any specific tool. Any capable coding assistant can consume it. It should exist in one place only as the source of truth and should be managed in Git.
Group 2: Tool adaptation that actually needs migration or bridging
- Which entry file is read automatically at startup.
- Which directory skills and instructions are discovered from and how they are organized.
- Where configuration for extension protocols such as MCP is written.
- Which events the hook mechanism listens for and what output protocol it follows.
- What permission model command execution uses, such as the allowlist, confirmation strategy, and sandbox level.
A simple test helps here: ask, “If I switched to another tool, would this content need to change?” If it would not change, it is an asset. If it would, it is an adaptation.
Step 2: Establish a Single-Source Asset Layer
Create a tool-agnostic asset directory at the project root. For example:
project/├── docs/│ ├── conventions.md # Project conventions│ ├── decisions/ # Architecture decision records│ └── knowledge/ # Business knowledge base├── workflows/ # Descriptions of repeatable workflows├── scripts/ # Shared scripts└── memory/├── current-task.md # Current task context└── pitfalls.md # Known pitfalls
Every tool adapter should do one thing: point to or reference this asset layer rather than copying it. Update a project convention once, and both tools use the new version, eliminating synchronization issues at the root.
Step 3: Write a Thin Adapter Layer for Each Tool
Entry files: a launcher, not a copy of the protocol
Mainstream AI coding assistants follow similar startup entry patterns: before a task begins, they automatically read a conventions file at the project root and merge rules down the directory hierarchy, with files closer to the current working directory taking precedence. The general best practice for such entry files is to keep them concise. Instruction chains often have size limits; inserting an entire large protocol wastes quota and reduces how accurately the model follows the rules.
The right approach is to make the entry file a thin launcher whose core content is references plus guardrails:
# Project Entry (Example)The project conventions, knowledge base, and current task are maintained in the docs/ and memory/ directories.Before starting a task, read:- docs/conventions.md — coding and architecture conventions- memory/current-task.md — current task context- memory/pitfalls.md — known issues and mitigationsHard rules:1. Confirm with the user before modifying convention documents.2. Do not add long-term rules to this file; put all rules in docs/.
Both tools’ entry files can then be just a dozen or so lines and point to the same assets. Either entry file can be rewritten at any time without affecting the project knowledge itself.
Skills and workflows: generalize the content, mount it per tool
A custom skill, or workflow instruction document, is essentially a natural-language description of steps plus the scripts it calls. That content is inherently neutral. During migration, do not copy the directory structure blindly. Instead:
- Extract the body of the skill into the shared directory, using a general format of “steps + validation points + related scripts.”
- In each tool’s skill directory, create a one-line reference file that states: “The body of this skill is in a file under the shared directory; read it before execution.”
Hooks and extension protocols: align by event semantics
Hook mechanisms differ in event granularity across tools. Semantic events such as “before a tool call,” “after a task ends,” and “after a file write” are common. To migrate, build a mapping table: list each hook in the original tool, record its intent, such as “force lint before commit,” then find the semantically equivalent event on the destination side and attach it again, reusing the same script under scripts/. The script is not copied; both sides execute the same file.
MCP and permission models: write separate configurations with the same target
Extension services and permission policies are typical tool adaptation layers. Their configuration formats and locations should follow each tool’s official documentation, with one configuration on each side. Both sides, however, should point to the same extension services and the same permission boundaries. Document that “modify permissions on both sides together,” so the synchronization point shrinks from “all rules” to “a very small number of configuration items,” greatly reducing the chance of drift.
Implementation Checklist and Daily Practices
After migration, use a set of daily practices to keep the structure from degrading:
- Whenever a convention, memory entry, or workflow changes, modify only the shared asset layer. Entry files must not carry long-term content.
- For changes to permission and extension configuration, mark them in the commit message as “dual-tool synchronization items” to prompt a check of the other side.
- Periodically inspect, for example at the end of each iteration, whether both tools behave consistently on the same task. If drift appears, converge them immediately.
- Write down the process of creating the adapter layer as a reusable document so the next project can be migrated by following it, ideally within ten minutes.
Conclusion
Tools can change, but project knowledge should not fork. Separate assets from adaptation, maintain assets at a single source under version control, and keep adapter layers thin and fully rewritable. A project can then move freely among multiple AI coding assistants. This structure has an additional benefit: the work itself is an exercise in project knowledge governance. Whether or not another migration happens later, clearer conventions, decision records, and workflows will continue to improve the team’s development efficiency.
