Skip to content

Commands

Codive provides both natural language interaction and slash commands for quick actions.

Use slash commands for common operations:

CommandDescription
/helpShow available commands
/clearClear conversation history
/contextShow current context files
/configShow effective configuration
/undoUndo last file change
/diffShow pending changes
/acceptAccept all pending changes
/rejectReject all pending changes
/exitExit Codive

Display help information:

> /help
Available commands:
/help - Show this help message
/clear - Clear conversation history
/context - Show files in current context
/config - Show configuration
/undo - Undo last change
/diff - Show pending changes
/accept - Accept pending changes
/reject - Reject pending changes
/exit - Exit Codive
Type naturally to interact with the AI agent.

Clear the conversation history and start fresh:

> /clear
Conversation cleared. Starting fresh.
>

View files currently in the AI’s context:

> /context
Files in context:
src/main.rs (245 lines)
src/lib.rs (128 lines)
Cargo.toml (32 lines)
README.md (67 lines)
Total: 4 files, 472 lines
Context size: 12,847 tokens

Add files to context:

> /context add src/utils/*.rs
Added 3 files to context:
src/utils/helpers.rs
src/utils/config.rs
src/utils/logging.rs

Remove files from context:

> /context remove README.md
Removed README.md from context.

Show the current configuration:

> /config
Effective configuration:
Provider: anthropic
Model: claude-sonnet-4-20250514
Max iterations: 50
Confirm writes: true
Confirm commands: true
Tools enabled:
read, write, bash, glob, grep
Config sources:
~/.config/codive/config.toml
./codive.toml

Undo the last file change:

> /undo
Undoing last change:
Reverted src/lib.rs to previous state
Files affected: 1

Show all pending changes:

> /diff
Pending changes:
--- a/src/main.rs
+++ b/src/main.rs
@@ -10,6 +10,8 @@
fn main() {
+ init_logging();
+
let config = Config::load()?;
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,5 @@
+pub mod logging;
+
pub mod config;
2 files changed, 4 insertions

Accept all pending changes:

> /accept
Accepting all changes:
✓ src/main.rs
✓ src/lib.rs
2 files written.

Reject all pending changes:

> /reject
Rejecting all changes:
✗ src/main.rs (discarded)
✗ src/lib.rs (discarded)
Changes discarded.

These commands are run from your shell, not inside Codive.

Start an interactive session:

Terminal window
codive

Run a one-shot command:

Terminal window
codive "add error handling to the parse function"

Configuration management:

Terminal window
# Validate configuration
codive config validate
# Show effective configuration
codive config show
# Edit configuration in $EDITOR
codive config edit
# Reset to defaults
codive config reset

Initialize Codive in a project:

Terminal window
# Create codive.toml with sensible defaults
codive init
# Initialize with specific template
codive init --template rust
codive init --template node
codive init --template python

Start Codive as an HTTP server:

Terminal window
# Start on default port 3000
codive serve
# Custom port
codive serve --port 8080
# Bind to all interfaces
codive serve --host 0.0.0.0

Connect to a remote Codive server:

Terminal window
# Connect to localhost
codive connect :3000
# Connect to remote server
codive connect server.example.com:3000

Manage tools:

Terminal window
# List available tools
codive tools list
# Show tool details
codive tools info bash
# Disable a tool
codive tools disable bash
# Enable a tool
codive tools enable bash

Show version information:

Terminal window
codive version
codive 0.1.0
Built with Rust 1.75
Commit: abc1234

Commands that interact with your environment:

Codive can run shell commands when you ask:

> run cargo test
Running: cargo test
Compiling myproject v0.1.0
Finished test target
Running unittests
running 12 tests
test result: ok. 12 passed; 0 failed

Codive understands git:

> show me what changed since last commit
Changes since HEAD:
Modified: src/main.rs
Added: src/utils/logging.rs
Summary: 2 files changed, 45 insertions(+), 3 deletions(-)
> create a commit with these changes
Creating commit:
Message: "Add logging utility module"
Files:
M src/main.rs
A src/utils/logging.rs
Proceed? [y/n]

Quick actions in interactive mode:

ShortcutAction
Ctrl+CCancel current operation
Ctrl+DExit Codive (same as /exit)
Ctrl+LClear screen
Ctrl+ZUndo (same as /undo)
Up/DownNavigate command history
TabAutocomplete paths/commands
Ctrl+RSearch command history