Expand description
Modules§
- agent_
check - Agent frontmatter permission check.
- aliases
- User-defined aliases:
git-style shortcuts defined inroba.tomlthat expand to a prompt template (plus default flags / a pinned agent) and dispatch like a normalrobacall. - cli
- Clap-derived CLI structs.
Cliis the top-level entry; default invocation (no subcommand) dispatches tocrate::run_askwith the flattenedAskArgs. - config
- The
roba config initsubcommand: claude-assisted, parse-validated per-projectroba.tomlbootstrap. - cost
roba cost– aggregate token usage from session history.- detach
--detach– fire a run that survives the caller.- doctor
roba doctor– a health check for the claude boundary.- draft
- Shared plumbing for the claude-assisted
draft/initverbs (roba alias draft,roba profile draft,roba config init). - env
ROBA_<PARAM>env-var override layer.- error
- JSON error envelope for
--jsonmode. - history
roba history,roba last, and the--pickinteractive chooser.- lint
roba config lint– static checks over roba config (read-only).- output
- Output-side helpers: formatters for the cost footer, truncation, refusal heuristics, code-block extraction.
- profile
- Config system for
roba. - prompt
- Prompt input + composition.
- rates
- Per-model dollar-rate table for cost reporting.
- render
- Presentation / “eye candy” subsystem.
- session
- Session continuation and permission preset application.
- show
roba show <SESSION_ID>– read-only result handle for a stored session.- stdin_
probe - Cross-platform stdin classification, shared by two callers.
- stream
- Streaming-mode pipeline (–stream).
- worktree
roba worktree list– read-only enumeration of the repo’s git worktrees.
Functions§
- classify_
exit_ code - Map an anyhow error chain to a stable exit code:
- dispatch
- Dispatch a parsed
Clito the matching runner. Subcommands (history, last) run synchronously; the default action (run_ask) is async. - run_ask