Migrating AI Coding Assistant Workflows Without Forking Your Project Assets: A Shared-Asset Architecture

    When switching between terminal-based AI coding tools, copying the entire config directory seems fastest but creates two diverging copies of your project rules, memory, and workflows. This article walks through a layered migration approach: keep project assets in a single shared location, and let each tool own only a thin adaptation layer for entry points, hooks, and permissions — so your accumulated project knowledge stays in one place no matter which tool you use.

    The Problem: Why “Copy the Directory” Isn’t a Migration

    In AI-assisted coding workflows, developers often settle on one terminal-based AI coding tool for the long term. Over time, the project accumulates a set of “cognitive assets”: project conventions, long-term memory, custom skills, automation hooks, and so on. These assets let the tool know, at the start of every new session, where the project stands, which actions can be executed directly, and which require explicit confirmation.

    When you need to switch to a different tool — due to account risk, cost considerations, or a team-wide tool standard — the instinctive move for most developers is: copy the entire configuration directory, rename it, done.

    The problem with this approach is that you immediately end up with two sets of rules, two sets of memory, and two workflows. You update a convention on one side one day, forget to sync the other a few days later. Nothing seems wrong at first, but over time the two tools develop diverging understandings of the same project — that’s not compatibility, that’s a fork.

    The cost of forking is invisible: inconsistent conventions cause code style drift, inconsistent memory leads to contradictory suggestions, and eventually you spend significant time on manual synchronization — defeating the whole purpose of accumulating project assets.

    The Core Idea: One Copy of Assets, a Thin Adaptation Layer for Each Tool

    The correct migration architecture is layered:

    1. ┌─────────────────────────────────┐
    2. │ Shared Project Asset Layer │
    3. │ (single copy) │
    4. │ Conventions / Memory / │
    5. │ Scripts / Skills │
    6. ├────────────────┬────────────────┤
    7. │ Tool A Layer │ Tool B Layer │
    8. │ Entry file / │ Entry file / │
    9. │ Hooks / Perms │ Hooks / Perms │
    10. └────────────────┴────────────────┘

    The key principle: assets belong to the project, not to the tool. Tool differences should only show up in a thin adaptation layer that handles “how these assets are discovered and loaded.”

    Step 1: Identify What You’re Actually Migrating

    Before making any changes, take an inventory. A mature AI coding project typically mixes two kinds of content.

    Category 1: Project assets (should be shared)

    • Project conventions and architectural decisions (coding style, directory structure, commit standards)
    • Long-term memory: current task status, past decisions, pitfall records
    • Domain knowledge base and reference docs (terminology, API contracts, deployment notes)
    • Repeatable workflows and automation scripts (Shell, Python, Node, etc.)

    None of these “belong” to any tool — they just happen to live inside one tool’s config directory.

    Category 2: Tool adaptations (the only things that actually need migrating)

    • Which entry file the tool auto-reads at startup
    • Where skills are discovered from and how they’re declared
    • Where external tool integrations (e.g., MCP-style protocols) are configured
    • Which events hooks subscribe to and what output protocol they use
    • The permission model and confirmation policy for command execution

    Without this distinction, the most common mistake is copying the whole directory — fastest upfront, most expensive to maintain later.

    Step 2: Tell the New Tool Where to Start

    The original tool’s project entry is typically a description file (something like a PROJECT_RULES.md). The new tool has its own auto-loading mechanism: it usually reads a conventionally named entry file before each task begins, and supports hierarchical loading from the repository root down to the current working directory — rules closer to the current directory take higher priority.

    Since instruction chains usually have size limits, the entry file shouldn’t contain a giant monolithic spec. The recommended pattern: the entry file acts only as a pointer, not as the content.

    1. # Entry file example (Tool B)
    2. For the full project conventions, read:
    3. - Project conventions: ./docs/conventions.md
    4. - Current task: ./docs/current-task.md
    5. - Pitfall log: ./docs/pitfalls.md
    6. - Workflow scripts: ./scripts/

    Both tools’ entry files point to the same set of shared documents, and the content is maintained only once in the shared layer.

    Step 3: Sharing Memory and Knowledge

    Long-term memory is the easiest thing to fork. The recommendation is to pull memory content out of tool-private directories and turn it into ordinary project documents:

    • Current task status: a fixed file tracking work in progress and next steps
    • Decision records: lightweight ADR-style (Architecture Decision Record) notes explaining “why we did it this way”
    • Pitfall log: problems encountered and their solutions, appended over time

    Keep the tool’s built-in “memory feature” only for short-term, within-session context. All cross-session knowledge lives in the version control repo. There’s an additional benefit: memory becomes reviewable in code reviews, shareable with the team, and traceable through Git history.

    Step 4: Adapting Hooks and Permissions

    Hooks and permission models are where the two tools differ the most. They usually can’t be reused directly and need to be written separately — but you can keep their behavioral semantics consistent:

    1. Event mapping table: list the events the original tool subscribes to (e.g., “after file modification,” “before command execution”) and find the corresponding or closest event in the new tool
    2. Push logic down: write the core logic triggered by hooks as standalone scripts, so both tools’ hook configs are just thin wrappers that call these scripts
    3. Align permission policies: compile a checklist of “which commands run without confirmation, which require manual approval,” and have each tool’s permission config implement that checklist

    This way, even if the hook protocols differ, there’s still a single source of truth for behavior rules.

    Step 5: Build an Anti-Fork Mechanism

    Once the architecture is in place, add mechanisms to prevent drift over time:

    • Change only the shared layer: make it a habit — any convention change goes directly into the shared documents, not into a tool’s entry file
    • Regular consistency checks: write a simple script that verifies both entry files’ pointers resolve to valid files and that the permission checklist matches the actual configs; this can be wired into a CI pipeline
    • Keep entry files minimal: the thinner the entry file, the lower the chance of forking

    Conclusion

    Tool migration isn’t really about moving files — it’s about decoupling asset ownership from tool adaptation. Stick to four principles — one copy of assets, two adaptation layers, pointer-style entry files, and logic pushed down into scripts — and no matter which tool you switch to next, the migration cost is just one thin adaptation layer, while your project’s accumulated conventions, memory, and workflows remain stable and belong to the project itself.