An intelligent, developer-friendly AI Engineering Operating System & Unified CLI Tool (devmind). It unifies Everything Claude Code (ECC), Graphify Knowledge Graphs, Specialized Agent Personas, Operational Workflows, Git & Database Intelligence, Project Memory Layer, ADR Management, and Antigravity IDE MCP Integration into a single cohesive operating framework.
flowchart TD
Start(["βΆ Start: ./setup-ai-project.sh [DIR]"]) --> Step1["1. Validate Target Project Directory"]
subgraph Phase1 ["Phase 1: System-Level Dependency & CLI Installation"]
Step1 --> Step2{"2. Verify System Tools, DevMind CLI & ECC Repo<br/>(git, curl, python3, node, uv, graphify, devmind, ECC)"}
Step2 -- "Missing" --> AutoInstall["Auto-Install Missing Tools & CLI to ~/.local/bin/devmind"]
Step2 -- "Ready" --> Phase2
AutoInstall --> Phase2
end
subgraph Phase2 ["Phase 2: Intelligent Stack & Context Extraction"]
Phase2 --> Step3["3. Detect Project Stack (Laravel, CodeIgniter, Frappe, Django, Node, React, etc.)"]
Step3 --> Step4["4. Detect Test Suite & Database Architecture"]
Step4 --> Step5["5. Generate Intelligence Docs & Memory (.devmind/memory/, docs/adr/, DATABASE.md, ARCHITECTURE.md, SECURITY.md)"]
end
subgraph Phase3 ["Phase 3: Agent Framework & Rule Mapping"]
Step5 --> Step6["6. Generate Specialized Agents (.agents/agents/)"]
Step6 --> Step7["7. Generate Operational Workflows (.agents/workflows/)"]
Step7 --> Step8["8. Generate Domain Rules & Symlink ECC Skills (.agents/rules/, .agents/skills/)"]
Step8 --> Step9["9. Create Master Operating Manual (.agents/AGENTS.md)"]
end
subgraph Phase4 ["Phase 4: Knowledge Graph, MCP & CLI Diagnostics"]
Step9 --> Step10["10. Build Graphify Graph & HTML Visualizer + Configure Antigravity MCP"]
Step10 --> Step11["11. Run devmind doctor & Engineering Score (0-100%)"]
end
Step11 --> End(["β
Setup Complete: DevMind CLI & AI Pair Programming Ready"])
sequenceDiagram
autonumber
actor User as Developer / AI Agent
participant VSCode as VS Code Extension
participant CLI as DevMind CLI Engine
participant Graphify as Graphify & AST Parser
participant Webview as Interactive HTML Webview
User->>VSCode: Right-Click File -> "DevMind: File Impact Analysis"
VSCode->>CLI: Execute `devmind impact <file_path>`
CLI->>Graphify: Query graph.json (Downstream consumers & Upstream dependencies)
CLI-->>VSCode: Terminal output (Matched node, dependents, upstream imports)
VSCode->>Webview: Launch `DevMindGraphWebview` with query focus
Webview-->>User: Interactive Vis.js 2D Knowledge Graph filtered & focused on node
DevMind
β
ββββββββββββββββββΌβββββββββββββββββ
β β β
βΌ βΌ βΌ
Graphify Git Intel ADR System
β β β
β β ββββββββ΄βββββββ
β β β β
β β API AI Agent AI
β β β β
β β ββββββββ¬βββββββ
β β β
ββββββββββββββββββΌβββββββββββββββββ
βΌ
Project Memory
β
βΌ
AI Coding Agent
The native DevMind VS Code Extension (devmind-vscode) integrates AI intelligence directly into your IDE layout:
+------------------------------------+--------------------------------------------------+
| VS CODE ACTIVITY BAR | EDITOR & INTERACTIVE GRAPH WEBVIEW |
+------------------------------------+--------------------------------------------------+
| [DevMind OS Sidebar] | [graphify-out/graph.html] |
| | +--------------------------------------------+ |
| π©Ί System Health & Score | | π§ DevMind Knowledge Graph v2.0 [Search] | |
| βββ Engineering Score: 89% | | | |
| βββ Run Doctor Diagnostics | | (Node A) ---> [Target File] ---> (Node B) | |
| βββ Sync AI Context | | | | |
| | | v | |
| π§ Project Memory | | (Node C) | |
| βββ decisions.md | +--------------------------------------------+ |
| βββ known-issues.md | |
| βββ project-history.md | OUTPUT CHANNEL: [DevMind OS] |
| | ============================================ |
| π Architecture Decisions (ADRs) | Target Symbol/File: setup-ai-project.sh |
| βββ + Create New ADR | Matched Node: setup-ai-project.sh |
| βββ 001-initial-arch.md | Direct Consumers: |
| | βββ setup_ai_project_build_graphify_graph |
| π Knowledge Graph & Impact | ============================================ |
| βββ Graphify Index: Active | |
| βββ Open Interactive Graph | |
| βββ Analyze File Impact... | |
+------------------------------------+--------------------------------------------------+
| STATUS BAR: $(brain) DevMind: 89% (Click to run Doctor diagnostics) |
+---------------------------------------------------------------------------------------+
The devmind CLI tool provides full control over AI context, task planning, dependency impact, security auditing, and project memory:
| Command | Description |
|---|---|
devmind doctor |
Runs 8-dimensional diagnostic suite & calculates Engineering Score (0β100%). |
devmind sync |
Automatically updates Graphify graph, HTML visualizer, and intelligence docs. |
devmind plan "<task>" |
AI Task Planner: affected modules, risk level, required database tables & tests. |
devmind impact <file> |
Impact Analysis: dependency resolution & downstream/upstream consumers. |
devmind blame <file> |
Git Intelligence: commit history, author changes, and change rationale. |
devmind audit security |
Security Scanner: secret detection, SQLi, XSS, OWASP checks, and security score. |
devmind db analyze |
Database Intelligence v2: table relationships, foreign keys, missing indexes. |
devmind review |
AI Code Review Bot inspecting uncommitted git diff. |
devmind adr create "<title>" |
Creates a new Architecture Decision Record in docs/adr/. |
devmind adr list |
Lists existing Architecture Decision Records. |
devmind infra audit |
Audits production infrastructure (Nginx, PHP-FPM, Docker, Redis, MariaDB). |
DevMind maintains a long-term engineering memory so AI agents never repeat past mistakes:
decisions.md: Architectural & technical design choices.known-issues.md: Active technical debt & known bugs.failed-attempts.md: Past technical approaches that failed and rationale.project-history.md: System evolution log.docs/adr/: Sequential Architecture Decision Records (e.g.,001-initial-architecture.md).
You can manually scope DevMind CLI actions (like sync, diagnostics, and knowledge graphs) to specific nested sub-repositories or folders (e.g., app/mycustom_app in Frappe/monorepos). Set this via the Target Repo setting in the VS Code extension sidebar or using the devmind.selectDirectory command.
When creating an ADR (devmind adr create "<title>"), DevMind automatically drafts its contents (Context, Decision, and Consequences) using a dual-automation strategy:
- Direct API Integration: If environment keys (
GEMINI_API_KEY,OPENAI_API_KEY,DEEPSEEK_API_KEY, orANTHROPIC_API_KEY/CLAUDE_API_KEY) are present, the CLI queries the LLM directly via a lightweight request, feeding it the relevantgit diffor commit context. - Coding Agent Auto-Population: If no keys are set but you are working inside an AI coding agent (like Antigravity, Claude Code, or Cursor), the CLI writes a
<!-- DEVMIND_PENDING_ADR_AI_POPULATION -->marker and prints a visible terminal directive. The active agent intercepts this and automatically populates the ADR contents based on the git changes.
- Forbidden Actions: No committing secrets, no force-pushing, no modifying core framework files, no commenting out failing tests.
- Before Changing Code: Mandatory search, Graphify dependency check, and implementation plan creation.
- After Changing Code: Test execution,
git diffreview, anddevmind sync.
====================================================
DEVMIND ENGINEERING SCORE & DIAGNOSTICS
====================================================
AI Context [ββββββββββββββββββββ] 95%
Architecture [ββββββββββββββββββββ] 90%
Testing [ββββββββββββββββββββ] 85%
Security [ββββββββββββββββββββ] 90%
Documentation [ββββββββββββββββββββ] 95%
Database [ββββββββββββββββββββ] 90%
Code Quality [ββββββββββββββββββββ] 88%
Infrastructure [ββββββββββββββββββββ] 82%
----------------------------------------------------
Overall DevMind Engineering Score: 89% / 100% π
====================================================
./setup-ai-project.sh /path/to/projectThis automatically verifies/installs Node.js, Python 3, uv, Graphify (uv tool install "graphifyy[gemini]"), Everything Claude Code, and the devmind CLI.
cd vscode-extension
npm install
npm run compile
npx @vscode/vsce package --no-dependenciescode --install-extension devmind-vscode-1.0.0.vsix