Expand description
Oxide Forge — multi-provider AI guest app generation layer.
Turns a user’s natural-language prompt into a compiled guest .wasm
module that can be hot-loaded into an Oxide tab. Driven entirely by
the native host UI (oxide://forge) — no guest-side API yet.
Pipeline:
ForgeState::start— scaffolds a fresh project under the active Forge output directory, copyingforge/templates/base/and spawning a background task that streams a Claude response into the session’scodebuffer.- The UI polls
ForgeState::snapshoteach frame to render progress. - When streaming completes, the session’s
src/lib.rsis written to disk. The UI may then callForgeState::build, which spawnscargo build --target wasm32-unknown-unknown --releasein the session directory and populates eitherartifact_pathorbuild_logon completion.
API keys for Anthropic, OpenAI, Google Gemini, and xAI can be configured
in the oxide://forge settings panel or via environment variables. The system
prompt is composed at boot from the oxide-wasm-app Agent Skill under
forge/skills/oxide-wasm-app/ (see https://agentskills.io/): its
SKILL.md body plus every markdown file it bundles in references/.
Structs§
- Forge
Chat Message - One turn in the Forge chat UI (Cursor-style conversation).
- Forge
Creation Summary - Forge
Snapshot - Snapshot of a session for the UI to render. Cheap to clone (a few strings).
- Forge
State
Enums§
- Forge
Message Role - Role of a message in the Forge chat thread.
- Forge
Phase - Coarse-grained state machine for a single Forge session, surfaced to the UI.
Constants§
- DEFAULT_
MODEL - Default model. Override with
OXIDE_FORGE_MODELenv var.