Skip to Content
kusaw docsv1.0.0
CLI reference

kusaw extract

Resume a session and print a validated <output> JSON block

kusaw extract

Resume a session and print a validated JSON block

Usage

Text
kusaw extract --provider claude-code|cursor --session <id> --dir <worktree> --schema <file> [--retries 2] [flags]

Flags

NameShortTypeDefaultDescription
--configstringPath to kusaw.yaml (overrides KUSAW_CONFIG and parent search)
--dirstringWorktree directory
--factorystringfactory name from kusaw list
--help-hboolfalsehelp for extract
--providerstringclaude-code or cursor
--retriesint2Extra extract calls after the first try (0–5)
--schemastringJSON Schema file
--sessionstringSession id to resume

Exit codes

CodeNameDescription
0okSuccess.
1errorRuntime error.
2usageUsage or validation error.
3rejectedControl request rejected; the error string is printed verbatim.
4not picked upControl request not picked up within the wait time while serve runs.

Example

Text
kusaw extract --provider claude-code --session s1 --dir . --schema schema.json

On this page