
Description
Use when the user wants to migrate Codex state in ~/.codex into Agent Filesystem and mount the same shared Codex memory/settings across multiple computers. Recommends a .afsignore before migration and defaults to excluding worktrees, caches, logs, and temporary files.
SKILL.md
Codex Settings Sync
Use this skill when the goal is to share Codex state across machines by moving ~/.codex into Agent Filesystem, then mounting that same Redis-backed volume on other computers.
Default stance
- Recommend a root
~/.codex/.afsignorebefore migration. - Default to excluding
worktrees/. - Treat
cache/,tmp/,logs/,*.log,*.tmp,*.pid, and*.sockas good default exclusions. - If the user appears to care about restoring local checkout state inside Codex, call out
worktrees/as a choice point before migrating.
Open the bundled starter ignore file at assets/.afsignore and adapt it to the user's needs.
Migration workflow
- Ask the user to stop Codex on the machines involved, or verify that it is already closed.
- Ensure
agent-filesystemis built withmake. - Configure
afsto point at the shared Redis instance. - Create or update
~/.codex/.afsignorebefore migration. - On the source machine, run
./afs ws import --mount-at-source .codex ~/.codex. - Explain that the imported workspace is mounted at
~/.codex, and the workspace name is.codex. - On each additional machine, move aside any existing
~/.codex, choose mount mode with./afs config set --mode mountif you want a live mount there, then run./afs ws mount .codex ~/.codex. - Verify with
./afs statusandls -la ~/.codex.
Secondary machine config
Point the CLI at the same control plane or Redis database. Then run
./afs config set --mode mount for live mount mode, or
./afs config set --mode sync for sync mode, before mounting .codex at
that machine's ~/.codex.
Notes to surface
afs ws importhonors~/.codex/.afsignoreif present..afsignoreuses.gitignore-style pattern syntax.- Excluding a directory like
worktrees/is usually safer than syncing it. - Avoid using the same shared
~/.codexfrom multiple active computers at the same time. - Keep any
.local-backupdirectories until the setup is stable.
Rollback
Source machine rollback:
./afs ws unmount ~/.codex
Secondary machine rollback:
./afs ws unmount ~/.codex
rm -rf ~/.codex
mv ~/.codex.local-backup ~/.codex
More skills from the agent-filesystem repository
View all 2 skillsMore from Redis
View publisheriris-development
integrate with Redis Iris AI products
agent-skills
May 27AgentsAI InfrastructureBackendMemory +1redis-clustering
configure Redis clustering and replication
agent-skills
May 27ArchitectureDatabaseInfrastructurePerformance +1redis-connections
optimize Redis client connections
agent-skills
May 27BackendCachingPerformanceRedisredis-core
model data with Redis structures
agent-skills
May 27ArchitectureData ModelingDatabaseRedisredis-observability
monitor and triage Redis performance
agent-skills
May 27DebuggingMonitoringObservabilityPerformance +1redis-search
implement Redis Search indexing and queries
agent-skills
Jun 24ArchitectureDatabaseEngineeringRedis +1