Skip to content

Commit 053c36c

Browse files
authored
chore: Restore mprocs as default dev runner (#1303)
1 parent 589a36f commit 053c36c

File tree

4 files changed

+44
-15
lines changed

4 files changed

+44
-15
lines changed

CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
## Commands
1515

1616
- `pnpm install` - Install all dependencies
17-
- `pnpm dev` - Run both agent (watch) and code app via phrocs
17+
- `pnpm dev` - Run both agent (watch) and code app via mprocs
18+
- `pnpm dev:ph` - Run both agent (watch) and code app via phrocs
1819
- `pnpm dev:agent` - Run agent package in watch mode only
1920
- `pnpm dev:code` - Run code desktop app only
2021
- `pnpm build` - Build all packages (turbo)

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ pnpm install
2828
# Copy environment config
2929
cp .env.example .env
3030

31-
# phrocs is auto-installed on first `pnpm dev`
3231
```
3332

3433
### Running in Development
3534

35+
By default, `pnpm dev` uses [mprocs](https://github.com/pvolok/mprocs) to run the agent and code app in parallel.
36+
3637
```bash
3738
# Run both agent (watch mode) and code app in parallel
3839
pnpm dev
@@ -42,6 +43,20 @@ pnpm dev:agent # Run agent in watch mode
4243
pnpm dev:code # Run code app
4344
```
4445

46+
### phrocs (alpha)
47+
48+
phrocs is our custom process runner built as a replacement for mprocs. It's currently in alpha and can be used as an alternative dev runner. phrocs does not auto-update — you must manually run the update command to pull the latest version.
49+
50+
```bash
51+
# Run dev with phrocs (auto-installs on first run)
52+
pnpm dev:ph
53+
54+
# Manually update phrocs to the latest version
55+
pnpm update:phrocs
56+
```
57+
58+
phrocs reads the same `mprocs.yaml` config file. The binary is downloaded to `bin/phrocs` and is git-ignored.
59+
4560
> **Want to connect to a local PostHog instance?** See [docs/LOCAL-DEVELOPMENT.md](./docs/LOCAL-DEVELOPMENT.md) for OAuth setup and connecting to localhost:8010.
4661
4762
### Utility Scripts

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"scripts": {
1111
"setup": "bash apps/code/bin/setup",
1212
"prepare": "husky",
13-
"dev": "pnpm build:deps && bash scripts/ensure-phrocs.sh && bin/phrocs --config mprocs.yaml",
13+
"dev": "pnpm build:deps && mprocs",
14+
"dev:ph": "pnpm build:deps && bash scripts/ensure-phrocs.sh && bin/phrocs --config mprocs.yaml",
1415
"dev:agent": "pnpm --filter agent dev",
1516
"dev:git": "pnpm --filter @posthog/git dev",
1617
"dev:code": "pnpm --filter code start",
@@ -27,7 +28,8 @@
2728
"format": "biome format --write",
2829
"clean": "pnpm -r clean",
2930
"knip": "knip",
30-
"skills:pull": "node scripts/pull-skills.mjs"
31+
"skills:pull": "node scripts/pull-skills.mjs",
32+
"update:phrocs": "rm -f bin/phrocs && bash scripts/ensure-phrocs.sh"
3133
},
3234
"keywords": [
3335
"posthog",
@@ -45,6 +47,7 @@
4547
"husky": "^9.1.7",
4648
"knip": "^5.66.3",
4749
"lint-staged": "^15.5.2",
50+
"mprocs": "^0.7.1",
4851
"turbo": "^2.6.2"
4952
},
5053
"lint-staged": {

pnpm-lock.yaml

Lines changed: 21 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)