Skip to content

mihos3506/GoBP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

523 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

β—ˆ GoBP β€” Graph of Brainstorm Project

GoBP lΓ  bα»™ nhα»› dΓ i hαΊ‘n cho AI agents khi lΓ m việc trΓͺn 1 project.


VαΊ₯n đề

Khi solo founder build project vα»›i AI team:

  1. AI quΓͺn: Mα»—i session mα»›i, AI mαΊ₯t 40-50% context. Founder phαΊ£i explain lαΊ‘i mα»—i lαΊ§n.
  2. Context bloat: AI đọc hΓ ng loαΊ‘t docs để hiểu 1 feature, tα»‘n 60K tokens cho việc nΓͺn chỉ tα»‘n 500.
  3. Ideas drift: Ý tưởng nΓ³i vα»›i AI session nΓ y, session sau bα»‹ quΓͺn, sαΊ£n phαΊ©m ra khΓ΄ng Δ‘ΓΊng Γ½ gα»‘c.
  4. Knowledge silos: Mα»—i AI (Claude, Cursor, Qodo) cΓ³ memory riΓͺng, khΓ΄ng share được.

GiαΊ£i phΓ‘p

GoBP lΓ  mα»™t knowledge store shared giα»―a mọi AI agents trong project:

  • File-first: Markdown + YAML, git-friendly, human-readable
  • MCP-based: BαΊ₯t kα»³ AI nΓ o hα»— trợ MCP đều đọc/ghi được
  • Human-free authoring: Founder chỉ chat vα»›i AI, AI tα»± ghi vΓ o GoBP
  • Structured: Rich node/edge schema (see docs/SCHEMA.md and gobp/schema/*.yaml), validated

Ai dΓΉng GoBP?

Primary: AI agents (Cursor, Claude CLI, Claude Desktop, Qodo, bαΊ₯t kα»³ MCP client nΓ o)

Secondary: Human (founder) β€” chỉ giΓ‘n tiαΊΏp qua AI chat, khΓ΄ng edit file

Ai xΓ’y GoBP?

GoBP được build vΓ¬ nα»—i Δ‘au thα»±c tαΊΏ cα»§a founder MIHOS (solo non-dev founder, 2026). KhΓ΄ng phαΊ£i product commercial. Open folder D:\GoBP\, code theo docs, ship khi Δ‘α»§ dΓΉng.


πŸ—‚οΈ Documentation Navigation

GoBP cΓ³ 7 foundational docs. Đọc theo thα»© tα»± nαΊΏu bαΊ‘n lΓ  AI mα»›i:

1. CHARTER.md β€” Why this exists

  • 4 pains GoBP giαΊ£i quyαΊΏt
  • Scope (in/out)
  • Principles (8 locked)
  • Risks
  • Build approach (CΓ‘ch B: internal-first)

2. VISION.md β€” What GoBP is, in detail

  • One-liner definition
  • 2 use cases vα»›i token numbers cα»₯ thể
  • What GoBP IS (6 Δ‘αΊ·c trΖ°ng)
  • What GoBP IS NOT (7 Δ‘iều avoid)
  • 8 core principles non-negotiable
  • Success criteria

3. ARCHITECTURE.md β€” How it's built

  • System overview (4 layers)
  • 6 node types vα»›i full YAML examples
  • 5 edge types
  • File structure .gobp/ pattern
  • MCP server design
  • Core engine modules (12 Python files)
  • Performance targets
  • Scaling limits

4. INPUT_MODEL.md β€” How AI captures from conversation

  • Core principle: human speaks, AI writes
  • 5 capture patterns (brain dump, refinement, confirmation, observation, reference)
  • Verification protocol for decisions
  • Conversation state tracking
  • Multi-AI coordination
  • Failure modes to avoid
  • System prompt snippet for AI integration

5. IMPORT_MODEL.md β€” How existing docs become GoBP data

  • 3 project states (greenfield, in-progress, legacy)
  • 3 import approaches (manual, auto-parser, AI-assisted)
  • Proposal flow with examples
  • MIHOS import plan (31 DOCs)
  • Failure modes in import
  • Privacy considerations

6. SCHEMA.md β€” Formal schema definitions

  • YAML schema language
  • 6 core node type schemas
  • 5 core edge type schemas
  • Validation rules (hard vs soft)
  • Schema extensions (per-project)
  • ID conventions
  • Versioning

7. MCP_TOOLS.md β€” API contract

  • 12 MCP tools specification
  • Input/output schemas
  • Token budgets
  • Error handling
  • Tool dependencies
  • Protocol 0 checklist
  • Performance targets

πŸš€ Quick Start

For AI agents new to GoBP

1. Read CHARTER.md (5 min) β€” understand why
2. Read VISION.md (10 min) β€” understand what
3. Skim ARCHITECTURE.md sections 1-3 (10 min) β€” node types + edge types
4. Read INPUT_MODEL.md sections 1-3 (10 min) β€” capture patterns
5. Read MCP_TOOLS.md section 1 + 9 (5 min) β€” tool inventory + Protocol 0
6. Start session: call session_log(action=start)
7. Load recent context: call session_recent(n=3)
8. Participate in conversation using capture patterns

Total onboarding: ~40 minutes of reading, then ready.

For Cursor implementing GoBP

1. Read CHARTER.md β€” scope boundaries
2. Read ARCHITECTURE.md full β€” implementation guidance
3. Read SCHEMA.md full β€” validation requirements
4. Read MCP_TOOLS.md full β€” API contract
5. Read IMPORT_MODEL.md if working on import tools
6. Start Wave 0 Brief implementation (CTO Chat provides)

For founder using GoBP through AI

No reading required. Just talk to your AI agent. If your AI has GoBP MCP access, it will:

  • Remember past sessions
  • Recall decisions you've made
  • Preserve your ideas with their original wording
  • Reference existing docs without re-reading them
  • Work across Claude/Cursor/Qodo/etc. with shared memory

πŸ› οΈ Installation (Development)

Prerequisites

  • Python 3.10 or higher
  • Git
  • A virtual environment tool (venv ships with Python)

Setup

git clone https://github.com/mihos3506/GoBP.git
cd GoBP

# Create and activate virtual environment
python -m venv venv

# Windows
.\venv\Scripts\Activate.ps1

# macOS/Linux
source venv/bin/activate

# Install in editable mode with dev dependencies
pip install -e .
pip install -r requirements-dev.txt

# Verify
python -c "import gobp; print(gobp.__version__)"
# Should print: 0.1.0

# Run smoke tests
pytest tests/test_smoke.py -v

After Wave 0, the package is importable but has no functionality yet. Functionality begins in Wave 1.

✨ What Works After Wave 5

GoBP v1 tool surface is now complete. Available via MCP:

Read tools (7):

  • gobp_overview β€” project orientation
  • find β€” search nodes
  • signature β€” minimal node summary
  • context β€” node + relations + decisions
  • session_recent β€” recent sessions
  • decisions_for β€” decisions by topic or node
  • doc_sections β€” document sections

Write tools (3):

  • node_upsert β€” create/update any node type
  • decision_lock β€” lock a Decision with verification
  • session_log β€” start/update/end session

Import tools (2):

  • import_proposal β€” AI proposes batch import (pending)
  • import_commit β€” commit approved proposal atomically

Maintenance (1):

  • validate β€” full graph schema + reference check
  • lessons_extract β€” proposes lesson candidates from graph/session patterns

All 14 tools documented in docs/MCP_TOOLS.md.

AI Usage Pattern

  1. AI connects β†’ calls gobp_overview() to orient
  2. AI searches with find(), reads with context()
  3. AI starts session with session_log(action='start')
  4. Founder brainstorms β†’ AI calls node_upsert(type='Idea', ...)
  5. Founder confirms β†’ AI verifies β†’ decision_lock(...) with locked_by=[CEO, AI]
  6. Session ends β†’ session_log(action='end', outcome=...)

See docs/INPUT_MODEL.md for detailed usage patterns.

πŸ”Œ Connect an AI Client (MCP)

GoBP exposes data to AI clients via Model Context Protocol (MCP). Any MCP-capable client can connect.

Quick setup for Cursor IDE

Create .cursor/mcp.json in your project:

{
  "mcpServers": {
    "gobp": {
      "command": "python",
      "args": ["-m", "gobp.mcp.server"],
      "cwd": "${workspaceFolder}",
      "env": {
        "GOBP_PROJECT_ROOT": "${workspaceFolder}"
      }
    }
  }
}

Restart Cursor. The AI can now call GoBP tools like gobp_overview, find, context.

Other clients

See examples/mcp_configs/ for example configurations for:

  • Cursor IDE
  • Claude Desktop
  • Claude Code CLI
  • Continue.dev

See docs/MCP_TOOLS.md for the complete list of available tools.


πŸ“ Core Concepts in 60 Seconds

Node

A unit of knowledge. Can be a feature, an idea, a decision, a session record, a document pointer, or a lesson.

Edge

A connection between 2 nodes. 5 types: relates_to, supersedes, implements, discovered_in, references.

Layer

GoBP has no layers. Everything is 1 graph. Some node types are "ideas" (brainstorm), some are "knowledge" (locked), some are "memory" (sessions/lessons). They all live together and link to each other.

Storage

Files in .gobp/ folder at project root. One markdown file per node, with YAML front-matter. Committed to git like .git/.

API

MCP server exposes 12 tools. AI agents call these tools via JSON-RPC over stdio. Tools are typed, validated, and size-bounded.

Writes

Human doesn't write. AI writes on human's behalf. Decisions require verification. Ideas are auto-captured from conversation. History is append-only.


πŸ› οΈ Project Status

Current: Pre-Wave 0. Foundational docs written. Repo to be initialized. Code not yet started.

Wave 0 target: Repo init + schema files + templates + first commit.

v1 ship target: 8 waves, 2-3 weeks, functional MCP server + CLI + import for MIHOS test case.

Milestones:

  • Wave 0: Repo init, schema, templates
  • Wave 1: Core engine (Python lib)
  • Wave 2: File storage + parser
  • Wave 3: MCP server (read tools)
  • Wave 4: CLI basics
  • Wave 5: MCP server (write tools)
  • Wave 6: CLI advanced
  • Wave 7: Documentation + install
  • Wave 8: MIHOS integration test

πŸ”Œ Integration Examples

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "gobp": {
      "command": "python",
      "args": ["path/to/gobp/mcp/server.py"],
      "env": {
        "GOBP_PROJECT_ROOT": "path/to/your/project"
      }
    }
  }
}

Claude CLI

claude mcp add gobp -- python path/to/gobp/mcp/server.py

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or equivalent:

{
  "mcpServers": {
    "gobp": {
      "command": "python",
      "args": ["path/to/gobp/mcp/server.py"]
    }
  }
}

πŸ“– Design Decisions

Key decisions locked for v1:

# Decision Why
1 File-first, not database Portability, git-friendly, AI-agnostic
2 6 node types, 5 edge types Minimum viable, extensible
3 12 MCP tools Cover 4 pains without bloat
4 Python + mcp SDK + pyyaml Match existing MCP ecosystem
5 Human doesn't write, AI writes Remove friction from capture
6 Append-only history Prevent knowledge loss
7 Domain-agnostic core + extensions Reusable across projects
8 Single-project scope Not global knowledge base
9 CΓ‘ch B β€” internal-first, product later Ship for founder, polish public later

Details in each doc.


🧠 Philosophy

GoBP is built on a simple observation:

The most expensive resource in a solo-founder AI-augmented project is founder attention. Every minute spent re-explaining context to AI is a minute not building. GoBP eliminates re-explanation.

Secondary observation:

AI context windows are cheap but not infinite. Loading 60K tokens of docs to code 1 feature is wasteful. GoBP reduces context cost by 50-100x.

Everything in GoBP serves these two truths.


❓ FAQ

Q: Is GoBP a replacement for Notion/Obsidian/Roam? A: No. Those are for humans. GoBP is for AI. Humans don't read GoBP directly.

Q: Does GoBP store code? A: No. GoBP stores spec, ideas, decisions, sessions, lessons. Code lives in src/. GoBP references code via Document nodes pointing to README files.

Q: Can I use GoBP with ChatGPT? A: Only if ChatGPT has MCP support (as of 2026-04-14, unclear). Otherwise, you need an MCP-capable AI (Claude, Cursor, etc.).

Q: Is it multi-user? A: No, v1 is single-project-owner. Multi-AI OK, multi-human not yet.

Q: What if I want to edit a node manually? A: You can open the markdown file and edit. GoBP will pick up changes. But AI won't know you changed it β€” you might get conflicts next write. Better to ask AI to make the change for you.

Q: How do I debug when AI writes wrong info to GoBP? A: Open the node file in .gobp/nodes/. Read the YAML front-matter. History log in .gobp/history/ shows who wrote what when.

Q: Can I export GoBP data? A: It's already exported β€” files are in .gobp/. Copy the folder, it's portable.

Q: What's the license? A: Not decided yet. Repo is private or pre-release until founder decides.


πŸ—ΊοΈ Roadmap

v1 (current):

  • 6 node types
  • 5 edge types
  • 12 MCP tools
  • File-first storage
  • SQLite index
  • Python + CLI + MCP server
  • MIHOS integration

v2 (maybe, if v1 useful):

  • File watcher for live reload
  • Web UI for visualization
  • LLM-powered node suggestions
  • Plugin system for custom types
  • Multi-project support
  • Export formats (GraphML, JSON, etc.)

v3+ (speculative):

  • Multi-user collaboration
  • Cloud sync
  • Real-time co-editing
  • Public knowledge sharing

πŸ“ License

TBD. See CHARTER.md for current status.


πŸ™ Credits

  • MIHOS project β€” first real test case, source of pain discovery
  • MCP Protocol (Anthropic) β€” the foundation enabling AI-agnostic knowledge access
  • mcp_server.py M1 β€” reference implementation pattern
  • Lessons from MIHOS workflow v2 rebuild sessions (2026-04-12 to 2026-04-14)

GoBP β€” Graph of Brainstorm Project Built for solo founders who use AI to build things 2026-04-14

β—ˆ

About

Graph-based knowledge store for AI dev teams. Shared memory across Cursor, Claude, Qodo via MCP.

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors