Expand description
path resume <input> — fetch / load a Toolpath document, pick an
installed coding-agent harness, project the session into that
harness’s on-disk layout, and exec the harness’s resume command.
§Inputs
<input> is resolved in this order:
https:///http://URL → fetched viapathbase-client, cached unless--no-cache.owner/repo/slugshorthand → same Pathbase fetch flow.- Existing file path → read directly.
- Otherwise treated as a cache id under
~/.toolpath/documents/.
§Harness selection
With --harness X, X is validated against $PATH and used.
Without --harness, an fzf picker shows installed harnesses
with the source harness pre-selected. Source comes from
path.meta.source (claude-code, gemini-cli, codex,
opencode, pi) with actor-string fallback.
§Project directory
-C / --cwd P overrides the shell cwd. The harness is exec’d
with cwd set to P and the on-disk projection is keyed on P.
§Launch
On Unix the harness binary is execvp’d, replacing the current
process. On Windows it’s spawned and waited on with the exit
code propagated. If exec itself fails (e.g. the binary disappears
between PATH check and exec), the recipe is printed to stderr.
Exec is mockable via ExecStrategy: production uses RealExec,
integration tests use RecordingExec to capture
(binary, args, cwd) without launching anything.
See docs/superpowers/specs/2026-05-08-path-resume-command-design.md
for the full design.
Structs§
- Captured
Exec - What
exec_harnesssaw (for tests). - Real
Exec - Production implementation. On Unix this never returns on success (the current process is replaced); on Windows it spawns the child, waits, and propagates the exit code.
- Recording
Exec - Recording strategy for tests.
captured()returns the most recent invocation. - Resume
Args
Enums§
- Harness
Arg - Re-exported so external callers (integration tests, future consumers)
can construct
ResumeArgswithout depending on thecmd_sharemodule directly.
Traits§
- Exec
Strategy - Pluggable exec backend. Production uses
RealExec(execvpon Unix, spawn-and-wait on Windows). Tests useRecordingExec.
Functions§
- run
- run_
with_ strategy - Internal entry point that the integration tests call with a
RecordingExecstrategy. Production callers userun.