Skip to content

CLI Reference

agntk "prompt" Run a one-shot task
agntk -n <name> "prompt" Named agent (persistent memory)
agntk -n <name> -i Interactive REPL
agntk list List all agents
agntk info <name> Show agent details
agntk delete <name> Delete an agent's state
agntk stop <name> Stop a running agent
agntk clean Interactively remove stale agents
agntk completions <shell> Output shell completion script
agntk install <file.md> Install a capability into the agent's harness
agntk uninstall <path> Remove an installed capability
agntk evaluate <file.md> Validate a capability file
FlagShortDescription
--name-nAgent name (enables persistent memory)
--instructionsCustom system prompt
--interactive-iInteractive REPL mode
--workspaceWorkspace root (default: current directory)
--max-stepsMax tool-loop steps (default: 25)
--verboseShow full tool args and output
--quiet-qText output only (no follow-up, for piping)
--version-vShow version
--help-hShow help
CommandDescription
listShow 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
cleanInteractive picker to bulk-delete idle agents
completionsOutput shell completion script (bash, zsh, fish)
installValidate and install a capability (rule, instinct, skill) into the harness
uninstallRemove an installed capability file
evaluateValidate a capability file without installing it

In REPL mode (-i or follow-up after one-shot), press TAB after / for autocomplete:

CommandDescription
/helpShow available commands
/toolsList available tools
/agentsList all agents
/modelShow current model info
/memoryShow agent memory files
/statusShow session stats
/verboseToggle verbose output
/clearClear conversation history
/exitQuit the REPL

Tab completion for commands, flags, and agent names in your shell:

Terminal window
# Install globally for shell completion
npm i -g agntk
# Completions auto-install on first run (bash/zsh/fish)
# Or generate manually:
agntk completions zsh

When installed globally, agntk auto-detects your shell, writes the completion script to ~/.agntk/completions/, and patches your rc file. No manual setup needed.

Terminal window
# Fix bugs
npx agntk -n coder "the login page crashes when the session expires — find and fix it"
# DevOps
npx agntk -n ops --instructions "you manage k8s deploys" "roll back staging"
# Research
npx agntk "compare React Server Components vs Astro islands — pros, cons, benchmarks"
# Code review
npx agntk "review src/ for security issues and suggest fixes"
# Pipe anything
git diff | npx agntk "write a commit message for this diff"
cat package.json | npx agntk "are any of these dependencies outdated?"
# Agent management
npx agntk info coder
npx agntk delete old-agent
npx agntk clean