Skip to main content

The Brain of the Matrix ecosystem — turns an idea + chosen blueprint into a governed Design Bundle with every batch, via an agentic LLM crew. The 'batches guy'.

Project description

🧠 Matrix Designer

The Brain of the Matrix ecosystem — the batches guy.

Give it an idea and the chosen blueprint, and an agentic LLM crew designs the full proposal — framework decision, visual/UX target, architecture, entity contracts, asset manifest, acceptance criteria (including visual), and an ordered, dependency-aware batch roadmap with all details — as one governed Design Bundle. Then Matrix Builder turns that brain into controlled, validated batches and GitPilot builds them.

the Brain agentic MCP Design Bundle MIT


Why this exists

The hardest part of building a game or any project with AI is not writing code — it's knowing what the whole solution should become before splitting it into batches. When there is no authoritative design, every batch improvises: no art direction, no level architecture, no asset plan, no entity system, no visual acceptance target, no batch ownership map. The result is a primitive prototype, no matter how good the coder is.

Matrix Designer is that missing brain. It does not replace Matrix Builder — it prepares the full design first, so when Matrix Builder mounts the puzzle, every piece fits.

Matrix Designer designs the solution.
Matrix Builder controls the build.
GitPilot writes the code.
Matrix Definitions enforce the rules.

Live in Matrix Builder

Matrix Designer is wired end-to-end into Matrix Builder's Blueprint Details page. Turn on the quiet Matrix Designer toggle in Settings → System Configuration and each blueprint's Details renders real multi-agent output — overview, architecture, build batches, file plan, Matrix rules, a Design Brain panel, and a live Talk to blueprint chat that refines the plan.

Blueprint cards → Details Blueprint Details — real agent output, Design Brain, live chat

Built and tested across both repos — batches 0011 of the integration roadmap (09 dropped: provider-agnostic):

idea ─▶ Matrix Designer (LangGraph brain) ─▶ HTTP/MCP service ─▶ control-plane proxy
     ─▶ typed web client ─▶ Blueprint Details page    (deterministic fallback at every hop)

Every hop fails open to a deterministic derivation, so the page never blocks and the toggle-off behaviour is unchanged. Saved blueprints + chat persist per build, owner-scoped (RLS).

Where it fits in the pipeline

Matrix Builder's contract chain today is idea-request → blueprint-candidate(×3) → matrix-bundle → prompt-pack → validation. Matrix Designer adds one node and one artifact, additively:

idea-request ─▶ [ MATRIX DESIGNER ] ─▶ design-bundle ─▶ blueprint-candidate(×3) ─▶ matrix-bundle ─▶ prompt-pack ─▶ validation
                  (agentic crew)         (the brain)         (now derived from the brain via design_digest)

Nothing downstream changes. idea-request gains optional references[] + design_mode; blueprint-candidate gains optional design_bundle_ref + design_digest so each blueprint is provably derived from a signed design. See docs/INTEGRATION.md.

The multi-agent brain (LangGraph) — designs the top-3 blueprints

A LangGraph StateGraph of specialist agents designs three blueprints at once (Minimal → Standard → Production, simplest → hardest) and populates the full Blueprint Details dashboard — with an orchestrator chat for live modifications. Each agent owns one slice of the shared design state:

Planner → Requirements → Architect → UI/UX → Batch Planner → Quality → Synthesizer → 3 Blueprints
                                                   ↑__________ chat: "add a boss level" __________|
