theseus generate
Generate a guide for the current branch, a pull request, or a GitHub branch.
Usage: theseus generate [target] [options]| Option | Value | When omitted |
|---|---|---|
--base | ref | Merge base with the configured main branch |
--repo, -R | owner/repo | Infer from target or local repository |
--wait | Switch | false |
--timeout | seconds | No deadline; requires --wait |
--json | Switch | false |
JSON output: Object: runId, url, status; ready results add claims, titles and pictures; failures add error. Errors: event="error", code, error; last known state precedes an error after a run starts.
Exit codes: 0 Success; 1 Failure; 2 Invalid arguments; 8 Wait deadline reached; server run continues; 130 Interrupted by Ctrl-C; 143 Terminated by SIGTERM.
Full command help and examples
Usage: theseus generate [target] [options]
Generate a guide for the current branch, a pull request, or a GitHub branch.
Prints the guide's URL; the run continues on the server.
Examples:
theseus generate
theseus generate 42 --wait
theseus generate @feature -R owner/repo --json
Options:
--base <ref> Compare against this commit instead of a merge base
-R, --repo owner/repo Repository for a PR number or @branch target
--wait Follow the run until it finishes
--timeout <seconds> Stop waiting after this many seconds (requires --wait)
--json Print structured results for scripts
Targets: refs/heads/feature, 42, owner/repo#42, owner/repo@feature,
@feature -R owner/repo, or a GitHub pull request/tree URL.
With no target, use the current branch and theseus.mainBranch or origin's default.
Set the main branch with: git config theseus.mainBranch refs/heads/main
Scripts: --json prints {runId,url,status}, plus claims, titles and pictures when
ready, or error on failure. Failures include {event:"error",code,error}; after a
run starts, its last known state precedes the error.
Exit codes: 0 success, 1 failure, 2 usage, 8 wait timeout, 130 Ctrl-C, 143 SIGTERM.
Timeouts and cancellation stop waiting; the server run continues.