Repository navigation
Guide Local Setup
This repo is a pnpm workspace for Max Height:
| Package | Purpose | Local command |
|---|---|---|
packages/frontend |
React + Vite web app | cd packages/frontend && pnpm run dev |
packages/agent |
Strands/AgentCore agent | cd packages/agent && pnpm run dev |
packages/infra |
AWS CDK infrastructure | cd packages/infra && npx cdk synth |
Read Guide-Validation-Gate after setup; pnpm run validate is the final
quality gate. Deployment-only tooling is covered in Guide-Deployment.
For install/build/test, you need a system Node new enough to run pnpm under the repo's engine check, and a pnpm 11 install capable of self-switching. AWS CLI, CDK CLI and Docker are only needed for deployment work; AgentCore CLI is optional for local agent development or the documented deploy contingency. The CDK-owned V2 runtime is an unbuilt target with a constitutional conflict, not a current deploy path; see Guide-Deployment.
Do not add Corepack steps. The toolchain is self-pinning:
-
package.jsonpackageManagerpins the exact pnpm version. -
package.jsondevEngines.runtimepins the Node runtime range and tells pnpm to download it when missing. -
packages/infra/test/toolchain.test.tsverifiesdevEngines.runtimeexists, downloads on failure, and stays on the same Node major as.nvmrc.
That trap is indexed from Gotchas because adding Corepack would be redundant and can age badly as Node distributions change.
Notes moved here from the README on 2026-11-07, where version numbers and platform tips would have gone stale:
- pnpm 11's
pmOnFailsetting (defaultdownload) is the built-in equivalent of Corepack: it fetches and runs the version declared inpackageManager. -
.npmrcsetsengine-strict=true, so a system Node older than the engine range makespnpm installfail outright instead of warning. -
.nvmrcpins the Node major fornvm/fnmand for CI'sactions/setup-node; the toolchain test keeps it in step withdevEngines.runtime. The systemnode -vandpnpm exec node -vmay legitimately differ, because scripts run on the pinned Node. - On Windows, pnpm recommends installing it via npm: Microsoft Defender
sometimes blocks the standalone installer. On macOS and Linux,
curl -fsSL https://get.pnpm.io/install.sh | sh -also works. - If you manage toolchains with asdf, mise or Volta, set
pmOnFail: ignoreandruntimeOnFail: ignorein your localpnpm-workspace.yamlso pnpm defers to your version manager. - If the editor's Vitest extension reports "Vitest not found" right after
cloning, that is expected before
pnpm install; install, then reload the window. Do not run thepnpm add -D vitestit suggests, because vitest is already a declared dependency.
git clone https://github.com/quattro004/Agent004.git
cd Agent004
node -v
npm install -g pnpm@11 # only if pnpm 11 is not already installed
pnpm installAfter pnpm install, the repo's pinned tools take over. Use:
pnpm -v
pnpm exec node -vto confirm the active script toolchain, not just the system binaries on PATH.
cd packages/frontend
pnpm run devThe frontend dev server runs the browser app with hot reload and skips the
provider sign-in gate so the UI can be developed without a deployed Cognito
app client. This is UI-only: it does not mint an access token or mock the
agent. useAgentStream still refuses requests without a real token, and the
app shows its signal-lost state if a local interaction needs the agent.
Production builds keep the sign-in gate. Live agent and full deployment E2E
testing still require deployment.
cd packages/agent
pnpm run devThe quickstart also documents agentcore dev for local AgentCore-style work.
That path needs deployment tooling and AWS credentials for Bedrock calls.
cd packages/infra
npx cdk synth
npx cdk diffDo not deploy casually. See Guide-Deployment first, especially the split between CDK-managed stacks and the AgentCore Runtime V2 deployment path.
MCP config is for AI coding assistants, not for building, testing or deploying
the repo. See Guide-MCP-Servers before editing .mcp.json or
.vscode/mcp.json.
Run the full gate after install:
pnpm run validateIt chains lint, formatting, type-check, build and tests. See Guide-Validation-Gate for the exact order, individual commands, and known validation traps.
- Concept-Cloud-Only-Inference
- Concept-Budget-Ceiling
- Concept-Personality-Gate
- Concept-IP-And-Legal-Posture
- Concept-Supply-Chain-Discipline
- Concept-Graceful-Degradation
- Concept-Observability
- Concept-Testing-And-TDD
- Concept-Credential-Hygiene
Editing in the browser? Wiki edits are live and bypass wiki:lint. Read
Guide-Wiki-Contributing first.