Agent Produces
Planner / orchestrator domain, goals, coordination
Requirements Analyst features, constraints, users, non-functional
Architect components + dependencies for the stack
UI/UX Designer flows + the asset/UI manifest (so done has a LOOK)
Batch Planner 🧩 ordered, dependency-aware roadmap per tierallowed_files, acceptance
Quality Checker RMD + DESIGN-* governance (the brain can't approve itself)
Blueprint Synthesizer the 3 candidate cards + full BlueprintDetails

Full topology, state model and diagram: docs/AGENTS.md.

mdesign blueprints --idea "Build a Phaser/Vite platformer on GitHub Pages"   # 3 blueprints + details
mdesign chat --idea "..." --message "add a boss level" --candidate standard  # orchestrator refinement

LangGraph is used when installed (pip install "matrix-designer[langgraph]", durable state + checkpointing); a deterministic runner executes the identical agents when no LLM is configured, so CI and offline use never break. (A CrewAI back-end is also available behind the same DesignEngine API via MATRIX_DESIGNER_BACKEND=crewai.)

AI proposes; Matrix Definitions enforce. The Design Bundle is validated against design-packs (GAME-001…010, APP-001…) — the brain never approves itself.

Quickstart

With Make (servers ready in three commands):

make install      # editable install + service & MCP extras
make test         # run the suite
make run          # HTTP service on :8077 (POST /design/blueprints, /design/refine, GET /healthz)
make run-mcp      # or the stdio MCP server

On Hugging Face: Matrix Designer is installed and started inside the Matrix Builder Space automatically — one Space runs Matrix Builder + Matrix Designer together, ready to create projects and use GitPilot as the AI coder. See matrix-builder/docs/deploy-huggingface.md.

With pip:

pip install matrix-designer            # core (deterministic, offline)
pip install "matrix-designer[agentic,mcp]"   # + CrewAI crew + MCP server

# 1) Generate just the batches for a chosen blueprint (the batches guy)
mdesign batches --idea "An 8-episode arcade platformer for the web" \
                --blueprint blueprint.json --quality production

# 2) Or the full Design Bundle, validated
mdesign design  --idea "..." --blueprint blueprint.json -o design-bundle.json

# 3) Validate / export to Matrix Builder
mdesign validate design-bundle.json
mdesign export   design-bundle.json -o mb-export.json   # idea-request + blueprint overlay + mb next[]

As a service (how Matrix Builder's control plane calls it)

pip install "matrix-designer[service]"
python -m matrix_designer.service           # FastAPI on :8077
#   POST /design/blueprints {idea}              -> 3 blueprints + details
#   POST /design/refine     {idea, message}     -> orchestrator chat refinement
#   GET  /healthz

Provider-agnostic: with no provider the deterministic runner answers, so the service never blocks and never calls an unapproved model; an operator MAY restrict providers via MATRIX_DESIGNER_ALLOWED_PROVIDERS.

Trust boundary & hardening (enterprise). The service is meant to run inside Matrix Builder's control plane (a trusted internal hop), so it ships open by default — the production behaviour is unchanged. For an exposed deployment, opt into hardening with env vars (all default-off):

Env var Effect
MATRIX_DESIGNER_API_KEY require Authorization: Bearer <key> (or X-API-Key) on /design/*; /healthz stays open
MATRIX_DESIGNER_CORS_ORIGINS comma-separated CORS allow-list (e.g. https://build.matrixhub.io)
MATRIX_DESIGNER_HOST / MATRIX_DESIGNER_PORT bind host/port (default 0.0.0.0:8077)
MATRIX_DESIGNER_MAX_IDEA max idea length (default 8000; empty/oversized → 422)

A standalone Dockerfile is provided (docker build -t matrix-designer . && docker run -p 8077:8077 matrix-designer).

As an MCP server (how Matrix Builder calls it)

python -m matrix_designer.mcp_server        # stdio MCP server: matrix-designer

Tools: analyze_idea · decompose_reference · propose_architecture · generate_batches · assemble_design_bundle · validate_design · export_to_builder. In the Matrix Builder UI this is a single quiet “Design first” toggle; the user still picks Minimal / Standard / Production — but each candidate is now derived from the brain. See docs/MCP.md.

The Design Bundle

The governed output artifact (design-bundle.schema.json, shipped inside the package so pip install works offline): goal_analysis · framework_decision · visual_target · architecture · contracts · asset_manifest · acceptance · batch_roadmap · governance · provenance (content-addressed by design_digest).

A complete worked example — the brain that would have produced the premium Contract Quest instead of the flat prototype — is in examples/contract-quest/design-bundle.json.

The ecosystem

Project Role
Matrix Designer 🧠 the Brain — idea → governed Design Bundle (this repo)
Matrix Builder the Contract Architect — bundle → batches → validate
agent-generator the deterministic engine (blueprints, prompts, validation, repair)
Matrix Definitions the Law — signed standards + design-packs
GitPilot the Worker — a Matrix-native AI coder
MatrixHub the Registry of validated bundles

🧠 Matrix Designer · Created by Ruslan Magana Vsevolodovna · MIT licensed

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matrix_designer-0.1.0.tar.gz (45.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matrix_designer-0.1.0-py3-none-any.whl (44.5 kB view details)

Uploaded Python 3

File details

Details for the file matrix_designer-0.1.0.tar.gz.

File metadata

  • Download URL: matrix_designer-0.1.0.tar.gz
  • Upload date:
  • Size: 45.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matrix_designer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 29075c5294cd3d819c2e3d2a726a749f07c389948a1b05500c6d53ad3748eed9
MD5 90b4ab6e78db516ea03d322e6aba3ad0
BLAKE2b-256 56532bf7fd5516b0e479d11b0510565af13e510a600cac39a2e6d1142eb67a8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for matrix_designer-0.1.0.tar.gz:

Publisher: release.yml on agent-matrix/matrix-designer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file matrix_designer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: matrix_designer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matrix_designer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 023297060a61bf9aa96e2a5e5352834141dc0f248d33c1ad8bc375e3023816d9
MD5 2866020b0e7b29b8bae6ce9aadcab2ad
BLAKE2b-256 a9f1da4fa8f5ae7d80baa07c9308525a8217774577c4fcc5c1e9df1634aac77b

See more details on using hashes here.

Provenance

The following attestation bundles were made for matrix_designer-0.1.0-py3-none-any.whl:

Publisher: release.yml on agent-matrix/matrix-designer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page