Scripts2026年4月1日·1 分钟阅读

Plandex — Terminal AI for Large Codebases

Plandex is a terminal-based AI dev tool for large, multi-file coding tasks. 15.2K+ stars. 2M token context, sandbox diffs, auto-debug. MIT.

Agent 就绪

这个资产会安全暂存

这个资产会先安全暂存。复制的指令会要求 Agent 读取暂存文件,并在激活脚本、MCP 配置或全局配置前先确认。

Stage only · 17/100策略:需暂存
Agent 入口
任意 MCP/CLI Agent
类型
Script
安装
Stage only
信任
信任等级:Established
入口
plandex.md
安全暂存命令
npx -y tokrepo@latest install a5444c0c-db82-473d-95f1-391d0a3daf3d --target codex

先暂存文件;激活前需要读取暂存 README 和安装计划。

TL;DR
Plandex is a terminal AI tool for large codebases with 2M token context, sandbox diffs, and automatic debugging.
§01

What it is

Plandex is a terminal-based AI development tool designed for large, multi-file coding tasks. It supports a 2M token context window, applies changes as sandbox diffs you can review before committing, and includes automatic debugging that retries on errors. The project has over 15.2K GitHub stars and is MIT licensed.

Plandex targets developers working on complex codebases who need an AI assistant that understands the full project context rather than a single file at a time.

§02

How it saves time or tokens

Plandex accumulates context from your entire project into a 2M token window, so it understands cross-file dependencies. Changes are sandboxed as diffs, eliminating the risk of AI-generated code breaking your codebase. The auto-debug loop catches and fixes compilation errors without manual intervention.

§03

How to use

  1. Install Plandex:
curl -sL https://plandex.ai/install.sh | bash
  1. Start a new project:
cd my-project
plandex new
  1. Give it a task:
plandex tell 'Add user authentication with JWT tokens'
  1. Review the sandbox diffs and apply them.
§04

Example

# Install Plandex
curl -sL https://plandex.ai/install.sh | bash

# Initialize in your project
cd my-project
plandex new

# Describe a multi-file task
plandex tell 'Add user authentication with JWT tokens'

# Review pending changes
plandex diff

# Apply changes
plandex apply
§05

Related on TokRepo

Key considerations

When evaluating Plandex for your workflow, consider the following factors. First, assess whether your team has the technical prerequisites to adopt this tool effectively. Second, evaluate the maintenance burden against the productivity gains. Third, check community activity and documentation quality to ensure long-term viability. Integration with your existing toolchain matters more than feature count alone. Start with a small pilot project before rolling out across the organization. Monitor resource usage during the initial adoption phase to identify bottlenecks early. Document your configuration decisions so team members can onboard independently.

§06

Common pitfalls

  • Very large monorepos may take time to index into the 2M token context; start with focused subdirectories if possible.
  • Sandbox diffs should always be reviewed before applying; auto-generated code can introduce subtle bugs.
  • The install script requires curl and bash; Windows users need WSL or an equivalent environment.

常见问题

How large a codebase can Plandex handle?+

Plandex supports a 2M token context window, which accommodates most project sizes. For extremely large monorepos, you can scope the context to specific directories to keep within limits.

What is a sandbox diff?+

Plandex applies AI-generated changes as diffs in a sandbox. You review the proposed changes with 'plandex diff' before committing them to your actual files with 'plandex apply'. This prevents unintended modifications.

Does Plandex support multiple LLM providers?+

Plandex works with OpenAI models by default. Check the documentation for support of additional providers and local models.

How does auto-debug work?+

When Plandex applies changes that cause compilation or test errors, it automatically reads the error output, generates a fix, and retries. This loop continues until the code compiles or a retry limit is reached.

Is Plandex free?+

Plandex is MIT licensed and free to use. You provide your own LLM API key. There is also a hosted version with a managed backend.

引用来源 (3)
🙏

来源与感谢

plandex-ai/plandex — 15,200+ GitHub stars

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产