Skip to main content

AI Thinking Infrastructure โ€” orchestrate human decisions and AI execution in your IDE

Project description

๐Ÿง  BuildMind

PyPI version Python 3.10+ License: MIT GitHub Release CI/CD

AI Thinking Infrastructure โ€” the operating system for human-AI collaborative engineering. Uses the novel Inverted MCP Architecture to orchestrate your entire project lifecycle with zero API keys.

Human     = Strategy   (you make architectural decisions at decision gates)
AI        = Execution  (code generation via your IDE's own model โ€” zero API keys)
BuildMind = Brain      (owns the DAG, fires LLM sampling back through the IDE)

โšก Install

pip install buildmind

That's it. No API keys. No cloud accounts. No config files.


๐Ÿš€ Quick Start โ€” CLI

# Inside any project folder:
buildmind start "Build a REST API with JWT auth and user management"

BuildMind will:

  1. Decompose your intent into a task DAG (via your IDE's LLM โ€” no API key)
  2. Classify each task as HUMAN_REQUIRED (architectural gate) or AI_EXECUTABLE
  3. Surface decision cards for each human gate โ€” options, tradeoffs, AI recommendation
  4. Generate code for all AI tasks after your decisions are made
  5. Write files directly to your project

Works for any project type:

buildmind start "Build a REST API with authentication"
buildmind start "Build a React dashboard with charts"
buildmind start "Build a CLI tool for file compression"
buildmind start "Build a Stripe payment integration"
buildmind start "Build a real-time chat system"
buildmind start "Build a microservice for email sending"
buildmind start "Build an auth system and landing page"

๐Ÿ”Œ Quick Start โ€” MCP Server (Native IDE Integration)

BuildMind exposes a full MCP server that plugs directly into your IDE. Once configured, you talk to BuildMind in plain English from any AI chat panel.

Step 1 โ€” Add to your MCP config

Antigravity / Cursor / Windsurf / Claude Desktop โ€” add to your mcp_config.json:

{
  "mcpServers": {
    "buildmind": {
      "command": "buildmind",
      "args": ["serve", "--mcp"]
    }
  }
}

Step 2 โ€” Talk to it in your IDE

You:  Use BuildMind to plan a project: build a SaaS auth system with Stripe
BuildMind:  โœ… Project created: proj_a4f2b1
            ๐Ÿ“Š Task Plan (8 tasks):
              ๐Ÿง‘ 3 HUMAN decisions required
              ๐Ÿค– 5 AI tasks ready to execute
            ...
            Next step: call buildmind_resume to work through decisions.

Available IDE Tools

Tool What It Does
buildmind_start Decompose your intent into a DAG + classify tasks
buildmind_resume Get the next human decision card (options + AI recommendation)
buildmind_decide Record your choice, unlock dependent AI tasks
buildmind_execute Generate + write all ready AI tasks to disk
buildmind_status Show full project progress (tasks, decisions, files written)

๐Ÿ—๏ธ The Inverted MCP Architecture

BuildMind implements a research-grade paradigm shift from standard MCP usage:

Standard MCP:  IDE owns the AI loop โ†’ calls server tools for actions
BuildMind MCP: Server owns the orchestration DAG โ†’ fires sampling/createMessage
               back to the IDE for LLM inference

What this means:

  • โœ… Zero API keys โ€” all LLM calls proxied through the IDE's existing authenticated connection
  • โœ… IDE-agnostic โ€” works with any MCP-compatible IDE (Cursor, Windsurf, Antigravity, Claude Desktop)
  • โœ… Stateful orchestration โ€” the DAG, tasks, and decisions persist on disk in .buildmind/
  • โœ… Human-in-the-loop โ€” enforced architectural decision gates before AI can proceed

See the research paper for full technical details.


๐Ÿงฉ Decision Cards โ€” Human Gates

When BuildMind needs your input, it surfaces a structured decision card:

๐ŸŽฏ Decision Required โ€” Task t2: Choose Auth Strategy

๐Ÿ“ You need to decide how sessions are managed. This shapes your entire security model.

โš™๏ธ  Options:
  [1] JWT (Stateless)
      What: JSON Web Tokens in HTTP-only cookies
      Best when: SPAs, mobile apps, microservices
      Weakness: Hard to revoke without a blacklist

  [2] Session-based (Stateful)
      What: Redis-backed server sessions
      Best when: Admin tools, banking apps
      Weakness: Requires Redis infrastructure

๐Ÿ’ก AI Recommendation: Option 1
   Reasoning: JWT fits a REST API with a mobile/SPA frontend better
   Confidence: high

โžก๏ธ  Call buildmind_decide(task_id='t2', option_number=1) to record your choice.

๐Ÿ“ What Gets Written to Your Project

your-project/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ auth/
โ”‚   โ”‚   โ”œโ”€โ”€ jwt_service.py       โ† Written by AI (used your JWT decision)
โ”‚   โ”‚   โ”œโ”€โ”€ routes.py            โ† Written by AI
โ”‚   โ”‚   โ””โ”€โ”€ middleware.py        โ† Written by AI
โ”‚   โ””โ”€โ”€ landing/
โ”‚       โ”œโ”€โ”€ index.html           โ† Written by AI
โ”‚       โ””โ”€โ”€ styles.css           โ† Written by AI
โ””โ”€โ”€ .buildmind/
    โ”œโ”€โ”€ project.json             โ† Project metadata
    โ”œโ”€โ”€ tasks.json               โ† Full task DAG
    โ”œโ”€โ”€ decisions.json           โ† All your recorded choices
    โ”œโ”€โ”€ gates.json               โ† Human gate states
    โ””โ”€โ”€ audit_log.jsonl          โ† Complete event history

๐Ÿงช Testing

# 1. Pre-flight: verify all 7 research components
python tests/test_0_preflight.py

# 2. Inverted sampling: prove IDE gets sampling requests (no mocks for the IDE)
python tests/test_2_fake_session.py

# 3. JSONRPC clean: verify Rich UI doesn't corrupt MCP stdout
python tests/test_6_stdio_clean.py

Expected output for all three: [PASS]


๐Ÿ“š Full Documentation

Doc Description
IDE Integration โญ START HERE MCP setup for all IDEs, full workflow
Inverted MCP Research Paper The technical novelty explained
MCP Tools Reference All 5 tools, args, and return values
Testing Guide 8 test scenarios, full checklist
PyPI Release Notes Version history and roadmap
System Architecture Full DAG-based design
Decision Engine How decision cards are generated
Task Decomposer How intent becomes a task DAG
Router & Model Strategy IDE model selection logic

๐Ÿ—บ๏ธ Roadmap

Version Status What's In It
0.1.0 โœ… Released Inverted MCP Architecture, CLI, 5 MCP tools, disk persistence
0.2.0 โœ… Released PyPI metadata, badges, classifiers, mcp/anyio as core deps
0.3.0 ๐Ÿ”œ Planned Streaming sampling tokens, multi-project support
0.4.0 ๐Ÿ”œ Planned IDE-native UI panels for decision cards
1.0.0 ๐Ÿ”œ Planned Stable API, full test coverage, plugin system

๐Ÿ› ๏ธ CI/CD โ€” Automated PyPI Publishing

Every GitHub release automatically publishes to PyPI in ~42 seconds via:

To release a new version:

# 1. Bump version in pyproject.toml
# 2. git commit + push
# 3. Create GitHub release โ†’ published automatically

๐Ÿค Contributing

git clone https://github.com/MUKUL-PRASAD-SIGH/BuildMind.git
cd BuildMind
pip install -e ".[dev]"

# Run tests
python tests/test_0_preflight.py
python tests/test_2_fake_session.py
python tests/test_6_stdio_clean.py

Built with ๐Ÿง  by Mukul Prasad
Architecture: Inverted MCP โ€” where the server owns the brain, not the IDE.

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

buildmind-0.2.0.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

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

buildmind-0.2.0-py3-none-any.whl (62.2 kB view details)

Uploaded Python 3

File details

Details for the file buildmind-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for buildmind-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8806dbfbe7d831ae15d8bc66860dc3c857f5567b524e2fe8b4f6f7d1d88be9c0
MD5 74e2f33ca7a1f90083393ac5b6f33eb6
BLAKE2b-256 34e1ccfcf0cfc9d13f2b64770b15614eeb401c2f85de9d02d25bce4d2feb0d5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for buildmind-0.2.0.tar.gz:

Publisher: publish.yml on MUKUL-PRASAD-SIGH/BuildMind

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

File details

Details for the file buildmind-0.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for buildmind-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e505de44e0a4244cc78e60b9a49a82124fa5910e8197e9e4c906db3b948888d0
MD5 c01546e7858d61d57366372c23e71e0e
BLAKE2b-256 c4e8a9b79c3379c2318f6bdd96b036d657c14c1bc822be0d79d37afebe406413

See more details on using hashes here.

Provenance

The following attestation bundles were made for buildmind-0.2.0-py3-none-any.whl:

Publisher: publish.yml on MUKUL-PRASAD-SIGH/BuildMind

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