From e3bbe475aef80b141e12365a29b15d80c7bca598 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Tue, 9 Dec 2025 15:24:38 +0100 Subject: [PATCH] Add npm run dev instructions to DEVELOPMENT.md --- packages/coding-agent/DEVELOPMENT.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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