Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 25 variants New { topic: String, preset: Option<String>, slug: Option<String>, force: bool, from: Option<String>, tag: Vec<String>, }, List { tag: Option<String>, tree: bool, }, Show { slug: String, }, Status { slug: Option<String>, }, Audit { slug: Option<String>, }, GithubAudit { repo: String, depth: String, sample: usize, out: Option<String>, html: Option<String>, }, Resume { slug: String, }, Add { url: String, slug: Option<String>, timeout: Option<u64>, readable: bool, no_readable: bool, min_bytes: Option<u64>, on_short_body: Option<String>, frame_id: Option<u32>, run_code_args: Option<String>, reseed: bool, }, AddLocal { path: String, slug: Option<String>, glob: Vec<String>, max_file_bytes: Option<u64>, max_total_bytes: Option<u64>, original_url: Option<String>, origin_tool: Option<String>, origin_note: Option<String>, }, Sources { slug: Option<String>, rejected: bool, }, Batch { urls: Vec<String>, slug: Option<String>, concurrency: Option<usize>, timeout: Option<u64>, readable: bool, no_readable: bool, min_bytes: Option<u64>, on_short_body: Option<String>, frame_id: Option<u32>, run_code_args: Option<String>, reseed: bool, }, Synthesize { slug: Option<String>, no_render: bool, open: bool, bilingual: bool, pdf: bool, pdf_output: Option<String>, }, Finish { slug: String, open: bool, bilingual: bool, }, Report { slug: Option<String>, format: String, open: bool, no_open: bool, stdout: bool, output: Option<String>, }, Close { slug: Option<String>, }, Rm { slug: String, force: bool, }, Route { url: String, prefer: Option<String>, rules: Option<String>, preset: Option<String>, }, Series { tag: String, open: bool, }, Diff { slug: Option<String>, unused_only: bool, }, Coverage { slug: Option<String>, }, Doctor { provider_smoke: bool, tool_smoke: bool, provider: String, }, Loop { slug: Option<String>, provider: String, iterations: Option<u32>, max_actions: Option<u32>, dry_run: bool, fake_responses: Option<String>, }, Wiki { sub: WikiCmd, }, Schema { sub: SchemaCmd, }, Help,
}

Variants§

§

New

Create a new research session and set it active.

Fields

§topic: String
§preset: Option<String>
§force: bool
§from: Option<String>

Fork from a parent session — copies its ## Overview as ## Context.

§tag: Vec<String>

Tag this session (repeatable). Inherited from –from if provided.

§

List

List all research sessions.

Fields

§tag: Option<String>

Filter by tag.

§tree: bool

Show parent→child hierarchy as an ASCII tree.

§

Show

Print a session.md to stdout so an agent can resume context.

Fields

§slug: String
§

Status

Show counts + timings for the current or given session.

Fields

§

Audit

Inspect session.jsonl as a compact audit trail for hand calls, facts, and synthesis.

Fields

§

GithubAudit

Audit GitHub repository trust signals.

Fields

§repo: String
§depth: String
§sample: usize
§

Resume

Set a session active again and print its session.md + recent events.

Fields

§slug: String
§

Add

Route + fetch + smell-test a URL and attach to the active session.

Fields

§timeout: Option<u64>
§readable: bool
§no_readable: bool
§min_bytes: Option<u64>

Override smell-test min body bytes (browser path only).

§on_short_body: Option<String>

Short-body behavior: “reject” (default) or “warn”.

§frame_id: Option<u32>

V2-only: run the inline JS inside the given iframe (OOPIF support). Default = top frame. Requires ACTIONBOOK_BACKEND=v2-mcp (default). Must be >= 0.

§run_code_args: Option<String>

V2-only: JSON array forwarded to the inline JS as $args. Requires ACTIONBOOK_BACKEND=v2-mcp (default). Must be a JSON array (empty [] is allowed; non-array JSON is rejected).

§reseed: bool

Force re-fetch of any catalog-seeded wiki manuals (overwrite existing pages with fresh fetched_at). Default is skip-if- exists; see specs/actionbook-catalog-seed.spec.md.

§

AddLocal

Bulk-ingest a local file or directory tree as sources.

Walks the path, applies optional –glob include/exclude patterns (prefix with ! to exclude), enforces per-file and per-walk size caps, and attaches each accepted file as its own source via the same pipeline as research add file:///....

Fields

§path: String

File or directory to ingest. Accepts file://, absolute, relative (./x), home-relative (~/x), or bare path.

