GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — code/code-rs at main · cbusillo/code

This repository was archived by the owner on Sep 20, 2026. It is now read-only.

Expand file tree

/

code-rs

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

code-rs

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.cargo
.cargo
 
 
.config
.config
 
 
.github/workflows
.github/workflows
 
 
agent-graph-store
agent-graph-store
 
 
agent-identity
agent-identity
 
 
analytics
analytics
 
 
ansi-escape
ansi-escape
 
 
app-server-client
app-server-client
 
 
app-server-protocol
app-server-protocol
 
 
app-server-test-client
app-server-test-client
 
 
app-server-transport
app-server-transport
 
 
app-server
app-server
 
 
apply-patch
apply-patch
 
 
arg0
arg0
 
 
async-utils
async-utils
 
 
aws-auth
aws-auth
 
 
backend-client
backend-client
 
 
builtin-mcps
builtin-mcps
 
 
bwrap
bwrap
 
 
chatgpt
chatgpt
 
 
cli
cli
 
 
cloud-requirements
cloud-requirements
 
 
cloud-tasks-client
cloud-tasks-client
 
 
cloud-tasks-mock-client
cloud-tasks-mock-client
 
 
cloud-tasks
cloud-tasks
 
 
code-mode
code-mode
 
 
codex-api
codex-api
 
 
codex-backend-openapi-models
codex-backend-openapi-models
 
 
codex-client
codex-client
 
 
codex-experimental-api-macros
codex-experimental-api-macros
 
 
codex-mcp
codex-mcp
 
 
collaboration-mode-templates
collaboration-mode-templates
 
 
config
config
 
 
connectors
connectors
 
 
core-api
core-api
 
 
core-plugins
core-plugins
 
 
core-skills
core-skills
 
 
core
core
 
 
debug-client
debug-client
 
 
docs
docs
 
 
exec-server
exec-server
 
 
exec
exec
 
 
execpolicy-legacy
execpolicy-legacy
 
 
execpolicy
execpolicy
 
 
external-agent-migration
external-agent-migration
 
 
external-agent-sessions
external-agent-sessions
 
 
features
features
 
 
feedback
feedback
 
 
file-search
file-search
 
 
file-system
file-system
 
 
git-utils
git-utils
 
 
hooks
hooks
 
 
install-context
install-context
 
 
keyring-store
keyring-store
 
 
linux-sandbox
linux-sandbox
 
 
lmstudio
lmstudio
 
 
login
login
 
 
mcp-server
mcp-server
 
 
memories
memories
 
 
message-history
message-history
 
 
model-provider-info
model-provider-info
 
 
model-provider
model-provider
 
 
models-manager
models-manager
 
 
network-proxy
network-proxy
 
 
ollama
ollama
 
 
otel
otel
 
 
plugin
plugin
 
 
process-hardening
process-hardening
 
 
protocol
protocol
 
 
realtime-webrtc
realtime-webrtc
 
 
response-debug-context
response-debug-context
 
 
responses-api-proxy
responses-api-proxy
 
 
rmcp-client
rmcp-client
 
 
rollout-trace
rollout-trace
 
 
rollout
rollout
 
 
sandboxing
sandboxing
 
 
scripts
scripts
 
 
secrets
secrets
 
 
shell-command
shell-command
 
 
shell-escalation
shell-escalation
 
 
skills
skills
 
 
state
state
 
 
stdio-to-uds
stdio-to-uds
 
 
terminal-detection
terminal-detection
 
 
test-binary-support
test-binary-support
 
 
thread-manager-sample
thread-manager-sample
 
 
thread-store
thread-store
 
 
tools
tools
 
 
tui
tui
 
 
uds
uds
 
 
utils
utils
 
 
v8-poc
v8-poc
 
 
vendor
vendor
 
 
windows-sandbox-rs
windows-sandbox-rs
 
 
.gitignore
.gitignore
 
 
BUILD.bazel
BUILD.bazel
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 
clippy.toml
clippy.toml
 
 

README.md

Outline

Codex CLI (Rust Implementation)

We provide Codex CLI as a standalone executable to ensure a zero-dependency install.

Installing Codex

