You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
oxa sets itself up: change any of its own settings from the chat (config set/undo + settings tool) #220
Owner 2026-11-21: "A power user should be able to only work in oxa. Not only for local models, but its own settings. So any user can ask oxa to set it up like the user wants."
Today oxa cannot configure itself:
oxa config only lists settings (oxa-cli/src/config_cmd.rs); there is no set/unset.
The file tools deny the private agent directory (~/.oxa/agent, where settings.json lives) in every mode, so the model cannot edit settings either.
oxa local, oxa lead and share commands refuse agent callers (#2271).
Build (Rust, one path for CLI and model):
oxa config set|unset|get <key> [value] plus a model tool settings over the same code: validated against the settings schema (descriptor), unknown keys refused with the nearest valid key, the file kept 0600 and written atomically, a backup of the previous file, oxa config undo to revert the last change, and every change recorded (who, key, old -> new) and shown in the session.
The same for the rest of oxa's own setup: providers and models (oxa local, cloud model routes), permission mode defaults, sandbox, hooks, MCP servers, themes, keybindings, lead/worker settings, skills.
Keys and tokens: oxa can start the key flow (oxa key add <provider>) but the secret is typed by the user into a hidden prompt and never enters the model, the session or logs.
Block list (docs/threat-model.md "Risk we accept"): an untrusted project must not change user settings. So the tool works in the owner's own session (attended, yolo, or a worker the lead started); when the session's project is untrusted, the change is shown and asks once. In yolo nothing asks. Changes to the blocking keys (offline, allowRemote/share, metered caps) are always shown in one line.
Done when: in a fresh install, a user can say "use my local GGUF as default, add OpenAI with my key, yolo by default, dark theme, 8 workers" and oxa does all of it from the chat, the key is never shown, every change is listed and oxa config undo reverts the last one.
Includes #211.
Activity