man oscar The manual Skills and tools

Skills, learning and memory

Skills, installing skills from GitHub and hubs, proposals, the curator, memory.

MANUAL / SKILLS AND TOOLS 11 / 29
Bundled skills. Every skill that ships inside Oscar, by category, with when to use it: Bundled skills.

Skills

A skill is a folder with SKILL.md (frontmatter + instructions). The index of skill names and one-line descriptions is in your prompt; load one with skill_view. Format rules (oscar skills lint): description at most 60 characters and ending with a period, no marketing words, must not repeat the name, author: Oscar, and a ## When to Use section. Installed skills are linted with the rules for skills someone else wrote (see below).

Where they live:

  • Bundled ($OSCAR_HOME/skills-bundled/): shipped inside the binary and installed on start. A new release updates a bundled skill only if the user has not edited their copy; a deleted one is not re-added (except oscar-agent). You and the curator never change bundled skills, and their names cannot be reused.
  • User and agent skills ($OSCAR_HOME/skills/). New ones go to skills_create_dir when it is set (a folder of its own, read like this one; ~/ is your home directory, a relative path is in $OSCAR_HOME); the archive, the curator's state and installed skills stay here.
  • Installed skills ($OSCAR_HOME/skills/ too): skills someone else wrote, installed with oscar skills install (below). oscar skills list shows where each came from.
  • Project skills (.oscar/skills/ and .agents/skills/ in the workspace) and extra folders (skill_dirs): read in place once you trust them (below).

Where a skill is offered

A skill's frontmatter (top level or under metadata) can keep it out of the skill index where it does not belong:

yaml
platforms: [linux, macos]          # operating systems: linux, macos, windows
platforms: [terminal]              # surfaces: cli, tui, matrix, telegram, discord,
                                   # api, acp, cron; terminal = cli+tui, chat = the gateways
requires_tools: [web_search]       # only while these tools are on
requires_toolsets: [shell]         # only while these tool groups are on
fallback_for_tools: [web_search]   # only while these tools are off
fallback_for_toolsets: [web]       # only while these groups are off (a curl recipe for when web is off)

Operating systems and surfaces combine: [linux, terminal] is the terminal chats on Linux. Lists may be written [a, b] or as - a lines. Tool groups are those of oscar tools list (files, shell, web, browser, memory, …; terminal means shell). A skill left out is still there: skill_view and skill commands load it by name. oscar skills lint warns about platform names it does not know.

Bundles

Several skills you always use together load with one command: /bundle <name> [prompt] in the terminal chats, !bundle in chat gateways — the same as typing the skills as commands (/a /b prompt). /bundle alone lists them; oscar skills bundle list and oscar skills bundle show <name> too. Define one in config.toml or as $OSCAR_HOME/bundles/<name>.toml, with the same keys:

toml
[bundles.ship]
skills = ["code-review", "release-notes"]
description = "Get a change ready to ship."
instruction = "Review first, then write the notes."   # goes before your prompt

A skill the bundle names that is not there is left out and said so.

Changing your skills (skill_manage)

The model changes your own skills directly with skill_manage, and lists every skill with skills_list (name, description, origin, whether it can be changed). Actions:

Action Takes Does
create name, content (the whole SKILL.md) a new skill in $OSCAR_HOME/skills/<name>/ (or skills_create_dir)
edit name, content replaces SKILL.md
patch name, old, new, optionally file replaces the exact text old (once) in SKILL.md or another file of the skill; answers with a diff
delete name moves the skill to skills/.archive/ (oscar skills restore <name> brings it back)
write_file name, file, content writes a supporting file, such as references/notes.md (at most 1 MiB, never executable)
remove_file name, file removes one
  • Only your skill folder. Bundled, plugin, project and extra skills are never changed, and a new skill cannot take their names.
  • Every change asks, like a file write: in ask mode you see the action, the skill, the file and the new text; in auto mode it is approved with an audit line. "Allow always" is not offered for it.
  • Checked like your own skills: SKILL.md must pass the lint (the same rules as oscar skills lint; the frontmatter name must match), nothing may hold a key, your home path or the machine's name, and every file is scanned like an installed skill — text that tells the model to drop its instructions or hide things from you, reaches for credentials, sends data away, pipes a download into a shell, or carries invisible characters is refused. Paths stay inside the skill's folder (no .., no links out).
  • A new or changed skill is in the skill index from the next session; skill_view reads it at once.
  • Your say stands: a skill you locked (oscar skills lock) is never changed, and a pinned one never deleted (edits still work); the model is told to describe the change it wanted instead.
  • Every change is in the skill ledger, with a copy of the skill as it was (see "History and rollback" below).

