diff --git a/packages/coding-agent/DEVELOPMENT.md b/packages/coding-agent/DEVELOPMENT.md index edbc3e5d..ad7c1487 100644 --- a/packages/coding-agent/DEVELOPMENT.md +++ b/packages/coding-agent/DEVELOPMENT.md @@ -152,8 +152,17 @@ Handles user preferences: ### Running in Development +Start the watch build in the monorepo root to continuously rebuild all packages: + ```bash -# From monorepo root +# Terminal 1: Watch build (from monorepo root) +npm run dev +``` + +Then run the CLI with tsx in a separate terminal: + +```bash +# Terminal 2: Run CLI (from monorepo root) npx tsx packages/coding-agent/src/cli.ts # With arguments @@ -164,6 +173,8 @@ npx tsx packages/coding-agent/src/cli.ts -p "Hello" npx tsx packages/coding-agent/src/cli.ts --mode rpc --no-session ``` +The watch build ensures changes to dependent packages (`pi-agent-core`, `pi-ai`, `pi-tui`) are automatically rebuilt. + ### Type Checking ```bash