Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
readme/markdown guide updates
Dane Schneider88ad3a57949b
diff --git a/DEVELOPMENT.md b/DEVELOPMENT.mdindex 660417db..0c7ef2b6 100644--- a/DEVELOPMENT.md+++ b/DEVELOPMENT.md@@ -1,11 +1,23 @@-## Development+# Plandex development ๐ ๏ธTo set up a development environment, first install dependencies:- Go 1.21.3 - [install here](https://go.dev/doc/install)- [reflex](https://github.com/cespare/reflex) 0.3.1 - for watching files and rebuilding in development. Install with `go install github.com/cespare/[email protected]`+- PostreSQL 14 - https://www.postgresql.org/download/-Then from the root directory, run:+Make sure the PostgreSQL server is running and create a database called `plandex`.++Then make sure the following environment variables are set:++```bash+export DATABASE_URL=postgres://user:password@host:5432/plandex # replace with your own database URL+export GOENV=development+```++Note: [EnvKey](https://www.envkey.com/) is a good way to manage environment variables in development.++Now from the root directory of this repo, run:```bash./dev.shdiff --git a/HOSTING.md b/HOSTING.mdnew file mode 100644index 00000000..776cb238--- /dev/null+++ b/HOSTING.md@@ -0,0 +1,48 @@+# Plandex self-hosting ๐++## Anywhere++The Plandex server runs from a Dockerfile at `app/Dockerfile.server`. It requires a PostgreSQL database (ideally v14) and these environment variables:++```bash+export DATABASE_URL=postgres://user:password@host:5432/plandex # replace with your own database URL+export GOENV=production+```++The server listens on port 8088 by default.++Authentication emails are sent through AWS SES, so you'll need an AWS account with SES enabled. You'll be able to sub in SMTP credentials in the future (PRs welcome).++## AWS++Run `./infra/deploy.sh` to deploy a production-ready Cloudformation stack to AWS with built-in autoscaling, clustering, network security, secrets management, backups, and alerts. This is the same infrastructure Plandex Cloud runs on.++Fair warning: this will cost signficantly more than paying for Plandex Cloud (once billing is enabled) or self-hosting with a lighter setup.++It requires an AWS account in ~/.aws/credentials, and these environment variables:++```bash+export AWS_PROFILE=your-aws-profile+export AWS_REGION=your-aws-region+export NOTIFY_EMAIL=your-email # AWS cloudwatch alerts and notifications+export NOTIFY_SMS=country-code-plus-full-number # e.g. +14155552671 | for urgent AWS alerts+export CERTIFICATE_ARN=your-aws-cert-manager-arn # for HTTPS -- must be a valid certificate in AWS Certificate Manager in the same region++./infra/deploy.sh+```++To deploy a new build when only the app code has changed (not the infrastructure), run `./infra/deploy.sh --image-only`++If the infrastructure _has_ changed, run `./infra/deploy.sh` again.++## SES sandbox++Note that in order to send authentication emails with SES, you'll either need to make a request to AWS get out of the SES sandbox, verify an email domain, or verify email addresses individually. [Read more here.](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html)++## Create a new account++Once the server is running, you can create a new account by running `plandex sign-in` on your local machine.++```bash+plandex sign-in # follow the prompts to create a new account on your self-hosted server+```diff --git a/PRIVACY.md b/PRIVACY.mdnew file mode 100644index 00000000..04d73f66--- /dev/null+++ b/PRIVACY.md@@ -0,0 +1,22 @@+# Plandex privacy and data retention ๐ก๏ธ++## Plandex Cloud++Data you send to Plandex Cloud is retained in order to debug and improve Plandex. In the future, this data may also be used to train and fine-tune models to improve performance.++That said, if you delete a plan or delete your Plandex Cloud account, all associated data will be removed from the database. It will still be included in database backups for up to 7 days, then it will no longer exist anywhere on Plandex Cloud.++Data sent to Plandex Cloud may be shared with the following third parties:++- AWS for hosting and database services. Data is encrypted in transit and at rest.+- In the future, your name and email may be shared with with a third party transactional email service and/or email marketing service in order to send you information about your account or updates on Plandex. You will be able to opt out of these emails at any time.+- When billing and payments are implemented, your name and email may be shared with our payment processor Stripe.+- In the future, your name, email, and metadata on the actions you take with Plandex may be shared with a third party analytics service in order to track usage and make improvements.++Apart from the above list, no other data will be shared with any other third party. The list will be updated when a specific third party is chosen for any of the above services, or if any new third party services are introduced.++Data sent to a model provider like OpenAI is subject to the model provider's privacy and data retention policies.++## Self-hosting++If you [self-host](./HOSTING.md) Plandex, no data will be sent to Plandex Cloud or to any third party, except for the data you send to model providers like OpenAI.diff --git a/README.md b/README.mdindex 81fff0c5..5138c86a 100644--- a/README.md+++ b/README.md@@ -1,137 +1,109 @@-# Plandex+## ๐ Build large features and entire projects with AI.-๐๏ธ Build large features and entire projects with AI.--๐ค Plandex is an open source, terminal-based AI programming engine with long-running agents, automatic file updates, versioning, branches, and diff review.+๐ฎ Plandex is an open source, terminal-based AI programming engine with long-running agents, automatic file updates, versioning, branches, and diff review.๐ It enables a tight feedback loop between programmer and AI.-๐ฎ It helps you churn through your backlog, learn new technologies, get unstuck, and spend less time on tedious tasks.--๐ง It relies on the OpenAI API and requires an OPENAI_API_KEY environment variable to be set. Support for Open Source models, Google Gemini, and Anthropic Claude is coming soon.--## Install ๐ฅ--curl -s https://plandex.ai/install.sh | bash+๐ช It helps you churn through your backlog, work with unfamiliar technologies, get unstuck, and spend less time on tedious tasks.-## Why Plandex? ๐ค+๐ง Plandex relies on the OpenAI API and requires an `OPENAI_API_KEY` environment variable. Support for open source models, Google Gemini, and Anthropic Claude is coming soon.-- Go beyond autocomplete to build complex functionality with AI ๐ ๏ธ-- Stop the mouse-centered, copy-pasting-back-and-forth madness of coding with ChatGPT ๐ซ๐ฑ๏ธ-- Manage context efficiently in the terminal ๐-- Ensure the AI model is always working with the latest version of your files โก๏ธ-- Experiment, revise, and review in a protected sandbox before applying changes ๐ง-- Rewind and retry as needed with version control โช-- Explore multiple approaches with branches ๐ฑ-- Work on multiple tasks in parallel ๐๏ธ ๐๏ธ ๐๏ธ-- Try different models and model settings ๐ง ๐ก๏ธ+โ Plandex supports Mac, Linux, and Windows (Windows supported via [Git bash](https://gitforwindows.org) or [WSL](https://learn.microsoft.com/en-us/windows/wsl/about)). It runs from a single binary with no dependencies.-## Get started ๐--```-plandex new-```+## Install ๐ฅ-To type a bit less, you can use the `pdx` alias instead of `plandex` if you like:+Run the quick install script:-```-pdx new+```bash+curl -sL https://plandex.ai/install.sh | bash```-After any plandex command is run, additional commands that may make sense to run next will be suggested.+Or grab the appropriate binary for your platform from the latest [release](https://github.com/plandex-ai/plandex/releases) and put it somewhere in your `PATH`.-To see all available commands, run:+Or build from source with Go:-```-plandex help-```--For help on any command, run:--```-plandex [command] --help+```bash+git clone plandex-ai/plandex.git+cd plandex/app/cli+go build -o plandex+cp plandex /usr/local/bin # adapt as needed for your system```-## Plandex Cloud โ๏ธ--Plandex Cloud is the easiest and most reliable way to use Plandex. You'll be prompted to start an anonymous trial (no email required) when you create your first plan with `plandex new`. Anonymous trial accounts are limited to 10 plans and 10 replies per plan. You can upgrade to a full account at any time with a name and email.+## Why Plandex? ๐ค-Plandex Cloud accounts are free for now. In the future, it will have a monthly fee comparable to other popular AI co-pilot tools.+- ๐๏ธ Go beyond autocomplete to build complex functionality with AI.+- ๐ซ Stop the mouse-centered, copy-pasting madness of coding with ChatGPT.+- ๐ Manage context efficiently in the terminal.+- โก๏ธ Ensure AI models always have the latest versions of files in context.+- ๐ช Retain tight control over what's in context and how many tokens you're using.+- ๐ง Experiment, revise, and review in a protected sandbox before applying changes.+- โช Rewind and retry as needed with baked-in version control.+- ๐ฑ Explore multiple approaches with branches.+- ๐๏ธ Run tasks in the background or work on multiple tasks in parallel.+- ๐๏ธ Try different models and model settings and compare results.-## Self-hosting ๐+## Get started ๐-### Anywhere+If you don't have an OpenAI account, first [sign up here.](https://platform.openai.com/signup)-The Plandex server runs from a Dockerfile at `app/Dockerfile.server`. It requires a PostgreSQL database and these environment variables:+Then [generate an API key here.](https://platform.openai.com/account/api-keys)```bash-export DATABASE_URL=postgres://user:password@host:5432/plandex # replace with your own database URL-export GOENV=production+cd your-project+export OPENAI_API_KEY=...+plandex new```-Authentication emails are sent through AWS SES, so you'll need an AWS account with SES enabled. You'll be able to sub in SMTP credentials in the future (PRs welcome).+After any plandex command is run, commands that could make sense to run next will be suggested. You can learn to use Plandex quickly by jumping in and following these suggestions.-### AWS+## Usage ๐ ๏ธ-Run `./infra/deploy.sh` to deploy a production-ready Cloudformation stack to AWS.+[Here's a quick overview of the commands and functionality.](./USAGE.md)-It requires an AWS account in ~/.aws/credentials, and these environment variables:+## Help โน๏ธ-```bash-AWS_PROFILE=your-aws-profile-AWS_REGION=your-aws-region-NOTIFY_EMAIL=your-email # AWS cloudwatch alerts and notifications-NOTIFY_SMS=country-code-plus-full-number # e.g. +14155552671 | for urgent AWS alerts-CERTIFICATE_ARN=your-aws-cert-manager-arn # for HTTPS -- must be a valid certificate in AWS Certificate Manager in the same region-```+To see all available commands:-### Locally+```+plandex help+```-To run the Plandex server locally, run it in development mode with `./dev.sh`. You'll need a PostgreSQL database running locally as well as these environment variables:+For help on any command:-```bash-export DATABASE_URL=postgres://user:password@localhost:5432/plandex # replace with your own local database URL-export GOENV=development+```+plandex [command] --help```-Authentication codes will be copied to your clipboard with a system notification instead of being sent by email.--## Security ๐+## License ๐-Plandex follows best practices for network and data security. As I'm also the founder of a devops-security company ([EnvKey](https://envkey.com)), this is an area I have experience in and take extremely seriously. Data is encrypted in transit and at rest. The database runs within a private, hardened network.+Plandex is open source under the MIT License.-### Ignore sensitive files+## Plandex Cloud โ๏ธ-Plandex respects .gitignore and won't load any files that you're ignoring. You can also add a .plandexignore file with ignore patterns to any directory.+Plandex Cloud is the easiest and most reliable way to use Plandex. You'll be prompted to start an anonymous trial (no email required) when you create your first plan with `plandex new`. Trial accounts are limited to 10 plans and 10 AI model replies per plan. You can upgrade to a full account with your name and email.-### API key security+Plandex Cloud accounts are free for now. In the future, there will be a monthly fee comparable to other popular AI tools.-Plandex is a bring-your-own-API-key tool. On the server, API keys are only stored ephemerally in RAM while they are in active use. They are never written to disk, logged, or stored in a database.+## Self-hosting ๐-It's up to you to manage your API keys securely. Try to avoid storing them in multiple places, exposing them to third party services, or sending them around in plain text. If you'd like some help, please do check out the aforementioned [EnvKey](https://envkey.com). It's open source, end-to-end encrypted, easy to use, and free for up to 3 users. To set your `OPENAI_API_KEY` with EnvKey, you'd add it to an app in the EnvKey UI or CLI, then run `eval $(envkey-source)` in your terminal.+[Read about self-hosting Plandex here.](./HOSTING.md)-### Third party services+## Plandex security ๐-Plandex Cloud relies on AWS for all database and hosting services, Github for code storage, and the OpenAI API for AI models. No other third party services are used.+Plandex Cloud follows best practices for network and data security. And whether cloud or self-hosted, Plandex protects model provider API keys (like your OpenAI API key). [Read more here.](./SECURITY.md)## Privacy and data retention ๐ก๏ธ-Data you send to Plandex Cloud is retained in order to debug and improve Plandex. In the future, this data may also be used to train and fine-tune models to improve performance.--That said, if you delete a plan or delete your account, all associated data will be removed from the database. It will still be included in database backups for up to 7 days, then it will no longer exist anywhere on our servers.--If you self-host Plandex, no data will be sent to Plandex Cloud for any reason.--Data sent to the OpenAI API is subject to OpenAI's privacy policy.+[Read about Plandex Cloud's privacy and data retention policies here.](./PRIVACY.md)## Roadmap ๐บ๏ธ-- Support for Open Source models, Google Gemini, and Anthropic Claude in addition to OpenAI โจ-- Plan sharing and team collaboration ๐ค-- GPT4-Vision support; add images and screenshots to context ๐ผ๏ธ-- VSCode extension ๐ป-- Github integration ๐-- Web dashboard and GUI ๐+- ๐ง Support for open source models, Google Gemini, and Anthropic Claude in addition to OpenAI+- ๐ค Plan sharing and team collaboration+- ๐ผ๏ธ Support for GPT4-Vision and other multi-modal modelsโadd images and screenshots to context+- ๐ฅ๏ธ VSCode extension+- ๐ Github integration+- ๐ Web dashboard and GUIThis list will grow and be prioritized based on your feedback.@@ -139,17 +111,19 @@ This list will grow and be prioritized based on your feedback.Speaking of feedback, feel free to give yours, ask questions, report a bug, or just hang out:-- Discord-- Discussions-- Issues+- [Discord](https://discord.com/channels/1214825831973785600/1214825831973785603)+- [Discussions](https://github.com/plandex-ai/plandex/discussions)+- [Issues](https://github.com/plandex-ai/plandex/issues)## Contributors ๐ฅContributors are welcomed, celebrated, and high fived a lot ๐-Please star โญ, fork โ, explore ๐, and contribute ๐ค+Please star โญ, fork โ, explore ๐, and contribute ๐ป++Work on tests, evals, prompts, and bug fixes is especially appreciated.-## Comparable tools ๐ ๏ธ+## Comparable tools โ๏ธ- [Aider](https://github.com/paul-gauthier/aider)- [Mentat](https://github.com/AbanteAI/mentat)@@ -160,21 +134,22 @@ Please star โญ, fork โ, explore ๐, and contribute ๐ค- [Cursor](https://github.com/getcursor/cursor)- [Github Copilot](https://github.com/features/copilot)- [Replit Ghostwriter](https://replit.com/ai)+- [Grimoire](https://chat.openai.com/g/g-n7Rs0IK86-grimoire)## About the developer ๐-Hi, I'm Dane. I've been building and launching software products for 17 years. I went through YCombinator in winter 2018 with my devops security company, EnvKey, which I continue to run today. I'm fascinated by LLMs and their potential to transform the practice of software development.+Hi, I'm Dane. I've been building and launching software products for 17 years. I went through YCombinator in winter 2018 with my devops security company, [EnvKey](https://envkey.com), which I continue to run today. I'm fascinated by LLMs and their potential to transform the practice of software development.-I live with my wife and 4 year old daughter on the SF peninsula. I grew up in the Finger Lakes region of upstate New York. I like reading fiction, listening to podcasts, fitness, and surfing. I started Brazilian Jiu-Jitsu recently and am pretty absorbed with that these days as well.+I live with my wife and 4 year old daughter on the SF peninsula in California. I grew up in the Finger Lakes region of upstate New York. I like reading fiction, listening to podcasts, fitness, and surfing. I started Brazilian Jiu-Jitsu recently and am pretty absorbed with that these days as well.## Possible co-founder? ๐-I'm looking for a technical co-founder or two with Golang/Devops/TypeScript experience to help me get Plandex off the ground as an open source project, a product, and a fun, WFH-friendly company. If you're interested, please reach out or jump in and start contributing.+I'm looking for a technical co-founder or two with experience in some combination of Golang|Devops|TypeScript|React|AI/ML to help me get Plandex off the ground as an open source project, a product, and a fun, WFH-friendly company. If you're interested, please reach out ([email protected]) or jump in and start contributing.## Possible employee? ๐ฉโ๐ป-While I'm not currently hiring for Plandex, I hope to in the future. If you're an experienced Golang or TypeScript engineer and are interested in working remotely on Plandex for a salary at some point with a group of smart, nice, and fun people, please reach out or jump in and start contributing.+While I'm not currently hiring for Plandex, I hope to in the future. If you're an experienced Golang or TypeScript engineer and are interested in working remotely on Plandex for a salary at some point with a group of smart, nice, and fun people, please reach out ([email protected]) or jump in and start contributing.## Possible investor? ๐ฐ-I'd love for Plandex's users and contributors to own a significant share of the cap table. Please reach out if you're an angel investor and are interested in investing.+I'd love for Plandex's users and contributors to own a significant share of the cap table. Please reach out ([email protected]) if you're an angel investor and are interested in investing.diff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 00000000..d6cf6671--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,21 @@+# Plandex security ๐++Plandex Cloud follows best practices for network and data security. As I'm also the founder of a devops-security company ([EnvKey](https://envkey.com)), this is an area I have experience in and take extremely seriously. Data is encrypted in transit and at rest. The database runs within a private, hardened network.++## Ignores sensitive files++Plandex respects `.gitignore` and won't load any files that you're ignoring. You can also add a `.plandexignore` file with ignore patterns to any directory.++## API key security++Plandex is a bring-your-own-API-key tool. On the Plandex server, whether that's Plandex Cloud or a self-hosted server, API keys are only stored ephemerally in RAM while they are in active use. They are never written to disk, logged, or stored in a database. As soon as a plan stream ends, the API key is removed from memory and no longer exists anywhere on our servers.++It's up to you to manage your API keys securely. Try to avoid storing them in multiple places, exposing them to third party services, or sending them around in plain text. If you'd like some help, please do check out the aforementioned [EnvKey](https://envkey.com). It's open source, end-to-end encrypted, easy to use, and free for up to 3 users. To set your `OPENAI_API_KEY` with EnvKey, you'd add it to an app in the EnvKey UI or CLI, then run `eval $(envkey-source)` in your terminal.++## Third party services++- Plandex Cloud relies on AWS for all database and hosting services.+- [EnvKey](https://envkey.com) for configuration and secrets management.+- Github for code storage.+- OpenAI (called on your behalf) for AI models (other models providers will be added in the future).+- See the [privacy overview](./PRIVACY.md) for more details on third parties and data retention.diff --git a/USAGE.md b/USAGE.mdnew file mode 100644index 00000000..d8c040a4--- /dev/null+++ b/USAGE.md@@ -0,0 +1,242 @@+# Using Plandex ๐ ๏ธ++## Commands and concepts ๐ช++### New plan++```bash+cd your-project+export OPENAI_API_KEY=...+plandex new+```++When you create a plan, Plandex will automatically name your plan after you give it a task, but you can also give it a name up front.++```bash+plandex new -n foo-adapters-component+```++### Loading context++After creating a plan, load any relevant files, directories, directory layouts, urls, or other data into the plan context.++```bash+plandex load component.ts action.ts reducer.ts+plandex load lib -r # loads lib and all its subdirectories+plandex load tests/**/*.ts # loads all .ts files in tests and its subdirectories+plandex load . --tree # loads the layout of the current directory and its subdirectories (file names only)+plandex load https://redux.js.org/usage/writing-tests # loads the text-only content of the url+npm test | plandex load # loads the output of `npm test`+npm load -n 'add logging statements to all the code you generate.' # load a note into context+```++### Tasks++Now give the AI a task to do.++```bash+plandex tell # with no arguments, vim or nano will open and you can type your task there+plandex tell 'build another component like this one that displays foo adapters in the table rather than bar adapters.+quote> use the same layout and styles, but update the column headers and formatting to match the new data.+quote> add the needed reducer and action as well. write tests for the new code.' # you can pass a task directly as a string (press enter for line breaks while inside the quotes)+plandex tell -f task.txt # load a task from a file+```++### Changes++Plandex will stream the response to your terminal and build up a set of changes along the way. It will continue as long as necessary and create or update as many files as needed to complete the task. You can stop it at any time if it starts going in the wrong direction or if feedback would be helpful.++You can review the changes that Plandex has built up so far in a user-friendly TUI changes viewer.++```bash+plandex changes+```++If you're happy with the changes, apply them to your files.++```bash+plandex apply+```++If you're in a git repo, Plandex will automatically add a commit with a nicely formatted message describing the changes. Any uncommitted changes that were present in your working directory beforehand will be unaffected.++### Rewind++If you want to rewind and try a different approach, you can use `log` to show a list of updates and `rewind` commands to go back in time.++```bash+plandex log # show a list of all updates to the plan, including prompts, replies, and builds+plandex rewind # go back a single step+plandex rewind 3 # go back 3 steps+plandex rewind a7c8d66 # rewind to a specific state+```++### Branches++If you want to try a different approach but also keep the current one around, you can use branches. Create a new branch before rewinding.++```bash+plandex checkout new-approach+plandex rewind 2+plandex tell 'write the tests before the components.'+plandex branches # see all branches+plandex delete-branch new-approach # delete a branch (sends you back to the main branch if you delete the current branch)+```++### Continue++If a plan has stopped and you just want to continue where you left off, you can use the `continue` command.++```+plandex continue+```++### Background tasks++If you want to run a command in the background, use the --bg flag.++```bash+plandex tell --bg 'now add another similar component for widget adapters'+```++To see plans that are currently running (or recently finished) and their current status, use the `ps` command. You can connect to a running plan's stream to check on it. Or you can stop it.++```bash+plandex ps+plandex connect+plandex stop+```++### Context management++You can see the plan's current context with the `ls` command. You can remove context with the `rm` command or clear it all with the `clear` command.++```bash+plandex ls+plandex rm component.ts # remove by name+plandex rm 2 # remove by number in the `plandex ls` list+plandex rm lib/**/*.js # remove by glob pattern+plandex clear # remove all context+```++If files in context are modified outside of Plandex, you will be prompted to update them the next time you interact with the AI. You can also update them manually with the `update` command.++```bash+plandex update+```++### Plans++When you have multiple plans, you can list them with the `plans` command, switch between them with the `cd` command, see the current plan with the `current` command, and delete plans with the `delete-plan` command. Archiving of plans will be added in the future for plans that you want to keep around but aren't currently working on.++```+plandex plans+plandex cd # select from a list of plans+plandex cd some-other-plan # cd to a plan by name+plandex cd 2 # cd to a plan by number in the `plandex plans` list+plandex current+plandex delete-plan # select from a list of plans to delete+plandex delete-plan some-plan # delete a plan by name+plandex delete-plan 4 # delete a plan by number in the `plandex plans` list+```++### Conversation history++You can see the full conversation history with the `convo` command.++```bash+plandex convo+```++### Conversation summaries++Every time the AI model replies, Plandex will summarize the conversation so far in the background and store the summary in case it's needed later. When the conversation size in tokens exceeds the model's limit, Plandex will automatically replace some number of older messages with the corresponding summary. It will summarize as many messages as necessary to keep the conversation size under the limit.++### Model settings++You can see the current AI models and model settings with the `models` command and change them with the `set-model` command.++```bash+plandex models+plandex set-model # select from a list of models and settings+plandex set-model planner gpt-4 # set the main planner model to gpt-4+plandex set-model builder temperature 0.1 # set the builder model's temperature to 0.1+plandex set-model max-tokens 4000 # set the planner model overall token limit to 4000+plandex set-model max-convo-tokens 20000 # set how large the conversation can grow before Plandex starts using summaries+```++Model changes are versioned and can be rewound or applied to a branch just like any other change.++### .plandex and teams++When you run `plandex new` for the first time in any directory, Plandex will create a `.plandex` directory there for light project-level config. While the `.plandex` directory can be safely added to version control, if multiple developers are using Plandex with the same project, then for now you should add `.plandex/` to .gitignore (or the ignore file for whatever VCS you use). When orgs and teams are fully implemented (they're currently a WIP), it can be re-added to version control so that all team members can work from the same org and project.++### Directories++So far, we've assumed you're running `plandex new` to create plans in your project's root directory. While that is the most common use case, it can be useful to create plans in subdirectories of your project too. That's because context file paths in Plandex are specified relative to the directory where the plan was created. So if you're working on a plan for just one part of your project, you might want to create the plan in a subdirectory in order to shorten paths when loading context or referencing files in your prompts. This can also help with plan organization if you have a lot of plans.++When you run `plandex plans`, in addition to showing you plans in the current directory, Plandex will also show you plans in nearby parent directories or subdirectories. This helps you keep track of what plans you're working on and where they are in your project hierarchy. If you want to switch to a plan in a different directory, first `cd` into that directory, then run `plandex cd` to select the plan.++```bash+cd your-project+plandex new -n root-project-plan # cwd is your-project, current plan is root-project-plan+plandex load file.go # loads your-project/file.go+cd some-subdirectory+plandex new -n subdir-plan1+plandex load subfile.go # loads your-project/some-subdirectory/subfile.go+plandex new -n subdir-plan2 # some-subdirectory current plan is now subdir-plan2+plandex plans # shows subdir-plan1 and subdir-plan2 in current directory + root-project-plan in parent directory+cd ../ # cwd is now your-project, current plan is root-project-plan+plandex plans # shows root-project-plan in current directory + subdir-plan1 and subdir-plan2 in child directory some-subdirectory+cd some-subdirectory # cwd is now some-subdirectory, current plan is subdir-plan2+plandex cd subdir-plan1 # cwd is still some-subdirectory, current plan is now subdir-plan1+```++One last tidbit on this topic: you can also load context from parent or sibling directories if needed by using `..` in your load paths.++```bash+cd your-project+cd some-subdirectory+plandex cd subdir-plan1+plandex load ../file.go # loads your-project/file.go into subdir-plan1 context+plandex load ../other-subdirectory/test.go # loads your-project/other-subdirectory/test.go into subdir-plan1 context+```++### Ignoring files++Plandex respects `.gitignore` and won't load any files that you're ignoring. You can also add a `.plandexignore` file with ignore patterns to any directory.++## Help โน๏ธ++There are a few more commands that haven't been covered in this guide. To see all available commands:++```+plandex help+```++For help on any command:++```+plandex [command] --help+```++## Aliases ๐ฅท++You can use the `pdx` alias anywhere you would use `plandex`. Many commands have short aliases as well.++```bash+pdx l component.ts action.ts reducer.ts # plandex load+pdx t -f task.txt # plandex tell+pdx co # plandex checkout+pdx br # plandex branches+pdx rw # plandex rewind+pdx c # plandex continue+pdx ch # plandex changes+pdx ap # plandex apply+pdx conn # plandex connect+pdx s # plandex stop+pdx pl # plandex plans+pdx cu # plandex current+pdx dp # plandex delete-plan+pdx db # plandex delete-branch+```