skill_create still writes a proposal for you to accept, as before.

Project skills and extra skill folders

A repository can ship skills for working on it: .oscar/skills/<name>/SKILL.md in the workspace, or .agents/skills/<name>/SKILL.md (the folder other agents read too; same trust rules). Folders elsewhere — a team's shared skills — are added with skill_dirs in config.toml (comma-separated or an array; ~/ is your home directory, a relative path is in the workspace).

Trust. What a repository contains was written by someone else, and a skill is instructions Oscar follows, so these folders are used only once you trust them, as they are:

  • Starting a chat on a terminal (oscar, oscar chat), Oscar shows the folder and its skills and asks once whether to use them. The answer is remembered for the folder's path and the exact contents (a hash of every file, .git aside): when its files change — a git pull — the folder is not used until you say yes again. A no is remembered too, until the folder changes.
  • oscar skills trust [path] trusts a folder outright (default: the workspace's project folders that have skills); oscar skills untrust [path] stops using it.
  • Chat gateways, oscar run and the other surfaces never ask and never trust a folder on their own: trust it from a terminal first.
  • The records are in $OSCAR_HOME/skill-trust.json, out of the tools' reach: the model cannot trust a folder for you.

Precedence. Your own skills first, then the bundled ones, then the project's, then the extra folders in the order configured. A project or extra skill never replaces a bundled or user skill of the same name: it is left out, and oscar skills list and oscar doctor say so ("not used: project skill deploy … a bundled skill has its name"). With project_skills_override = "on", a trusted project's skill wins over a user or bundled skill of the same name inside that project (the one it replaces is listed as not used); extra folders never do.

What they are. Read-only for Oscar: never maintained by the curator, never patched by the skill review or proposals, whatever their frontmatter says. They are linted with the rules for skills someone else wrote, appear in the skill index marked [project] or [extra], and oscar skills list shows each one's origin and folder, the folders not trusted yet and how to trust them. A skill that cannot be read, or whose SKILL.md leads out of its folder through a link, is left out and reported instead of breaking the rest. skill_view reads a skill's other files only from inside its folder.

What a skill needs, and its settings

A skill can say what it needs in its frontmatter:

yaml
requires:
  env:                     # keys and tokens, from credentials.env or the environment
    - GITHUB_TOKEN
    - name: TRACKER_API_KEY
      prompt: The issue tracker's API key
      help: https://tracker.example/settings/keys
  config:                  # settings, from [skills.<name>] in config.toml
    - key: repo
      description: The repository to work on (owner/name)
    - key: branch
      default: main

(The short forms requires: { env: [GITHUB_TOKEN], config: [repo] } and a required_environment_variables: list of name/prompt/help items are read too.) A skill cannot ask for Oscar's own settings or for what decides where requests go — OSCAR_*, *_BASE_URL, the connector settings, PATH and the like are ignored — so a skill's prompt cannot talk you into redirecting Oscar.

  • Loading the skill checks it. In the full-screen chat, the line chat and oscar run on a terminal, what is missing is asked for with the hidden secret prompt: keys go to credentials.env (mode 0600), settings to config.toml under [skills.<name>]; leave one empty to skip it. The model is told only which names were set, never a value. Asked once: the next load finds them.

  • Chat gateways never ask for a secret in the chat (it would stay in the room's history): the model is told what is missing and tells you what to set where, for example "add GITHUB_TOKEN=... to ~/.oscar/credentials.env".

  • Settings from [skills.<name>] (with the skill's declared defaults for those not set) are handed to the skill as context when it is loaded:

    toml
    [skills.deploy]
    region = "eu-west-1"
    replicas = 3

    They are not for secrets; keys belong in credentials.env.

  • oscar skills check <name> lists what the skill needs, what is set and where, and what is missing (exit status 1 when something is).

  • Saved keys serve Oscar and its integrations (MCP servers' ${NAME} references, connectors). Shell commands get a secret variable only on purpose: while a skill is loaded in a conversation, the variables it declares are passed to that conversation's commands (the workspace sandbox and the host), so its scripts can use them; every other *_API_KEY, *_TOKEN, *_SECRET and the like stays out of every command's environment. A skill never gets Oscar's own provider, vault or chat gateway secrets this way; terminal_env_passthrough names variables to pass always. See approvals and sandbox for the trade-off.

Installing skills from GitHub and skill hubs

shell
oscar skills search pdf merge                  # skills.sh and ClawHub
oscar skills install owner/repo/skills/pdf     # a folder of a GitHub repository
oscar skills update                            # every installed skill
oscar skills uninstall pdf

oscar skills install <source> takes:

Source Example
a GitHub repository, or a folder in one, at a branch, tag or commit owner/repo, owner/repo/skills/pdf, owner/repo/skills/pdf@v1.2
a GitHub link to a folder or a SKILL.md https://github.com/owner/repo/tree/main/skills/pdf
a skills.sh skill skills-sh:owner/repo/skill, or its https://skills.sh/… page
a ClawHub skill clawhub:slug, clawhub:@owner/slug
a skill a site publishes in /.well-known/skills/ https://example.com/.well-known/skills/deploy
a URL to a single SKILL.md https://example.com/skills/deploy/SKILL.md
a URL to an archive (.zip, .tar.gz, .tgz, .tar) https://example.com/pack.zip, or …/pack.zip#skills/deploy to pick one skill inside

oscar skills search <words> asks skills.sh and ClawHub at once (one failing does not stop the other); --site https://example.com searches that site's /.well-known/skills/index.json instead; --limit caps the results. Each result is printed with the exact source to install.

What happens on install:

  • Nothing is run. The files are downloaded, checked, and written into $OSCAR_HOME/skills/<name>/ without the executable bit. A skill's scripts can be run later by the model, through the approval gate like any command.
  • Every file of a GitHub skill comes from one commit, the one the branch or tag pointed to (the default branch when you name none).
  • Lint: the same format checks as your own skills, adjusted for skills someone else wrote: the author is the real author, and a description over 60 characters is a warning (the index shows the first 60). A skill with no usable name, no description or an empty body is refused.
  • Scan: every file is read for text that steers the model ("ignore your previous instructions", hiding things from you), reaches for credentials (~/.ssh, cloud keys, Oscar's own credentials.env), sends secrets or the environment to a URL, pipes a download into a shell, opens a reverse shell, deletes the home folder, adds SSH keys or sudo rights, or carries a hard-coded key, a binary or invisible characters. Dangerous findings refuse the install; after reading the files, --force installs anyway. Warnings (sudo, shell start-up files, cron) are shown and do not block.
  • Scripts need your yes: a skill that ships scripts (by extension, a #! line, or an executable bit) is installed only after you confirm — a prompt on a terminal, --yes elsewhere.
  • Limits: at most 300 files, 1 MiB per file, 10 MiB per skill, 25 MiB per download. Archives are unpacked in memory; paths that leave the archive, links, special files, encrypted or ZIP64 archives and size bombs are refused.
  • Provenance: $OSCAR_HOME/skills/.installed.json records each installed skill's source, the commit or version, a sha256 hash of its files, the file list and its scripts.

--name <name> installs under another name (a bundled skill's name is never taken, and a skill you wrote is never overwritten). --force also replaces an installed skill of the same name.

oscar skills update [name] checks each installed skill against its source: an unchanged commit or version is "up to date" without downloading anything; otherwise the new files are fetched, compared by hash, and the new and removed files listed. The update goes through the same lint, scan and script confirmation. A copy you edited is not replaced without --force. --check only reports.

oscar skills uninstall <name> removes only skills installed this way (a skill you wrote is put aside with oscar skills archive instead).

Downloads send User-Agent: Oscar-Agent/<version>. GITHUB_TOKEN (or GH_TOKEN), when set, is sent to GitHub only, and lifts GitHub's limit for anonymous requests. OSCAR_GITHUB_API_URL, OSCAR_GITHUB_RAW_URL, OSCAR_SKILLS_SH_URL and OSCAR_CLAWHUB_URL point the sources elsewhere (a GitHub Enterprise server, a mirror).

Skills brought over by oscar import are recorded the same way, with no source to update from.

Before installing, and after:

shell
oscar skills tap add acme/team-skills          # a GitHub repository (or a folder in one, @ref)
oscar skills tap add https://example.com/skills/index.json
oscar skills tap list | remove <name>
oscar skills browse [--source <tap|clawhub|url>] [--page N] [--per-page N]
oscar skills inspect <source>                  # files, scan findings, provenance; installs nothing
oscar skills audit [--all]                     # scan what is installed again, as it is on disk

A tap is a source of your own beside the hubs: a GitHub repository (every folder with a SKILL.md) or an index URL (JSON {"skills": [{"name", "description", "source"}]}, or a site's /.well-known/skills/index.json). Taps are kept in $OSCAR_HOME/skills/.taps.json and trust nothing: what you install from one is fetched, scanned and confirmed like any install. browse lists a source a page at a time with the exact id to install (default: your first tap, else ClawHub). inspect fetches a skill and shows its files, sizes, the lint and scan findings, the commit and content hash and whether install would refuse it, without installing. audit re-scans installed skills (with --all, every skill in your folder) and says which were edited since they were installed; it fails when it finds dangerous content.

Learning

Oscar learns from your sessions in the background, after the reply, so it never slows a turn down:

  • Memory review, every 10 messages you send in a conversation (review_memory_every; chat, the full-screen chat, chat gateways): a short review with only the memory tool reads the recent conversation and saves what is worth keeping to MEMORY.md or USER.md, or nothing. Recalled memories from a memory provider are left out, so they are never copied back.

  • Skill review, at the end of a turn once 10 tool-calling steps passed since the last skill review or the last time skill_manage was used (creation_nudge_interval; 0 turns it off; chat, the full-screen chat, the dashboard chat, chat gateways). Steps count only where the skills tools are offered (tools_<surface>), and the count is taken from the stored conversation, so it carries across messages and restarts. Never for helpers, scheduled jobs, the HTTP API or a run from a script; nothing is ever added to the conversation itself. The reviewer reads the recent conversation and the skills that were in play (read with skill_view), and when there is a lesson worth keeping — a technique or fix that worked, a correction or preference you stated, a skill that proved wrong or incomplete — it writes it at once through skill_manage, in this order: a section added to the skill that was in play, a support file (references/<topic>.md) under it with a pointer, or a new skill named for the class of task (never for today's instance):

    • the same lint, scan and origin rules as the model's own changes; it may improve any skill in your folder — one you wrote, adopted or imported, or the agent's own (a new one is marked agent-managed, so the curator may later archive it); bundled, project and extra skills are read-only. A locked skill is never touched: lock a skill (oscar skills lock <name>) to keep the review off it;
    • every change is in the skill ledger, so oscar skills history <name> shows it and oscar skills rollback <name> undoes it, with an audit line (review_applied) in $OSCAR_HOME/audit/approvals.jsonl;
    • the conversation gets a short notice ("📚 created the skill … from this conversation", or "updated the skill …"), as review_notice says;
    • what skill_manage refuses (the scan) is kept as a proposal instead.
  • Except after untrusted content. A conversation that read untrusted content since its last review is a way for someone else to plant instructions in your later sessions, so by default (review_untrusted = "propose") the review's change becomes a proposal instead of a write, with a notice that says why: "📚 new skill proposed: … — this conversation read web/untrusted content (web_fetch), so the skill change waits for your !accept". The memory review does the same with memory: its changes go to the approval queue (/memory pending, !memory pending; approve or reject them there) instead of MEMORY.md and USER.md. What counts as untrusted content:

    • web_fetch, web_search, x_search, browser and browser_vault;
    • vision_analyze or video_analyze on a remote address;
    • any tool of an MCP server with trust = untrusted (its read-only tools too), mcp_call to one, and MCP tools of a server Oscar no longer has in mcp.json; a trusted server's tools do not count;
    • a shell command that names a remote http(s):// address, reads mail (himalaya, mutt, notmuch, gws gmail …) or reads GitHub issues and pull requests (gh issue, gh pr, gh api);
    • a helper (task) that may use any of those (no tool list, or one that names them), and a background helper's report;
    • other people's messages: a group conversation in a chat gateway with more than one sender, and turns that carried other people's words (Telegram's observe mode, earlier channel messages, another bot's message).

    Conversations with only your own messages, local files (also documents read with read_file) and Oscar's own tools are written at once as above. review_untrusted = "direct" (oscar config set review_untrusted direct, or OSCAR_REVIEW_UNTRUSTED=direct) writes after untrusted content too; a value that is neither proposes. With skill_review_apply = "propose" every change is a proposal anyway. /refine follows the same rule. See persistence and poisoning for what else is screened before it is kept.

  • To decide every change yourself, set skill_review_apply = "propose" (oscar config set skill_review_apply propose, or OSCAR_SKILL_REVIEW_APPLY=propose): the review then writes a proposal, which never applies itself. Decide with oscar proposals list, show <id>, accept <id>, reject <id>; in the chat with /proposals, /accept <id>, /reject <id>; in chat gateways with !proposals, !accept <id>, !reject <id>. direct (the default) brings the writes back; a value that is neither proposes.

  • oscar run on a terminal gets the same skill review when its steps reach the interval (it waits for it and prints the notice); from a script it gets none.

  • Settings (config.toml):

    Key Default Means
    review_memory_every 10 user turns between memory reviews (0: never)
    creation_nudge_interval 10 tool-calling steps since the last skill review or skill_manage call before the next skill review (0: never). review_skill_after is its older name and still works; when both are set, creation_nudge_interval wins (Oscar warns once, and oscar doctor says so)
    review_max_tokens 3000 tokens of conversation one review reads at most (the recent part)
    review_model aux_model, else the provider's cheaper model, else the chat model the model reviews run on: model, provider:model (another provider's key from credentials.env; a custom provider works) or an alias
    review_notice brief what the chat is told: off (nothing; the reviews still run), brief ("memory updated"), verbose (the entries saved, the skill's description, why no skill)
    skill_review_apply direct direct: the skill review and /learn change your skills at once (in the ledger); propose: they write proposals for you to accept
    review_untrusted propose after a conversation that read untrusted content (web pages, search results, browser pages, untrusted MCP servers, mail, other people's messages): propose: the skill review's change is a proposal and the memory review's changes wait in memory pending, each with a notice saying why; direct: written like any other

    OSCAR_REVIEW=0 turns the automatic reviews off; aux_model (OSCAR_AUX_MODEL) still picks the model when review_model is not set. The chat waits for a review that is still running before it exits. oscar doctor shows how the reviews run on its learning line.

  • /refine (the full-screen and line chats) and !refine (chat gateways; /refine on Telegram) run both reviews now on the current conversation instead of waiting for the cadence, and report what they did: the memory entries added or removed (+ USER.md: …), and the skill it created or updated (with propose: the proposal with its id, to accept or reject as usual) or why there was none. It runs also with OSCAR_REVIEW=0 — you asked — and the cadence counts from there.

  • skill_create (your tool) also writes a proposal.

Learning from a source (/learn)

/learn <url | path | text> [what you want from it] in the terminal chats, !learn in chat gateways and oscar learn … on the command line turn something you already have into a skill:

text
/learn https://docs.example.com/api/quickstart focus on auth and paging
/learn ~/projects/acme-sdk the REST client
/learn filing an expense: open the portal, New > Expense, attach the receipt, submit
/learn ~/books/handbook.pdf
  • The first word is the source when it is a URL or a path that exists; the rest is what you want from it. Anything else is the text to learn from. A URL is fetched like web_fetch (public addresses only, the website blocklist applies). A folder is read file by file (notes, docs and code; hidden folders, target and node_modules left out); PDF and office documents are read as text. From a chat gateway only paths inside the workspace are read; never Oscar's home or credential files.
  • A small source becomes one skill. A large one (over 16,000 characters) becomes a knowledge-base skill: each section of the material is distilled, in a model call of its own, into a reference file (references/<topic>.md), and a lean SKILL.md carries the core ideas and an index saying which file answers what (read with skill_view). Capped: 12 sections (what is left over is named), 12,000 characters per reference file, the material read and each reply.
  • The result is the skill itself, written through skill_manage and in the ledger (oscar skills rollback <name> undoes it), or, with skill_review_apply = "propose" (or when skill_manage refuses the write), a proposal to accept or reject like the review's. Learning about a topic a skill in your folder covers already updates that skill, yours or the agent's (a locked one never: a new skill is made instead). The material is never copied into the skill; it is distilled. A web page you name here is your own choice of source, so review_untrusted does not apply: it is written like a file, and the ledger entry says where the content came from (content from https://…, shown by oscar skills history).
  • Because it writes skills at once, !learn in a chat gateway is for the bot's admins; with propose anyone allowed may use it.
  • oscar learn --apply accepts the proposal at once (with propose).

The curator

The curator keeps the agent's own skills tidy: an agent-managed skill (one with created_by: agent) unused for 14 days is marked stale, after 30 it is archived (moved to skills/.archive/, never deleted; oscar skills restore <name> brings it back). Bundled, project, extra and installed skills, and skills you wrote, are never touched.

shell
oscar curator status          # thresholds, what it manages, protects and archived, next run
oscar curator run --now       # run it now (--dry-run shows what it would do)
oscar curator purge [--days N] [--dry-run]
/curator [status|run]         # in the terminal chats; !curator in chat gateways (admins)
  • Thresholds (config.toml): curator (on/off), curator_interval_hours (168), curator_min_idle_hours (2), curator_stale_after_days (14), curator_archive_after_days (30), curator_purge_after_days (0: archived skills are kept forever).
  • Never moved: pinned skills (oscar skills pin <name>, or pinned: true in the frontmatter), locked skills (oscar skills lock <name>), and the skills a scheduled job names in its prompt (paused jobs too) — archiving one would break the job.
  • Purge deletes archived skills older than curator_purge_after_days (or --days), only when you run it, each backed up to the ledger first.
  • Adopt: oscar skills adopt <name> makes an agent-managed skill yours (the created_by: agent marker goes): the curator leaves it alone from then on. The background review and /learn may still improve it; lock it (oscar skills lock <name>) to keep them off it.
  • oscar curator consolidate merges overlapping agent skills (never automatic).

Pin and lock

oscar skills pin <name> keeps a skill: never marked stale or archived by the curator, never deleted by the agent (edits still work). oscar skills lock <name> freezes it: the curator, the background review, /learn and the agent's skill tools leave it exactly as it is; your own edits always work. unpin and unlock undo them. The flags live in $OSCAR_HOME/skills/.flags.json, where tools cannot write.

History and rollback

Every automatic change to a skill — the curator's (stale, archive, purge), the background review's and /learn's direct writes, accepted proposals, the agent's skill_manage changes, adopt and journey delete — is recorded in the skill ledger with a copy of the skill as it was before ($OSCAR_HOME/skills/.ledger/; the newest 300 copies are kept).

shell
oscar skills history [name]           # change id, time, action, who, whether it was rolled back
oscar skills rollback <name> [change] # undo one change (default: the newest not undone)

A rollback puts the skill back as the copy has it (an archived one back in use, a purged one back in the archive; a skill that did not exist before goes to the archive). It is a change of its own, so it can be rolled back too.

The journey

oscar journey shows what Oscar has learned: skills (in use, stale, archived), what was absorbed into what, and how much memory there is.

shell
oscar journey list               # every node: skills by name, memory entries as memory:<n> / user:<n>
oscar journey show <node>        # a skill's text, use and recent changes, or a memory entry
oscar journey delete <node> [-y] # a skill is archived (restorable); a memory entry removed
oscar journey edit <node>        # opens SKILL.md or the entry in $VISUAL / $EDITOR

Editing a skill backs it up to the ledger first and lints it afterwards.

Memory

Two small files in $OSCAR_HOME persist across sessions and are in the prompt of every new session:

  • MEMORY.md: the agent's own notes (environment facts, conventions, lessons), at most 2,200 characters (memory_char_limit);
  • USER.md: who the user is (preferences, role, style), at most 1,375 characters (user_char_limit).

A snapshot per session. The prompt holds memory as it was when the session started, and keeps it for the whole session, so the prompt stays the same from turn to turn (prompt caching keeps working). A change is saved at once and shows in the prompt from the next session — a new chat, /new, or a new conversation in a chat gateway; the agent knows what it saved. A chat gateway takes each conversation's snapshot when the conversation is first seen, not when the gateway started.

The memory tool edits them: add, replace and remove, an entry named by its number or by a piece of its text (old_text), and operations for several changes at once, applied together or not at all (free space, then add). oscar memory list|add|remove does the same from the shell. They are a curated snapshot, not an archive: when a file is full, a new entry is refused and the agent is told to consolidate (merge related entries, drop stale ones); a refused change answers with the entries as they are. The prompt shows how full each file is. A file you grew past its budget by hand still loads whole and can always shrink. Memory refuses anything that looks like a credential, tells the model to ignore its instructions or hide things from you, sends data to a URL or a capture service, or hides text in invisible characters — memory is read as instructions in every later session.

Settings: memory_char_limit and user_char_limit (characters, 100 to 100,000); memory_enabled = "off" or user_profile_enabled = "off" takes a file out of the prompt and out of the tool (both off: no memory tool, and the background memory review does not run).

Approving memory writes. memory_write_approval = "ask" makes every change wait for you — the model's and the background review's: the tool answers "saved for the user's approval as mem-…", and /memory pending (the terminal chats), !memory pending (chat gateways) or oscar memory pending lists what waits, with approve <id|all> and reject <id|all> to decide (in a shared chat, only admins decide). An approved change is checked again against memory as it is then. The default, off, saves at once.

For long-term memory beyond this, add an external memory provider (connectors).

Persona and project files

SOUL.md in $OSCAR_HOME is the persona (oscar soul --init writes the default). Project files are the project's instructions: the model follows them for work in the project, after you, SOUL.md and Oscar's safety and approval rules (where they conflict, those win). Each is capped by the model's context window — about a twentieth of it, at least 20,000 and at most 200,000 characters — keeping its head and its tail with a marker where the middle was cut. Before they reach the model they are scanned: a passage that tells the model to ignore its rules, to keep things from you, to send secrets out or to get around approvals, or that hides text in invisible characters, is replaced by a visible [blocked: <reason>] marker (the log says which file). Exactly one kind is used, the first that exists:

  1. .oscar.md or OSCAR.md, the nearest one from the workspace up to the git root;
  2. AGENTS.md: every one from the git root down to the workspace, where a directory's AGENTS.override.md (for personal, uncommitted rules) wins over its AGENTS.md; Oscar's CONTEXT.md in the workspace is read with them;
  3. CLAUDE.md in the workspace;
  4. .cursorrules and .cursor/rules/*.mdc in the workspace.

oscar context shows which files load.

Subdirectories. When a tool first reaches into a folder below the workspace (reads a file there, runs a command there, patches a file in it), that folder's AGENTS.md (or AGENTS.override.md, CLAUDE.md) — and those of the folders between — is read once, capped and scanned the same way, and added to that call's result, so the system prompt (and its cache) stays the same. Folders of other projects (node_modules, target, vendor, .git …) are skipped, and a file that is a link out of its folder is never read.