Linux command
plandex 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start the interactive REPL
plandex
Describe a task or ask a question
plandex tell "[add a cancel button to the left of the submit button]"
Load files into context
plandex load [path/to/file.py]
Apply pending changes to project files
plandex apply
Apply changes and commit to git
plandex tell -a -c "[fix the authentication bug]"
View plan history
plandex log
Rewind to a previous step
plandex rewind [commit_hash]
Use the shorthand alias
pdx tell "[your prompt]"
说明
Plandex is an open-source AI coding agent designed for large projects and real-world tasks. It can plan and execute complex coding tasks that span many steps and touch dozens of files, handling up to 2 million tokens of context directly. The tool uses a cumulative diff review sandbox that keeps AI-generated changes separate from your project files until you're ready to apply them. This allows easy rollback and debugging. Plandex supports multiple AI providers including Anthropic, OpenAI, Google, and open-source models. Key features include automated debugging of terminal commands, fast project map generation with tree-sitter (30+ languages), and configurable autonomy levels from full automation to step-by-step review. The REPL mode offers fuzzy auto-complete for commands and file loading.
参数
- tell, t
- Describe a task, ask a question, or chat
- load, l
- Load files, directories, URLs, notes, or piped data into context
- apply, ap
- Apply plan changes to project files
- rewind
- Go back to a previous step in the plan history
- log
- View the plan's history of changes
FAQ
What is the plandex command used for?
Plandex is an open-source AI coding agent designed for large projects and real-world tasks. It can plan and execute complex coding tasks that span many steps and touch dozens of files, handling up to 2 million tokens of context directly. The tool uses a cumulative diff review sandbox that keeps AI-generated changes separate from your project files until you're ready to apply them. This allows easy rollback and debugging. Plandex supports multiple AI providers including Anthropic, OpenAI, Google, and open-source models. Key features include automated debugging of terminal commands, fast project map generation with tree-sitter (30+ languages), and configurable autonomy levels from full automation to step-by-step review. The REPL mode offers fuzzy auto-complete for commands and file loading.
How do I run a basic plandex example?
Run `plandex` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does tell, t do in plandex?
Describe a task, ask a question, or chat