This is the monorepo for PostHog's Array desktop task manager and the agent framework that powers it.
- apps/array - The Array desktop application
- packages/agent - The TypeScript agent framework
- Node.js 22+
- pnpm 10.23.0
# Install pnpm if you haven't already
npm install -g pnpm
# Install dependencies for all packages
pnpm install
# Build the agent package
pnpm --filter agent build# Run both agent (watch mode) and array app in parallel
pnpm dev
# Or run them separately:
pnpm dev:agent # Run agent in watch mode
pnpm dev:array # Run array app# Build all packages
pnpm build
# Run type checking across all packages
pnpm typecheck
# Run linting across all packages
pnpm lint
# Run tests across all packages
pnpm testarray-monorepo/
├── apps/
│ └── array/ # Electron desktop app
├── packages/
│ └── agent/ # Agent framework
├── pnpm-workspace.yaml # Workspace configuration
└── package.json # Root package.json