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.
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. Local UI work can use mock backend behavior; AWS credentials are not required just to iterate on the app shell.
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.