CLI Reference
agntk "prompt" Run a one-shot taskagntk -n <name> "prompt" Named agent (persistent memory)agntk -n <name> -i Interactive REPLagntk list List all agentsagntk info <name> Show agent detailsagntk delete <name> Delete an agent's stateagntk stop <name> Stop a running agentagntk clean Interactively remove stale agentsagntk completions <shell> Output shell completion scriptagntk install <file.md> Install a capability into the agent's harnessagntk uninstall <path> Remove an installed capabilityagntk evaluate <file.md> Validate a capability fileOptions
Section titled “Options”| Flag | Short | Description |
|---|---|---|
--name | -n | Agent name (enables persistent memory) |
--instructions | Custom system prompt | |
--interactive | -i | Interactive REPL mode |
--workspace | Workspace root (default: current directory) | |
--max-steps | Max tool-loop steps (default: 25) | |
--verbose | Show full tool args and output | |
--quiet | -q | Text output only (no follow-up, for piping) |
--version | -v | Show version |
--help | -h | Show help |
Agent Management
Section titled “Agent Management”| Command | Description |
|---|---|
list | Show all agents with status (running/idle) and last active time |
info <name> | Agent details — memory files, workspace, sub-agents, token usage, disk size |
delete <name> | Delete an agent’s state directory (with confirmation) |
stop <name> | Send SIGTERM to a running agent; SIGKILL if it doesn’t exit |
clean | Interactive picker to bulk-delete idle agents |
completions | Output shell completion script (bash, zsh, fish) |
install | Validate and install a capability (rule, instinct, skill) into the harness |
uninstall | Remove an installed capability file |
evaluate | Validate a capability file without installing it |
Interactive REPL
Section titled “Interactive REPL”In REPL mode (-i or follow-up after one-shot), press TAB after / for autocomplete:
| Command | Description |
|---|---|
/help | Show available commands |
/tools | List available tools |
/agents | List all agents |
/model | Show current model info |
/memory | Show agent memory files |
/status | Show session stats |
/verbose | Toggle verbose output |
/clear | Clear conversation history |
/exit | Quit the REPL |
Shell Completion
Section titled “Shell Completion”Tab completion for commands, flags, and agent names in your shell:
# Install globally for shell completionnpm i -g agntk
# Completions auto-install on first run (bash/zsh/fish)# Or generate manually:agntk completions zshWhen installed globally, agntk auto-detects your shell, writes the completion script to ~/.agntk/completions/, and patches your rc file. No manual setup needed.
Examples
Section titled “Examples”# Fix bugsnpx agntk -n coder "the login page crashes when the session expires — find and fix it"
# DevOpsnpx agntk -n ops --instructions "you manage k8s deploys" "roll back staging"
# Researchnpx agntk "compare React Server Components vs Astro islands — pros, cons, benchmarks"
# Code reviewnpx agntk "review src/ for security issues and suggest fixes"
# Pipe anythinggit diff | npx agntk "write a commit message for this diff"cat package.json | npx agntk "are any of these dependencies outdated?"
# Agent managementnpx agntk info codernpx agntk delete old-agentnpx agntk clean