Skip to content

AI Agents

This dotfiles repository configures four AI coding agents. This page covers the fastest ways to interact with each one: essential keybindings, common commands, and where their configuration lives.

Configuration Paths

ToolConfiguration
OpenCodedotfiles/.config/opencode/opencode.jsonc, dotfiles/.config/opencode/tui.json
Claude Codedotfiles/.config/claude/keybindings.json, dotfiles/.config/claude/settings.json
Codexdotfiles/.config/codex/config.toml
Kimi Codedotfiles/.config/kimi-code/config.toml, dotfiles/.config/kimi-code/tui.toml

OpenCode

OpenCode is configured to start in Plan mode by default. The TUI uses a leader-key style menu.

Global

ActionShortcut
Leader keyCtrl + X
App exitCtrl + C, Ctrl + D, or Ctrl + X, then Q
InterruptEsc

Sessions

ActionShortcut
New sessionCtrl + X, then N
List sessionsCtrl + X, then L
Timeline viewCtrl + X, then G
Export sessionCtrl + X, then X
Compact sessionCtrl + X, then C

Messages

ActionShortcut
Page up/downPage Up / Page Down or Ctrl + Alt + B / Ctrl + Alt + F
Half page up/downCtrl + Alt + U / Ctrl + Alt + D
First / lastCtrl + G / Home or Ctrl + Alt + G / End
Copy messageCtrl + X, then Y
Undo / redoCtrl + X, then U / Ctrl + X, then R
Toggle concealCtrl + X, then H (uppercase)

Input

ActionShortcut
SubmitEnter
New lineShift + Enter, Ctrl + Enter, Alt + Enter, Ctrl + J
History previous/nextUp / Down
Command paletteCtrl + P
Model listCtrl + X, then M
Cycle recent modelF2 / Shift + F2
Agent listCtrl + X, then A
Cycle agentTab / Shift + Tab

Editor / Text

ActionShortcut
Open external editorCtrl + X, then E
Word forward/backwardAlt + F / Alt + B
Delete word forwardAlt + D
Delete word backwardCtrl + W
Undo / redoCtrl + - / Ctrl + .

Tip: The full OpenCode keymap is defined in dotfiles/.config/opencode/tui.json.

Claude Code

Claude Code is configured with a strict permission model and minimal custom keybindings.

Keybindings

ActionShortcut
External editorCtrl + E

Common Commands

Type these in the Claude Code prompt:

CommandPurpose
/helpShow help
/compactCompact conversation context
/costShow token / cost usage
/exitExit Claude Code

Session Controls

ActionShortcut
Cancel generationCtrl + C
Accept suggestionTab

Codex

Codex is configured for workspace-level access with explicit approval. Its keybindings come from the upstream Codex TUI.

CLI

CommandPurpose
codexStart Codex in the current dir
codex --model gpt-5.5Use a specific model
codex --approval-policySet approval policy

Common TUI Shortcuts

ActionShortcut
Cancel generationCtrl + C
ExitCtrl + D

Common Commands

CommandPurpose
/helpShow available commands
/clearClear the conversation
/compactCompact context
/modelChange model

Kimi Code

Kimi Code is configured to run in plan mode by default with manual permissions.

CLI

CommandPurpose
kimi-codeStart Kimi Code in the current dir
kimi-code /pathOpen a specific project

TUI

Kimi Code uses the upstream TUI keybindings. See the official Kimi Code documentation for the latest list.

ActionShortcut
Cancel generationCtrl + C
ExitCtrl + D

Permission Summary

All four agents follow a default-deny pattern for sensitive files and destructive commands:

CategoryDefaultExamples
ReadAllowSource files, configs, public docs
SecretsDeny.env, *.pem, SSH keys, kubeconfig
WriteAskFile edits, new files, refactors
ExecuteAskBuild scripts, test commands, shell tasks
NetworkAskWeb fetch, package installs
DestructiveDenyrm -rf, git push, kubectl delete

For exact rules, inspect the permissions block in each agent's configuration file.

Platform Documentation