Save the current Codex session so the user can find it later or resume from another tool. Trigger only when the user explicitly asks to save or preserve this conversation, or to save or move it to a named Space.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Save Thread?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nowledge-co-save-thread-b5acbc51)
---
name: save-thread
description: Save the current Codex session so the user can find it later or resume from another tool. Trigger only when the user explicitly asks to save or preserve this conversation, or to save or move it to a named Space.
---
Save the actual Codex session transcript, not a summary, so it can be searched, resumed, or referenced from any connected tool.
MCP retrieval and memory-write tools do not replace this path. Real Codex thread import still goes through `nmem t save --from codex`.
## Command
Run the platform-specific packaged runner under `scripts/`, resolving that path
relative to this `SKILL.md` as required by Codex's skill rules. The runner
locates the installed desktop or standalone CLI even when Codex Desktop uses a
controlled PATH. Do not add a Python or Node launcher; those commands can be
absent from the same controlled PATH.
On macOS and Linux:
```bash
"<skill-dir>/scripts/save_thread.sh" --json t save --from codex -p . -s "Brief summary of what was accomplished"
```
On Windows PowerShell:
```powershell
& "<skill-dir>\scripts\save_thread.ps1" --json t save --from codex -p . -s "Brief summary of what was accomplished"
```
## Workflow
1. Write a concise 1-2 sentence summary of what was accomplished.
2. Replace `<skill-dir>` with the absolute directory containing this `SKILL.md`,
then run the platform-appropriate command above.
3. Report whether the thread was created or updated, how many messages were stored, and the thread ID.
## Save or move to a Space the user names
For requests such as "save this conversation to the Test Space", act only on
the current conversation in an existing Space.
1. Use `$CODEX_THREAD_ID` as the exact current session ID, `codex` as
`<host>`, and `codex-<session-id>` as `<thread-id>`. If the session ID
is missing, stop and report that the current session could not be identified.
Run every `nmem` command below through the packaged runner described above.
2. Resolve the destination with `nmem --json spaces list` and
`nmem --json spaces show "<name>"`. Use the returned exact Space ID in all
write and verification commands. Treat a Space as the target only when the
user's name matches its name or ID exactly. If the name does not match
exactly, such as "Test Space" for a Space named "Test", name the candidate
Spaces and ask which one to use; do not pick one yourself. If you cannot
resolve one writable target, report the reason and ask which Space to use.
3. Look up the exact Thread with `nmem --json t show "<thread-id>" -n 1`. Use
the returned `space_id` as the source. A missing result from one Space
only covers that Space. If the lookup was scoped by the current settings,
check the other readable candidate Spaces by exact ID. If you cannot
distinguish a missing Thread from a failed lookup or identify one exact
source, stop and explain what needs to be resolved.
4. For an existing Thread in a different Space, preview the move:
```bash
nmem --json t move "<thread-id>" --space-id "<source-id>" --to-space-id "<target-id>" --dry-run
```
Continue only when the preview identifies one movable Thread. If the target
is shared or the preview shows new readers, name the destination and ask
for confirmation. If the preview requires the author to use the Team share
flow, direct them to **Share** on the conversation in Nowledge Mem and stop
here: do not run the save in step 5, because the Thread is still in its
source Space. For an allowed and confirmed move, repeat the same command
with `--force` in place of `--dry-run`.
5. For a new Thread in a shared Space, confirm the destination with the user.
Save the current transcript in the target Space. Use the same save for a
Thread already there, including after a successful move, to capture the
latest available turns.
```bash
nmem --json t save --from "<host>" --session-id "<session-id>" --space-id "<target-id>"
```
Inspect the save result for this exact session and Thread. A missing, skipped
or failed result leaves the requested save unconfirmed, even if the Thread
already appears in the target Space.
Another writer, such as automatic capture, can create the Thread between
the lookup and the save. If the save reports that the Thread is stored in
another Space, look it up again as in step 3, follow step 4 with its
confirmation rules, and then run this save again.
6. Read back `nmem --json t show "<thread-id>" -n 1 --space-id "<target-id>"`.
Confirm the same Thread ID and the exact target, and report the Space and
`total_messages`. Report save success only when the save result and readback
both confirm it. Report a verified move separately if the save is unconfirmed.
Report an ambiguous, unknown or unwritable target without falling back to
Default. In that report, say that the requested save did not happen, and that
automatic capture may still store this conversation in its usual Space.
Ordinary automatic capture follows the existing Thread. A host Space
override can affect subsequent capture, so mention any known override when
reporting the result.
## Options
- Specific session: `--session-id <id>`
## Important
This is a **real session import**. It captures the actual Codex transcript, not a summary. The `-s` flag adds searchable metadata; the full conversation is preserved.
Do not replace this with `nmem t create`. Do not fabricate a transcript.
## When to use
- User explicitly asks to save the session.
- Do NOT auto-save without the user's request.
## Links
- [Threads](https://mem.nowledge.co/docs/threads)