§glob: Vec<String>

Glob pattern (repeatable). Prefix with ! to exclude. Examples: --glob '**/*.rs' --glob '!**/test/**'. If omitted, matches all files.

§max_file_bytes: Option<u64>

Per-file cap in bytes. Files over this are skipped with a too_large reason. Default 256 KiB.

§max_total_bytes: Option<u64>

Total cap for the whole walk. Walk stops (not truncates) when this would be exceeded. Default 2 MiB.

§original_url: Option<String>

Original online URL represented by the local cache/source note. Used for fallback provenance in session.jsonl.

§origin_tool: Option<String>

Tool that produced the local fallback artifact, e.g. curl, browser-cache, web, manual.

§origin_note: Option<String>

Human-readable reason for the fallback ingest.

§

Sources

List sources attached to the current or given session.

Fields

§rejected: bool
§

Batch

Route + fetch + smell-test multiple URLs in parallel.

Fields

§urls: Vec<String>

One or more URLs to fetch concurrently.

§concurrency: Option<usize>

Worker threads (1–16, default 4).

§timeout: Option<u64>
§readable: bool
§no_readable: bool
§min_bytes: Option<u64>

Override smell-test min body bytes (browser path only).

§on_short_body: Option<String>

Short-body behavior: “reject” (default) or “warn”.

§frame_id: Option<u32>

V2-only: run the inline JS inside the given iframe for every URL in the batch. Default = top frame. Requires ACTIONBOOK_BACKEND=v2-mcp (default). Must be >= 0.

§run_code_args: Option<String>

V2-only: JSON array forwarded to the inline JS as $args for every URL in the batch (shared, not per-url). Requires ACTIONBOOK_BACKEND=v2-mcp (default). Must be a JSON array.

§reseed: bool

Force re-fetch of any catalog-seeded wiki manuals (overwrite existing pages). Applies to every URL in the batch. See specs/actionbook-catalog-seed.spec.md.

§

Synthesize

Synthesize session.md + raw/ into report.json + report.html.

Fields

§no_render: bool
§open: bool
§bilingual: bool

Also render Chinese translations next to each English paragraph in report.html. Requires a working LLM provider; choose one with ASR_BILINGUAL_PROVIDER=claude|codex. Costs tokens proportional to report length.

§pdf: bool

Also convert the rendered report.html to report.pdf using isolated local Chromium.

§pdf_output: Option<String>

Explicit PDF output path. Implies –pdf.

§

Finish

Run the completion protocol: coverage -> synthesize -> audit.

Fields

§slug: String
§open: bool
§bilingual: bool
§

Report

Render an editorial report from a session (rich-html and future formats).

Fields

§format: String

Output format. Supported: rich-html, brief-md.

§open: bool
§no_open: bool
§stdout: bool

(brief-md only) print to stdout instead of writing a file.

§output: Option<String>

(brief-md only) explicit output path; default: /report-brief.md.

§

Close

Mark a session closed (files preserved).

Fields

§

Rm

Remove a session directory.

Fields

§slug: String
§force: bool
§

Route

Classify a URL: which executor + command template.

Fields

§prefer: Option<String>
§preset: Option<String>
§

Series

Generate an HTML index page for all sessions with a given tag.

Fields

§open: bool
§

Diff

Diff: list sources fetched-but-uncited (unused) and body-but-unfetched (hallucinated).

Fields

§unused_only: bool

Only list unused sources; omit the hallucinated/missing set.

§

Coverage

Coverage: fact-based completeness stats + report_ready blockers.

Fields

§

Doctor

Verify local prerequisites for the skill/playbooks without creating a session.

Fields

§provider_smoke: bool

Also do a live one-shot LLM provider call. This can spend tokens.

§tool_smoke: bool

Also exercise postagent/actionbook command surfaces.

§provider: String

Provider to smoke-test: claude | codex | all.

§

Loop

Run the autonomous research loop (feature: autoresearch).

Fields

§provider: String

LLM provider: fake | claude | codex | opencode-go.

§iterations: Option<u32>
§max_actions: Option<u32>
§dry_run: bool
§fake_responses: Option<String>

(fake provider only) semicolon-separated JSON responses to replay.

§

Wiki

Inspect the per-session wiki (v3).

Fields

§

Schema

Show or edit the per-session SCHEMA.md (v3).

Fields

§

Help

Show help (alias of –help).

Trait Implementations§

Source§

impl Debug for Commands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.