Today, the easiest way to install Codex is via npm:

npm i -g @openai/codex
codex

You can also install via Homebrew (brew install --cask codex) or download a platform-specific release directly from our GitHub Releases.

Documentation quickstart

  • First run with Codex? Start with docs/getting-started.md (links to the walkthrough for prompts, keyboard shortcuts, and session management).
  • Want deeper control? See docs/config.md and docs/install.md.

What's new in the Rust CLI

The Rust implementation is now the maintained Codex CLI and serves as the default experience. It includes a number of features that the legacy TypeScript CLI never supported.

Config

Codex supports a rich set of configuration options. Note that the Rust CLI uses config.toml instead of config.json. See docs/config.md for details.

Model Context Protocol Support

MCP client

Codex CLI functions as an MCP client that allows the Codex CLI and IDE extension to connect to MCP servers on startup. See the configuration documentation for details.

MCP server (experimental)

Codex can be launched as an MCP server by running codex mcp-server. This allows other MCP clients to use Codex as a tool for another agent.

Use the @modelcontextprotocol/inspector to try it out:

npx @modelcontextprotocol/inspector codex mcp-server

Use codex mcp to add/list/get/remove MCP server launchers defined in config.toml, and codex mcp-server to run the MCP server directly.

Notifications

You can enable notifications by configuring a script that is run whenever the agent finishes a turn. The notify documentation includes a detailed example that explains how to get desktop notifications via terminal-notifier on macOS. When Codex detects that it is running under WSL 2 inside Windows Terminal (WT_SESSION is set), the TUI automatically falls back to native Windows toast notifications so approval prompts and completed turns surface even though Windows Terminal does not implement OSC 9.

codex exec to run Codex programmatically/non-interactively

To run Codex non-interactively, run codex exec PROMPT (you can also pass the prompt via stdin) and Codex will work on your task until it decides that it is done and exits. If you provide both a prompt argument and piped stdin, Codex appends stdin as a <stdin> block after the prompt so patterns like echo "my output" | codex exec "Summarize this concisely" work naturally. Output is printed to the terminal directly. You can set the RUST_LOG environment variable to see more about what's going on. Use codex exec --ephemeral ... to run without persisting session rollout files to disk.

Experimenting with the Codex Sandbox

To test to see what happens when a command is run under the sandbox provided by Codex, we provide the following subcommands in Codex CLI:

# macOS
codex sandbox macos [--log-denials] [COMMAND]...

# Linux
codex sandbox linux [COMMAND]...

# Windows
codex sandbox windows [COMMAND]...

# Legacy aliases
codex debug seatbelt [--log-denials] [COMMAND]...
codex debug landlock [COMMAND]...

To try a writable legacy sandbox mode with these commands, pass an explicit config override such as -c 'sandbox_mode="workspace-write"'.

Selecting a sandbox policy via --sandbox

The Rust CLI exposes a dedicated --sandbox (-s) flag that lets you pick the sandbox policy without having to reach for the generic -c/--config option:

# Run Codex with the default, read-only sandbox
codex --sandbox read-only

# Allow the agent to write within the current workspace while still blocking network access
codex --sandbox workspace-write

# Danger! Disable sandboxing entirely (only do this if you are already running in a container or other isolated env)
codex --sandbox danger-full-access

The same setting can be persisted in ~/.codex/config.toml via the top-level sandbox_mode = "MODE" key, e.g. sandbox_mode = "workspace-write". In workspace-write, Codex also includes ~/.codex/memories in its writable roots so memory maintenance does not require an extra approval.

Code Organization

This folder is the root of a Cargo workspace. It contains quite a bit of experimental code, but here are the key crates:

  • core/ contains the business logic for Codex. Ultimately, we hope this becomes a library crate that is generally useful for building other Rust/native applications that use Codex.
  • exec/ "headless" CLI for use in automation.
  • tui/ CLI that launches a fullscreen TUI built with Ratatui.
  • cli/ CLI multitool that provides the aforementioned CLIs via subcommands.

If you want to contribute or inspect behavior in detail, start by reading the module-level README.md files under each crate and run the project workspace from the top-level codex-rs directory so shared config, features, and build scripts stay aligned.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.