Skip to content

About

An agent skill and Nushell CLI for moving Claude Code, Codex, and OMP session transcripts between project paths and machines.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

agent-project-move

CI License: MIT

Repair the project paths recorded by Claude Code, Codex, and OMP after a directory moves, transfer sessions between hosts, and retire selected session copies.

Preview changes before applying them with --apply. Export leaves the source store unchanged.

Install

Choose a plugin, a standalone Agent Skill, or the Nix package. Native Windows is unsupported. Outside Nix, install the skill's required tools, including Nushell.

Claude Code plugin

claude plugin marketplace add hakulab/agent-project-move
claude plugin install agent-project-move@agent-project-move

Pin a release with hakulab/agent-project-move#vX.Y.Z.

Codex plugin

codex plugin marketplace add hakulab/agent-project-move
codex plugin add agent-project-move@agent-project-move

Pin a release with --ref vX.Y.Z on marketplace add.

Skill directories

For standalone skill installation, clone the repository and link its skill directory:

git clone https://github.com/hakulab/agent-project-move ~/.local/share/agent-project-move
skill_dir=~/.local/share/agent-project-move/skills/agent-project-move
mkdir -p ~/.agents/skills ~/.claude/skills
ln -s "$skill_dir" ~/.agents/skills/agent-project-move
ln -s "$skill_dir" ~/.claude/skills/agent-project-move
Directory Read by
~/.agents/skills Codex, OMP
~/.claude/skills, or $CLAUDE_CONFIG_DIR/skills when set Claude Code, OMP

Link the whole skill directory because Codex skips a SKILL.md that is itself a symlink. git pull updates the clone, and git checkout vX.Y.Z pins a release.

Alternatively, use a skill installer:

  • npx skills add hakulab/agent-project-move -g installs it into ~/.agents/skills and links it for Claude Code.
  • Codex's $skill-installer takes --repo hakulab/agent-project-move --path skills/agent-project-move.

Nix

Run it without installing:

nix run github:hakulab/agent-project-move -- scan

Or install it into your profile:

nix profile install github:hakulab/agent-project-move

The package includes runtime tools for aarch64-darwin, aarch64-linux, and x86_64-linux and requires Nix flakes.

Home Manager users add the flake input and import the module:

inputs.agent-project-move.url = "github:hakulab/agent-project-move";

# In the Home Manager configuration
imports = [ inputs.agent-project-move.homeModules.default ];

programs.agent-project-move.enable = true;

The module installs the command and links the skill into ~/.agents/skills and ~/.claude/skills. Set programs.agent-project-move.skillDirectories to change the list, or use overlays.default to install the package through an overlay.

Agent skill

Start a new assistant session after installation, or run /reload-plugins in OMP.

Assistant Explicit invocation
Claude Code /agent-project-move
Codex $agent-project-move, or pick it from /skills
OMP /skill:agent-project-move

Usage

With the command installed, move the project directory first, then preview and apply the recorded-path move:

agent-project-move scan
agent-project-move move ~/src/app ~/work/app
agent-project-move move ~/src/app ~/work/app --apply

Use -a claude,codex to select assistants, or omit it for all three. The skill procedures cover path ordering, cross-host transfers, selected source retirement, and verification. agent-project-move --help lists the commands and options.

Before applying, close affected assistant sessions, including your own. Keep the default recovery backups until migrated sessions resume successfully. See concurrency and recovery.

Tested with

Tested on Linux against:

Assistant Tested
Claude Code 2.1.312
Codex 0.165.0
OMP 18.13.2

New assistant storage formats may leave paths unchanged. If sessions remain under the old path, open an issue with this tool's release tag or commit and the assistant version.

Documentation

Document Description
Agent skill Procedures for moving, transferring, retiring, and restoring
Design Selection, rewriting, and apply-order constraints
Assistant stores What each assistant stores and how a move rewrites it

Contributors start with AGENTS.md. Releases follow the versioning policy and stability surface.

License

Copyright (c) 2026 Hakula. Licensed under the MIT License.

About

An agent skill and Nushell CLI for moving Claude Code, Codex, and OMP session transcripts between project paths and machines.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages