AI Thinking Infrastructure โ orchestrate human decisions and AI execution in your IDE
Project description
๐ง BuildMind
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:
- Decompose your intent into a task DAG (via your IDE's LLM โ no API key)
- Classify each task as
HUMAN_REQUIRED(architectural gate) orAI_EXECUTABLE - Surface decision cards for each human gate โ options, tradeoffs, AI recommendation
- Generate code for all AI tasks after your decisions are made
- 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:
- GitHub Actions + PyPI Trusted Publisher (OIDC) โ zero tokens stored anywhere
- See
.github/workflows/publish.yml
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8806dbfbe7d831ae15d8bc66860dc3c857f5567b524e2fe8b4f6f7d1d88be9c0
|
|
| MD5 |
74e2f33ca7a1f90083393ac5b6f33eb6
|
|
| BLAKE2b-256 |
34e1ccfcf0cfc9d13f2b64770b15614eeb401c2f85de9d02d25bce4d2feb0d5a
|
Provenance
The following attestation bundles were made for buildmind-0.2.0.tar.gz:
Publisher:
publish.yml on MUKUL-PRASAD-SIGH/BuildMind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
buildmind-0.2.0.tar.gz -
Subject digest:
8806dbfbe7d831ae15d8bc66860dc3c857f5567b524e2fe8b4f6f7d1d88be9c0 - Sigstore transparency entry: 1294751500
- Sigstore integration time:
-
Permalink:
MUKUL-PRASAD-SIGH/BuildMind@210cc24ea94fce6dba996a9fb05af8a999e360ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MUKUL-PRASAD-SIGH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@210cc24ea94fce6dba996a9fb05af8a999e360ea -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e505de44e0a4244cc78e60b9a49a82124fa5910e8197e9e4c906db3b948888d0
|
|
| MD5 |
c01546e7858d61d57366372c23e71e0e
|
|
| BLAKE2b-256 |
c4e8a9b79c3379c2318f6bdd96b036d657c14c1bc822be0d79d37afebe406413
|
Provenance
The following attestation bundles were made for buildmind-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on MUKUL-PRASAD-SIGH/BuildMind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
buildmind-0.2.0-py3-none-any.whl -
Subject digest:
e505de44e0a4244cc78e60b9a49a82124fa5910e8197e9e4c906db3b948888d0 - Sigstore transparency entry: 1294751648
- Sigstore integration time:
-
Permalink:
MUKUL-PRASAD-SIGH/BuildMind@210cc24ea94fce6dba996a9fb05af8a999e360ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MUKUL-PRASAD-SIGH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@210cc24ea94fce6dba996a9fb05af8a999e360ea -
Trigger Event:
workflow_dispatch
-
Statement type: