Commands
Commands Reference
Section titled “Commands Reference”Codive provides both natural language interaction and slash commands for quick actions.
Slash Commands
Section titled “Slash Commands”Use slash commands for common operations:
| Command | Description |
|---|---|
/help | Show available commands |
/clear | Clear conversation history |
/context | Show current context files |
/config | Show effective configuration |
/undo | Undo last file change |
/diff | Show pending changes |
/accept | Accept all pending changes |
/reject | Reject all pending changes |
/exit | Exit 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
Section titled “/clear”Clear the conversation history and start fresh:
> /clear
Conversation cleared. Starting fresh.
>/context
Section titled “/context”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 linesContext size: 12,847 tokensAdd files to context:
> /context add src/utils/*.rs
Added 3 files to context: src/utils/helpers.rs src/utils/config.rs src/utils/logging.rsRemove files from context:
> /context remove README.md
Removed README.md from context./config
Section titled “/config”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.tomlUndo the last file change:
> /undo
Undoing last change: Reverted src/lib.rs to previous state
Files affected: 1Show 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
Section titled “/accept”Accept all pending changes:
> /accept
Accepting all changes: ✓ src/main.rs ✓ src/lib.rs
2 files written./reject
Section titled “/reject”Reject all pending changes:
> /reject
Rejecting all changes: ✗ src/main.rs (discarded) ✗ src/lib.rs (discarded)
Changes discarded.CLI Commands
Section titled “CLI Commands”These commands are run from your shell, not inside Codive.
codive
Section titled “codive”Start an interactive session:
codiveRun a one-shot command:
codive "add error handling to the parse function"codive config
Section titled “codive config”Configuration management:
# Validate configurationcodive config validate
# Show effective configurationcodive config show
# Edit configuration in $EDITORcodive config edit
# Reset to defaultscodive config resetcodive init
Section titled “codive init”Initialize Codive in a project:
# Create codive.toml with sensible defaultscodive init
# Initialize with specific templatecodive init --template rustcodive init --template nodecodive init --template pythoncodive serve
Section titled “codive serve”Start Codive as an HTTP server:
# Start on default port 3000codive serve
# Custom portcodive serve --port 8080
# Bind to all interfacescodive serve --host 0.0.0.0codive connect
Section titled “codive connect”Connect to a remote Codive server:
# Connect to localhostcodive connect :3000
# Connect to remote servercodive connect server.example.com:3000codive tools
Section titled “codive tools”Manage tools:
# List available toolscodive tools list
# Show tool detailscodive tools info bash
# Disable a toolcodive tools disable bash
# Enable a toolcodive tools enable bashcodive version
Section titled “codive version”Show version information:
codive version
codive 0.1.0Built with Rust 1.75Commit: abc1234Environment Commands
Section titled “Environment Commands”Commands that interact with your environment:
Running Shell Commands
Section titled “Running Shell Commands”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 teststest result: ok. 12 passed; 0 failedGit Operations
Section titled “Git Operations”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]Keyboard Shortcuts
Section titled “Keyboard Shortcuts”Quick actions in interactive mode:
| Shortcut | Action |
|---|---|
Ctrl+C | Cancel current operation |
Ctrl+D | Exit Codive (same as /exit) |
Ctrl+L | Clear screen |
Ctrl+Z | Undo (same as /undo) |
Up/Down | Navigate command history |
Tab | Autocomplete paths/commands |
Ctrl+R | Search command history |
Next Steps
Section titled “Next Steps”- Configure custom settings
- Add custom tools
- Set up IDE integration