Prerequisites
- Node.js 22 or newer
- pnpm 10.33.x
- Docker
- Supabase CLI
Start the repository
Copy-Item .env.example apps/web/.env.local.
The web app runs at localhost:3000. Local auth email appears in Inbucket at 127.0.0.1:54324.
The seed creates a development user, company, synthetic connector, capability grants, policy, catalog data, and test workflow state. Use pnpm seed:reset when you need to replace seeded state deliberately.
Terminal client
~/.local/bin by default. On Windows it creates %LOCALAPPDATA%\Mandala\bin\mandala.cmd; add that directory to PATH or set MANDALA_BIN_DIR.
Common checks
Database workflow
Schema changes are append-only SQL migrations undersupabase/migrations.
apps/web/lib/supabase/types.ts. Never hand-edit that file.
Security-sensitive changes should add database tests for tenant isolation, anonymous access, role boundaries, expected-version conflicts, and replay behavior.
Agent development
- Start from an existing example in
skills/. - Keep the frontmatter contract declarative and versioned.
- Validate before installation.
- Test with synthetic fixtures.
- Test in real-data Sandbox and review generated mappings.
- Inspect the recommendation, evidence, warnings, draft, and history.
- Activate only after readiness passes.
Safety-sensitive code
When changing connectors, Context Engine, decisions, or execution:- preserve workspace scoping end to end;
- validate at trust boundaries;
- keep connector and model credentials server-only;
- use expected versions for mutable configuration and review state;
- make retries idempotent;
- store evidence and audit history before side effects;
- retain fail-closed behavior for missing grants, stale data, schema drift, and unhealthy providers; and
- test direct API bypass attempts, not only the guided CLI.
Documentation
Mintlify source lives underdocs/ in the repository.
Codex and design workflow
Repository instructions live inAGENTS.md and CLAUDE.md. Figma-to-implementation and release-ready feature work uses the repo-owned Orchestrator skill.
Review artifacts belong under: