What the model can use. "Asks" means the call goes through the approval gate
(see approvals and sandbox): in auto mode (the
default) it is approved and written to the audit log, in ask mode you are
asked, and dangerous commands always need a human. Optional tools exist only
when configured; oscar doctor lists them.
Several calls at once. When one reply makes several calls that only read
— read_file, search_files, web_fetch, web_search, session_search,
skill_view, memory list, vision_analyze, source_query — they run at
the same time (up to parallel_tools, default 8) and their results come back
in the order the model made them. Each is gated first, in order, so any
question to you comes before anything runs. MCP tools their server marks
read-only (readOnlyHint) and the servers' resource and prompt tools
(mcp_<server>_list_resources, read_resource, list_prompts,
get_prompt) join them. Everything else — writes, bash, the browser,
input to background processes, helpers, the other MCP tools — runs one
call after another.
Files and commands
| Tool | Asks | What it does |
|---|---|---|
read_file |
no | read a text file (paged), or the text of a PDF, Word, PowerPoint, Excel or OpenDocument file; in host mode any path except Oscar's own data; files up to 64 MiB; a missing file gets "did you mean" names |
search_files |
no | search file contents (regex or plain text) or find files by name (glob); same reach as read_file |
write_file |
yes | write a whole file, creating missing folders within reach |
edit_file |
yes | replace an exact piece of a file; returns a short diff |
patch |
yes | edit files when exact matching is too brittle: a whitespace-tolerant replace, several edits in one file, or a multi-file patch; all-or-nothing |
bash |
per command | run a shell command; harmless reads are allowed, changes ask, dangerous ones always ask a human, some are refused outright |
Credential files and .env. No tool writes SSH keys or
authorized_keys (~/.ssh, except its config and known_hosts),
~/.aws, ~/.kube/config, ~/.netrc, ~/.gnupg or /etc/sudoers* — of
any home folder — in any approval mode, and read_file, search_files and
@ references do not read them or a project's .env, .env.<name> and
.envrc files (templates such as .env.example stay readable; .env files
can still be written). See approvals and
sandbox.
After a write. write_file creates the folders a path needs, after
checking that the nearest existing one is within reach (never inside .git,
never Oscar's own data). edit_file answers with a short unified diff of
the change (at most 40 lines). A written .json, .yaml/.yml, .toml or
.lua file is parsed (Lua is compiled, never run) and a syntax problem is
added to the result as a warning — the file is written either way.
read_file on a path that does not exist lists similar names in the nearest
folder that exists and files of the same name elsewhere in the workspace.
bash options. workdir runs the command in another folder (relative
to the workspace, within reach; the approval prompt shows it as cd <folder> && <command>). timeout is in seconds (default 180); timeout_ms still
works. bash_auto_background_secs (off by default) moves a foreground
command that is still running after that many seconds to the background:
the call returns its process_id and what it printed so far, like
background: true, and its exit is reported. pty: true runs the command
on a pseudo-terminal (40×120, TERM=xterm-256color) for programs that need
one — REPLs, prompts, full-screen tools; with background: true, drive it
with process_manage submit (a line) and write (keys; \u0003 is
Ctrl-C). Moving to the background and terminals work where commands run on
this machine (the workspace sandbox and the host), not in a container or
over SSH. Every option passes the same approval, guards, redaction and audit
log as any command.
| checkpoint | yes | snapshot or restore workspace files; list and restore the automatic checkpoints |
| process_manage | only to send input | list, poll, log, wait for, feed or stop background processes |
search_files: pattern is a regex (Rust syntax), or plain text with
literal: true; target: "files" matches file names against a glob instead
(*.rs; with a / the glob matches the path, src/**/test_*.py). path
narrows the search (default: the workspace), glob limits a content search
to some files, context adds lines around each match (up to 10), and
output is matches (lines with numbers, the default), files (matching
files with counts) or count. Case is smart by default: insensitive unless
the pattern has an upper-case letter (case overrides). Results are paged
with limit (default 100, at most 1000) and offset. .gitignore and
hidden files are honoured (no_ignore, hidden turn that off); binaries,
files over 4 MiB, .git and the kernel's /proc, /sys and /dev are
never searched, and links are not followed. A search stops after 200,000
files or 20 seconds and says so.
It reaches exactly what read_file reaches: the workspace in workspace mode;
in host mode everything except Oscar's own data, whose skill folders stay
readable. With the SSH backend every file tool works on the remote host, and
search_files runs there (rg when installed, else grep/find).
patch has three forms. path + old + new replaces old even when
its indentation, trailing spaces, runs of whitespace or typographic quotes
differ from the file; it must match exactly one place (or set
replace_all), and an ambiguous match is reported with the line numbers of
each place instead of guessed. The replacement takes the file's indentation,
and the file keeps its line endings (CRLF stays CRLF) and byte-order mark.
path + edits: [{old, new}, ...] applies several replacements in order;
the file is written only if all of them apply. patch takes a multi-file
patch:
*** Begin Patch
*** Add File: docs/new.md
+# New page
*** Update File: src/lib.rs
*** Move to: src/core.rs
@@ fn total
fn total(items: &[u32]) -> u32 {
- items.iter().sum()
+ items.iter().copied().sum()
*** Delete File: old.txt
*** End PatchLines starting with a space are context, - removes, + adds; an @@ line
names a line above the change to place it (unified-diff numbers are
ignored). Hunks must be in file order and must match one place. Nothing is
written unless every operation applies. Every path passes the same checks as
write_file: the reach of the call, never inside .git, never a redaction
marker. The approval prompt shows a patch as written.
Automatic checkpoints. Before write_file, edit_file or patch first
changes a file in a turn, Oscar saves the file as it was (or notes that it
did not exist yet) in that turn's automatic checkpoint, auto-… in
$OSCAR_HOME/checkpoints. Binary files and files over 2 MiB are listed as
skipped rather than copied; the newest 50 automatic checkpoints are kept
(checkpoint_keep), and auto_checkpoints = "off" turns them off. Changes
made by shell commands are not covered. /rollback in the chats, !rollback
in the chat gateways and oscar rollback list them; /rollback <n> puts the
files of that turn back as they were before it and removes the files it
created. Restoring is a write: it asks like one, it resolves every path under
the current reach rules, refuses .git, verifies every saved copy before it
writes anything, and saves the state it replaces as a new automatic
checkpoint, so a rollback can be undone the same way.
Background processes. bash with background: true starts a command that
must keep running (a dev server, a watcher, a long build) and returns a
process_id at once; the command passes the same approval and guards as any
other. process_manage then polls new output, reads the log (recent lines
are kept), waits for the exit, sends input (write, or submit to press
Enter) or kills the process and everything it started. Sending input asks
like a command does: input the policy would refuse is refused, dangerous input
always needs a human, and "allow for this session" covers exactly that input.
Processes belong to the conversation that started them. They stop when the
Oscar process that runs them ends: oscar run and the chats stop theirs on
exit; the Matrix gateway keeps them running. In the workspace sandbox they run
inside the jail, with the Docker backend inside the container, with the SSH
backend on the remote host (stopping one stops it there too).
Background-process reports. Two more bash arguments, for
background: true only:
notify_on_complete— report when the process exits: its status, how long it ran and its last output. On by default inoscar runand the chats (terminal, full-screen, Matrix, Telegram, Discord); off by default in the API server, editors and scheduled jobs, where the model may still ask for it.watch— a list of texts (case-sensitive) or/regular expressions/(up to 8); an output line that matches is reported.heartbeat_seconds— every that many seconds (at least 10) while the process runs, the output it printed since the last report (its newest 15 lines, and how many there were) is reported; nothing when it printed nothing. For long builds, downloads and test suites the model wants to follow without polling. Heartbeats reach the model with its next tool result or your next message and never start a turn of their own; ones that wait are merged into one report per process.
People see each report as it happens: a notice in the full-screen chat
(⚙ proc_… finished after 42s: npm run build), in the chat where the
process was started on Matrix, Telegram and Discord, and on stderr in the
line chat. The model gets it with the result of its next tool call while a
turn is running; when nothing is running, the full-screen chat and the chat
gateways start a short turn for it (marked as a report, not a message from
you) so it can react — process_notify_wake = "off" turns that off, and the
report then rides on your next message instead (as it always does in the line
chat). Nothing floods: a process reports a watch match at most every 10
seconds (matches in between are gathered into the next report), at most 10
times (then only its exit); at most 20 reports wait per conversation; a
conversation is woken at most every 30 seconds and 20 times an hour. An exit
the model already saw (process_manage wait, poll, log, list) or a
process it stopped itself is not reported again.
Diagnostics after edits. After write_file, edit_file or patch
changes a file whose language has a language server, the server's errors and
warnings for that file (worst first, at most 20) are added to the result:
wrote 120 bytes to /work/app/src/main.rs
Diagnostics from rust-analyzer for src/main.rs (1 error(s), 0 warning(s)):
error 12:5 mismatched types: expected `u32`, found `&str` [E0308]Servers are optional programs found on PATH: rust-analyzer (Rust),
basedpyright-langserver, pyright-langserver or pylsp (Python),
typescript-language-server (TypeScript and JavaScript), gopls (Go),
clangd (C and C++), lua-language-server, bash-language-server, zls
(Zig). lsp_<language> = "command args" chooses another (lsp_python = "pyright-langserver --stdio"), "off" turns one language off, lsp = "off" all of them. One server runs per workspace and language, started on
the first edit, kept for the next ones and shut down after ten minutes
unused and when Oscar exits. The wait is bounded (lsp_wait_ms, default
3000): a server still starting simply reports on a later edit. A missing,
crashing or slow server never changes the write or its result; failures go to
$OSCAR_HOME/logs/lsp.log, shown by oscar lsp status (--probe starts
each server to check it). Not with the SSH backend (the files are on the
other machine).
Stale-file guard. Oscar remembers, per conversation, what each file
looked like when the model last read it (read_file) or wrote it: its size,
modification time and a checksum. A write_file, edit_file or patch to a
file that changed on disk since then (an editor, a formatter, a command) is
refused, nothing is written, and the model is told: "the file changed since
you read it; read it again". New files, files the model never read, and files
only touched (same content) are written as asked. With the SSH backend the
check runs on the remote file. stale_file_guard = "off" turns it off.
Large outputs. A tool result longer than 48 KiB (tool_output_limit, in
bytes) is not simply cut: its full text, redacted like everything the model
sees, is saved to .oscar/outputs/ in the workspace, and the model gets the
first 8 KiB, the last 12 KiB and the file's path, to read the rest with
read_file (offset/limit) or search it with search_files. The folder
holds a .gitignore of *, checkpoints skip .oscar, and saved outputs
older than seven days, or beyond the newest 200 files or 64 MiB, are removed.
In host mode started from a folder whose .oscar is Oscar's own home (your
home directory), they go to $OSCAR_HOME/outputs instead, which file tools
may read like the skill folders. With the SSH backend they are saved in the
remote workspace. read_file results are never saved (they page themselves).
tool_output_save = "off" goes back to cutting bash output at 64 KiB.
Toolsets
Every surface starts with every tool it has. tools in config.toml applies
to all surfaces, tools_<surface> to one — cli (oscar run and the line
chat), tui, matrix, telegram, discord, api, acp, cron
(scheduled jobs and the board worker) — and --tools / --no-tools to one
oscar run or oscar chat. A list holds tool names, groups and prefixes
ending in *, separated by commas or spaces:
name: a list with at least one plain name is an allow-list — only what it names is on;-name(or!name) turns something off,+nameturns it back on;allandnoneturn everything on or off.
Lists apply in order (tools, then tools_<surface>, then the flags); an
allow-list replaces what came before it. Groups: files (read_file,
write_file, edit_file, patch, search_files, checkpoint), shell (bash,
process_manage), web (web_fetch, web_search, x_search), browser (browser,
browser_vault), memory (memory, session_search, source_query, the memory
provider's tools), media (vision_analyze, video_analyze, text_to_speech,
image_generate),
mcp (every mcp_… tool), jobs (cronjob, kanban), skills (skill_view,
skills_list, skill_manage, skill_create), code (execute_code), delegation
(task, helpers), chat (clarify, todo_list, send_file, send_message), lua
(your Lua tools). Toolset names other agents use work too: terminal (the
shell group), file (files), code_execution (code), vision,
image_gen, tts, todo, and the tool names below.
tools = "-browser" # nowhere
tools_matrix = "files, web, memory" # the Matrix gateway: only these
tools_api = "-shell, -files" # API clients: no commands, no filesA tool that is off is not offered to the model at all — not to the main
agent, not to scripts (execute_code), not to helpers (task). oscar tools list [--surface S] shows every tool, its group, on or off, and which setting
decided it; names that match nothing are listed as warnings.
Other agents' tool names. Skills, allow and deny rules and toolset lists
written for other agents keep working: terminal means bash,
delegate_task means task (its goal, toolsets and max_iterations
arguments are read as task, tools and max_turns), web_extract means
web_fetch, cronjob_manage means cronjob, and an MCP tool may be named
mcp__<server>__<tool>. A call under such a name runs Oscar's tool through
the same approval, rules and hooks; a rule allow = ["terminal"] is treated
like allow = ["bash"] (and left out the same way). The model is only
offered Oscar's names.
Web
| Tool | Asks | What it does |
|---|---|---|
web_fetch |
yes | read public http(s) pages as text (or through Firecrawl, as markdown), and the text of PDF and office documents; up to 8 URLs per call |
web_search |
yes | titles, URLs and snippets (connectors) |
x_search |
yes | posts on X through xAI, answered with links to them (only with XAI_API_KEY) |
browser |
yes | a real Chromium: open, snapshot, click, fill, press, scroll, text, js, screenshot, raw CDP, answer dialogs (optional) |
web_fetch takes url, or urls (at most 8, fetched four at a time and
reported in the order given, each under its own === url === heading; one
failing URL does not fail the others). Web pages become readable text; PDF,
Word (.docx), PowerPoint (.pptx), Excel (.xlsx) and OpenDocument
(.odt, .odp, .ods) files become their text, recognised by content type
or name and confirmed by their first bytes. Documents are parsed by Oscar's
own binary in a separate process, with a time limit, so a malformed file
fails one fetch and nothing else. Every URL and every redirect is checked
against private and link-local addresses, and the connection is pinned to
the checked address. Caps: 2 MiB per page, 20 MiB per document, 60,000
characters of text (shared out when several URLs are fetched).
Through Firecrawl. With FIRECRAWL_API_URL (a Firecrawl you run) or
FIRECRAWL_API_KEY (the hosted API) set, pages are read through
Firecrawl instead: their main content, as markdown, under a
[read with Firecrawl] line. web_fetch_backend chooses: auto (the
default; Firecrawl when one of the two is set), builtin or firecrawl.
The URL gets the same checks as a direct fetch before it is handed over
(nothing is sent when it fails), and the address Firecrawl says it read the
page from, after its redirects, is checked the same way afterwards: when
that address is private, cloud metadata, blocked or not reported, the text
is dropped. When Firecrawl fails (not reachable, an error, no text), the
built-in fetcher tries once and the result's first line says so. Documents
named by their URL and render: true are not sent to Firecrawl. The caps,
the approval and the redaction of what comes back are the same. See
connectors,
including what Oscar cannot check about the requests Firecrawl makes
itself.
Two opt-ins, both off by default:
web_fetch_allow_private = "on"letsweb_fetchread addresses on this machine and the local network (loopback,10.x,172.16-31.x,192.168.x,100.64.x, IPv6 unique-local), for a dev server or a NAS. Link-local addresses stay refused whatever the setting (that is where cloud metadata services answer,169.254.169.254), and so do the metadata addresses outside it (fd00:ec2::254,100.100.100.200,168.63.129.16), unspecified, multicast and reserved ones; the website blocklist still applies and every redirect is checked the same way.web_fetch_render = "on"(and a usable browser, see connectors) honoursrender: true: the page is loaded in a real browser first and its text read from there, for pages that build their text with JavaScript.web_fetchchecks the URL first as for a direct fetch; the browser then applies its own navigation policy (BROWSER_ALLOW_PRIVATE) and the website blocklist. The browser follows redirects itself, so where the page ended up — after loading and again after its text was read — is checked the same way, and the text is dropped when that address may not be reached (a redirect to this machine or to cloud metadata). The requests along the way are not intercepted: a redirect hop is still visited, only its content is not returned. Rendered pages are fetched one at a time in a browser session of their own, started on the first rendered page and closed afterbrowser_idle_timeout. Documents (PDF, office files) are always fetched directly. Without the setting,render: trueis answered with a note and a direct fetch.
x_search is there only when XAI_API_KEY is set (the environment or
credentials.env). It asks xAI's Responses API, whose Grok model runs xAI's
own x_search tool on its side: current discussion, reactions, claims,
profiles and threads on X, answered as text with the cited posts as links.
It takes query and, optionally, allowed_x_handles or
excluded_x_handles (at most 10 each, not both), from_date and to_date
(YYYY-MM-DD). Read-only: it never posts or likes. The query leaves the
machine, so it is approved like web_search and belongs to the web
group. x_search_model picks the model (default grok-4.5), XAI_BASE_URL
another endpoint; the key is sent in a header and never shows in an error.
Website blocklist. website_blocklist lists sites Oscar never visits:
web_fetch refuses them at the first address and at every redirect, @url:
references and vision_analyze image URLs refuse them, and the browser
refuses to navigate there ("navigation refused: … is blocked by the website
blocklist"). See
configuration for the rules.
Browser dialogs. alert, confirm, prompt and "leave this page?"
dialogs no longer hold the browser up. By default an alert is closed and its
text reported; any other dialog is reported as soon as it opens (the action
that opened it returns at once) and waits for dialog with accept
true or false (and text for a prompt's answer); until then other actions
are refused with the same explanation. A dialog nobody answers is dismissed
after 60 seconds. browser_dialogs = "accept" or "dismiss" answers every
dialog at once instead; browser_dialog_timeout sets the wait in seconds.
Dialogs handled without the model are listed in its next result.
Memory and skills
| Tool | Asks | What it does |
|---|---|---|
memory |
no (unless memory_write_approval = "ask") |
add, replace or remove entries in MEMORY.md / USER.md, one at a time or several together |
skill_view |
no | load a skill, or one of its files; checks what the skill needs and hands it its settings (skills) |
skills_list |
no | every skill with its description and origin (user, agent, bundled, plugin, project, extra) |
skill_manage |
yes | create, change and delete your own skills and their files (skills); never a locked skill, never deletes a pinned one; every change in the skill ledger |
skill_create |
yes | write a skill proposal (never applied without you) |
session_search |
no | search earlier conversations, or scroll through one |
hindsight_recall / _reflect / _retain |
no | long-term memory in Hindsight (optional) |
memory: action add, replace or remove with scope (memory
or user); replace and remove name the entry by index or by
old_text, a piece of its text only that entry has. operations (a list of
such changes) applies them together, all or nothing — remove two stale
entries and add one in a single call — and the budgets are judged on the
result. After a refused change the reply lists the entries as they are.
Entries that look like credentials, tell the model to drop its instructions
or hide things from you, send data to a URL, or carry invisible characters
are refused. See skills and learning for
budgets, switches and write approval.
session_search takes a query (full-text, word stems match), optionally a
session_id to search or read just that conversation, around_message_id and
window to scroll, and role_filter (user and assistant by default; add
tool for tool output). A search can be bounded in time with after and
before (a date 2026-11-01, a date and time 2026-11-01T10:00 in UTC, or
how long ago: 30m, 24h, 7d, 2w) and leave out sessions already looked
at with exclude_sessions (a list of session ids). Without a query it lists
recent conversations. The question being asked right now is never returned,
and tool output in which secrets were redacted is never indexed or shown.
Working on bigger tasks
| Tool | Asks | What it does |
|---|---|---|
todo_list |
no | the task list for this conversation; kept across restarts |
task |
yes (and its helpers' calls do) | hand work to helper agents, waiting for them or in the background |
helpers |
no | list, check on, wait for, steer or stop this conversation's helpers |
execute_code |
yes (and each call inside) | run a Lua script that calls tools |
clarify |
no | ask you a question, with choices; after 90 s without an answer (clarify_timeout) the model decides and says what it assumed |
todo_list: with no arguments it shows the list. todos replaces the list
([] clears it); with merge: true items are updated by id and new ones are
added. Each item has id, content, status (pending, in_progress,
completed, cancelled) and an optional parent.
task: task (plus optional context and max_turns) runs one helper;
tasks: [...] runs up to 32, ten at a time, and reports in the order given. A
helper has the same tools and the same approvals as Oscar, without
todo_list and without the tools that act for you beyond the task:
memory (no writes to your long-term memory), clarify (helpers do not
ask you questions), send_message and cronjob (no messages or schedules
in your name). helper_allowed_tools = "memory, clarify" gives some of
them back. A helper's scripts (execute_code) reach no more than it does. Helpers may hand work on to helpers of their own only up to
max_spawn_depth (config key, or OSCAR_MAX_SPAWN_DEPTH; default 1 = no
nesting, at most 3). When several helpers need approval, the questions come to
you one at a time. Each helper has its own budget of model calls
(helper_max_turns, default 250; a call's max_turns may lower it, not raise
it) and the main agent's output cap, reasoning effort and compression; a
helper that uses its whole budget reports where it stopped.
Options for a helper (next to task, or in each of tasks; given next to
tasks they apply to every task that does not set its own):
tools: only these of the caller's tools — names, groups (files,shell,web, …, as in toolsets) or a prefix ending in*. Never more than the caller has: something it lacks is refused, and the helper's own helpers get no more than it. Withouttaskin the list the helper cannot delegate.output_schema: a JSON schema the final answer must match (type,properties,required,items,enum,additionalProperties). The helper is told the schema; its answer (a fenced ```json block is fine) is checked, a wrong one gets one retry with the error, and the answer comes back as pretty JSON — or as written, with a note saying what is still wrong.model: run the helper on one of the models inhelper_models(nothing else is accepted; the tool lists them).kind: a word for the kind of work (review,research, …) thathelper_model_mapmay send to a model of its own (the tool lists the kinds that do).worktree:trueruns the helper in its own git worktree (below).images:truegives the helper the pictures attached to your message this turn (a screenshot, a mock-up), for work it must see; a model that does not see images gets a note instead, as in a chat.
Time limit: helper_timeout (seconds, config.toml; unset or 0 = no
limit, the default) stops a helper that runs longer than that, wall clock.
It is stopped like a turn you stop (a running model request or tool is cut
off), and instead of an error its caller gets what it did so far — its own
words and the tools it called — under a note: timeout: the helper ran past helper_timeout (300s) … {"status":"timeout","timeout_seconds":300, "ran_seconds":301,"model_calls":4,"tool_calls":7}.
Stalled helpers: separately, a helper that shows no progress — no
streamed text or reasoning, no tool call starting or finishing — for
helper_stall_seconds (default 900; 0 never) is stopped the same way and
hands back what it did so far under a stalled note ({"status":"stalled", "stall_seconds":300,…}). While one of its calls runs it gets four times as
long (builds and test suites are slow and quiet); while it waits for your
approval it is never stalled. Whatever it was running is stopped with it.
Background helpers: in a chat (the full-screen or line chat, or a chat
gateway), background: true next to task or tasks starts the helpers
and returns at once with their ids (h3); Oscar keeps working, or answers
you, while they run. Each finished helper's report reaches the model by
itself — with the result of its next tool call while a turn runs, or in a
short turn of its own when the conversation is idle (marked as not from
you; at most every 10 seconds and 30 times an hour) — and you get a notice
when one starts and when it ends. At most max_background_helpers (default
4, up to 16) run at once per conversation; only the main agent starts them
(a helper's own helpers run in the foreground), and a one-shot oscar run,
scheduled jobs and the API server are not offered them. Their approvals go
through the same approval mode, rules and reviewer as everything else, and
questions come to you one at a time together with the conversation's own,
each marked with the helper that asks ([helper h3] …). Helpers belong to
the conversation that started them: no other chat sees them, and they stop
when the conversation ends (/new, switching sessions, !new in a chat
gateway) or when Oscar exits — they are never left running unattended.
Their state is kept in memory only (nothing is added to the state
database), so a restart forgets them; a helper's file changes, worktree and
processes stay as with any helper.
helpers is the model's handle on them: list (every helper of the
conversation, running or finished: id, state, time, model, task and its
latest step), status with id (its recent activity), wait (until it
finishes or timeout seconds pass, default 60, at most 600 — a message from
you ends the wait — then its report), steer with text (added to its
instructions after its next tool result; if its turn ends first, it gets
one more turn with it), stop (it ends now; a running tool is cut off) and
result (its report, once finished). A report the model already read with
wait or result is not delivered again. People see the same helpers with
/agents (and the live dock and work monitor in the full-screen chat, see
chat), and
!agents in a chat gateway; foreground helpers show there too, and can be
steered and stopped while their caller waits.
Which model helpers use: the main provider and model unless configured.
helper_model (and helper_provider for another provider) sets the default;
helper_model_map = "review=cheap-model, big-model=openrouter:small-model"
picks a model by kind or by the model the main agent runs on; a call's
model must be in helper_models. Another provider is set up like the main
one: its key from the environment, credentials.env or a sign-in, its base
URL variable, key pool, retries and the fallback chain. Each helper still has
its own budget; the report names the model when it is not the main one.
oscar doctor shows where helpers run and any model that cannot be used.
Worktrees: in a git repository (host or workspace sandbox mode), a helper
with worktree: true — or every helper whose task reads like a code change
(implement, fix, refactor, edit, write, add, update, rename, remove, test …)
with helper_worktree = "auto" — works in a new git worktree under the
workspace's .oscar/worktrees/ (or helper_worktree_dir, never inside
Oscar's home), on a new branch oscar/<task>-<time> made from the current
commit, with the same tools working there. The user's checkout, its branch
and its index are never touched (the folder ignores itself, so git status
stays clean; git hooks do not run). When the helper finishes, a worktree with
no changes is removed with its branch; one with changes is kept, and the
report says so: the branch, the folder, the changed files ((new) for files
not yet in git), commits made there, and how to review, merge or drop it.
Helpers of a helper in a worktree share it. A worktree starts from the last
commit: uncommitted changes in the checkout are not in it. In the workspace
sandbox, files and commands work inside the worktree, but git itself does
not (the repository's .git is outside the sandbox and read-only), so Oscar
reads the changes afterwards; in host mode the helper can also commit on its
branch. Not available with the docker or ssh backends.
oscar run --worktree "…" runs a one-shot task the same way, reporting on
stderr.
execute_code: a Lua 5.4 script, in the same sandbox as
Lua tools, that calls tools as tools.read_file{path="x"}
(the result is the tool's output; a failure raises an error at that line),
with print captured and oscar.json for JSON. Use it to batch many calls in
one step. Every call inside goes through the approval gate as if the model made
it, and a refusal stops the whole script. Limits: 300 seconds (time spent
waiting for your approval does not count), 50 tool calls, 50,000 characters of
output. execute_code and task cannot be called from a script.
clarify: 1-5 questions, each open or with up to four choices
(recommended first; your own answer is always possible). In the full-screen
chat you get a picker, in the line chat numbered options, in Telegram and
Discord buttons, in Matrix 1️⃣ 2️⃣ … pills. Without anyone to ask (oscar run without a terminal, the harness)
the model is told to decide and say what it assumed.
/review [focus] (terminal chats) and !review (chat gateways)
start an independent reviewer as a background helper of the conversation:
it checks the work the conversation produced — the recent messages and, in
a git workspace, the changes since the conversation started (git diff
against the last commit before it, uncommitted and new files included) —
with read-only tools only (read_file, search_files, skill_view,
skills_list, web_search; anything that would need an approval is
refused), and its findings, by severity with file and line, come back into
the conversation like any background helper's report. /agents shows it,
/agents stop <id> stops it. /review checks the work; /refine reviews
the conversation for memories and skills.
Jobs, messages and the board
| Tool | Asks | What it does |
|---|---|---|
cronjob |
yes, except list |
create, list, update, pause, resume, remove and run scheduled jobs |
send_message |
yes, except to this chat | post a text (and a workspace file) into a chat Oscar may reach |
kanban |
no | the board you share: cards, columns, comments, links |
cronjob: action plus job_id (id or exact name), name, prompt,
schedule (every day at 9am, every 30m, in 20 minutes, 0 9 * * 1-5
…), deliver (origin, none, a platform, platform:chat_id), repeat
(stop after that many runs) and catch_up. The approval prompt shows the
prompt, the schedule and the destination; "allow for this session" covers
further cronjob calls in that conversation. Helpers cannot manage jobs, and
jobs' own runs do not have this tool.
send_message: target is here (the chat this conversation is in;
does not ask, the reply goes there anyway), a platform (its home channel), or
platform:chat_id; message is the text, file an optional workspace file
(the same checks as send_file). action: list shows the chats Oscar may
post to: chats where an allowed user has talked to Oscar, home channels, and
on Telegram allowed users' private chats — no one else, ever. Any target but
here asks, showing the chat and the text; "allow for this session" covers
that chat only. In the gateway the message goes through the running platform;
in a terminal Oscar calls the platform's API with the configured token
(encrypted Matrix rooms are refused there). Scheduled jobs' runs do not have
this tool. Text is redacted like every reply.
kanban: action (boards, create_board, list, show, create,
update, move, comment, link, unlink, start, block, finish,
next, archive) with board, card_id, title, description, status,
assignee (user, agent, helper), priority, text, kind/target
for links, columns for a new board, review for finish. See
kanban.
Media
| Tool | Asks | What it does |
|---|---|---|
image_generate |
yes | make an image from a prompt, or edit one, with the configured image backend (optional; costs money) |
video_analyze |
only with sandbox = "host" |
frames of a workspace video, sampled with ffmpeg, looked at by a model that sees (opt-in: video_analyze = "on"; see voice and images) |
image_generate takes a prompt, optionally a size (1024x1024,
1536x1024 landscape, 1024x1536 portrait; each side 256 to 4096) and a
path in the workspace (default images/<time>-<prompt words>.<ext>).
image names an image file to edit as the prompt says, and
reference_images files whose style or content to follow (at most four
images in all; PNG, JPEG, WebP or GIF, read under read_file's reach rules).
The OpenAI backend (and provider, where the endpoint has it) sends them to
images/edits; on fal.ai the model must take images (image_model = "fal-ai/flux-pro/kontext", for example — the default text-only model says
so instead of guessing). The
image is saved through the same path rules as write_file (never into
.git, never outside the workspace in the workspace sandbox) and goes to the
user as a file: the full-screen chat says where it was saved, the Matrix
gateway posts it to the room. A bad path or size is refused before anything
is paid for. If the workspace cannot take the file, it goes to
$OSCAR_HOME/media (delivered to the user, out of the model's reach). It is
there only when image_backend is set (connectors); every
call asks, because each image costs money and the prompt leaves the machine.
Tool search
Every tool's definition is sent with every request. With a few MCP servers
that adds up to dozens of tools and tens of thousands of tokens per request,
so past a threshold Oscar sends only the core tools — reading, writing and
searching files, bash, the web, skill_view, memory, todo_list,
task, execute_code, clarify, the browser, send_file — plus
tool_search, and the system prompt says that more tools exist.
| Tool | Asks | What it does |
|---|---|---|
tool_search |
no | find tools that are not listed by keyword or intent, and list them from the next step on |
- The model describes what it needs (
"github pull requests","schedule a job",select:mcp_github_create_issuefor exact names); the best matches by name, description and parameters are loaded and listed in every following request: for the rest of the session in the chats, for the rest of the turn in chat gateways (they build an agent per message). Its description says what can be found, MCP tools grouped by server. - Approval is unchanged. A tool found this way is the same tool, with
the same schema check and the same approval;
tool_searchitself only lists names. A tool called without being found first (it was used in an earlier turn) goes through the same gate and is listed from then on. tool_search = "auto"(default) turns it on past 40 tools or 40,000 characters of definitions (tool_search_max_tools,tool_search_max_chars);"on"always leaves the non-core tools out,"off"always lists everything. Helpers (task) use it the same way.oscar doctorshows whether it is on, and the numbers.
Hooks
Your own commands can run before and after tool calls and refuse calls you never want; they only ever make Oscar stricter (hooks).
More
send_file(chats only): send a workspace file into the chat with the reply — a picture as a picture, audio as audio, anything else as an attachment; up to 50 MB; key and credentials files, and text that holds a key or token, are refused (voice and images).text_to_speech(when a TTS backend is set): a spoken reply, sent as audio in chats.- MCP servers: each server tool becomes
mcp_<server>_<tool>(asks); alsomcp_listandmcp_call(connectors). A server that asks the user something mid-call gets a form in the terminal chats (see chat-and-tui, "MCP servers' questions"); elsewhere the question is declined and passed to the model. source_query: read-only queries against configured data sources (integrations).- Lua tools: your own, from
$OSCAR_HOME/tools(Lua tools).