session-migrate
llms.txt127 starsChanged 3 months agoMITView on GitHub
Canonical project: https://github.com/xhluca/session-migrate Published package: https://pypi.org/project/session-migrate/ CLI reference: https://github.com/xhluca/session-migrate/blob/main/docs/cli-reference.md Use this procedure when the user asks you to migrate one local coding-agent session. Read the session selector, source agent, and target agent from the user's message. If any value is missing, ask for it before changing state. Accepted format names are: claude, codex, pi, omp, opencode, copilot, antigravity, vibe, muse, qwen, kimi, grok, kilo, openhands, hermes, mastracode, devin, and cursor. Cursor is experimental, version-pinned, and text-only. 1. Read the current…
- Installs packages
The file
We split this llms.txt into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use this procedure when the user asks you to migrate one local coding-agent session.
- Very specific: line 18
Read the current project README and CLI reference.
- Very specific: line 22
Use "$TMP/venv/bin/session-migrate" for every operation and verify its version.
- Distinctive: line 29
If the result is missing, ambiguous, duplicated, unsupported, corrupt, or busy, stop and ask the user instead of guessing.
- Distinctive: line 31
When reporting discovery, allow only structural fields: result count, catalog ID, native session ID, format, kind, lifecycle, …
- Distinctive: line 39
Do not copy or modify authentication stores.
- Very specific: line 45
Run transfer --dry-run with the selected source, requested target, fixed UUID, and correct target CWD.
- Distinctive: line 54
Verify that dry-run and apply returned the same session ID, target path, manifest path, and CWD.
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# session-migrate agent procedure Canonical project: https://github.com/xhluca/session-migrate Published package: https://pypi.org/project/session-migrate/ CLI reference: https://github.com/xhluca/session-migrate/blob/main/docs/cli-reference.md Use this procedure when the user asks you to migrate one local coding-agent session. Read the session selector, source agent, and target agent from the user's message. If any value is missing, ask for it before changing state. Accepted format names are: claude, codex, pi, omp, opencode, copilot, antigravity, vibe, muse, qwen, kimi, grok, kilo, openhands, hermes, mastracode, devin, and cursor. Cursor is experimental, version-pinned, and text-only. ## Procedure 1. Read the current project README and CLI reference. Install the released package from PyPI in a private temporary virtual environment with `python3 -m venv "$TMP/venv"` followed by `"$TMP/venv/bin/python" -m pip install --index-url https://pypi.org/simple/ session-migrate`. Use `"$TMP/venv/bin/session-migrate"` for every operation and verify its version. Do not run code from an untrusted fork. If installation or version verification fails, stop; never reproduce or infer a native schema manually. 2. Refresh the session catalog across the available default roots. Redirect raw catalog/search/show JSON into private mode-0600 temporary files; never stream it directly to the terminal or conversation. Locate the requested UUID or title in the requested source format and select exactly one native session. If the result is missing, ambiguous, duplicated, unsupported, corrupt, or busy, stop and ask the user instead of guessing. 3. When reporting discovery, allow only structural fields: result count, catalog ID, native session ID, format, kind, lifecycle, status/reason, record/byte counts, CLI version, start time, duplicate flag, and history mode. Never output catalog title/preview, source path/root/CWD, raw inspect JSON, message text, tool names, tool call IDs, tool arguments or output, image/audio bodies, credentials, or authentication files. A title or preview can contain the first user prompt. Parse private JSON and print only the explicit allowlist. Do not copy or modify authentication stores. 4. Record the source artifact or selected shared-database identity and SHA-256 before conversion. Generate one fresh target UUID before the dry-run. Pass that UUID with `--session-id` to both the dry-run and the apply command; never let either command generate a different UUID. 5. Run `transfer --dry-run` with the selected source, requested target, fixed UUID, and correct target CWD. Review every warning and every nonzero `dropped_events` entry. Explain them to the user. If a warning indicates loss of user/assistant message text or broken tool-call linkage, stop for approval. 6. Confirm the native target and manifest paths do not exist. Apply the same migration with the same UUID and options. Never overwrite an artifact and never modify the source. Only `session-migrate` may create the target: do not invoke the target agent to generate a template, and do not hand-write or patch a native transcript/database. 7. Verify that dry-run and apply returned the same session ID, target path, manifest path, and CWD. Verify the source identity and SHA-256 are unchanged. Validate or inspect the new native target without printing conversation bodies. 8. Return a concise result: source and target formats, new session UUID, warnings/counts, required working directory, and the exact native resume command. Stop and report the failed invariant if any check differs. The generated target is a new independent native session, not a byte-for-byte clone or a live synchronization. Do not bypass a fail-closed format or version check. Consult the project troubleshooting guide when the CLI rejects a source.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

