Skip to main content

Crate oxicode

Crate oxicode 

Source
Expand description

oxicode: CLI coding harness

This crate provides the main application logic for the oxicode CLI.

Re-exports§

pub use storage::packages::PackageManager;
pub use storage::packages::ResourceKind;

Modules§

bootstrap
Application bootstrap and run-mode dispatch.
cli
CLI argument parsing with clap
discovery
Rule discovery for the TTSR (Time-Traveling Stream Rules) engine.
extensions
Extension system for oxicode
internal_urls
Internal URL scheme handlers for issue:// and pr:// virtual paths.
lsp
CLI-side LSP adapter.
main_dispatch
Single-prompt helper shared by the binary entry and integration tests.
mcp_credentials
File-backed MCP credential provider (v2.2).
oauth_listener
Single-shot HTTP listener for OAuth authorization_code callbacks. Binds an ephemeral 127.0.0.1 port, accepts one connection, parses the GET <path>?<query>, returns the code and state.
oauth_refresh
Per-provider OAuth refresh coalesce.
print_mode
Print mode (non-interactive) for oxicode.
provider_oauth
OAuth authorization_code support for LLM providers.
rpc_mode
RPC mode for headless operation
services
Composition root for oxicode-cli.
setup_wizard
Interactive setup wizard for oxicode (oxicode setup).
storage
Storage and resources — packages, resources (skills/themes/prompts), export
store
oxicode-cli’s self-contained domain types and adapters.
symbols
tools
oxicode-cli-specific agent tools.
tui_vt

Structs§

App
Holds an Oxicode engine (composition root) and a single Agent built from it. The legacy App::new(settings) constructor is gone; use App::from_oxicode with a wired Oxicode from build_oxicode_engine.
CompactionContext
Context for compaction operations, passed to extension hooks
SessionState
Pre-built session state threaded into the agent hook chain.

Functions§

build_oxicode_engine
This is the new entry point for oxicode-cli run modes. It uses oxicode-fs adapters and OxicodeBuilder::with_port_* to construct an Oxicode with persistence, auth, config, and skills wired. The legacy App::new path is still used by the interactive TUI during the migration period.
run_port_check
Self-check the wired port implementations. Prints a one-line summary per port and returns Ok(()) if all are reachable.