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, Secret Guard, AI Memory Sync via Google Drive, and Antigravity IDE MCP Integration into a single cohesive operating framework.
Core principle: Git = code only. Google Drive = AI memory only. Secrets go nowhere.
| Feature | Summary |
|---|---|
| π‘οΈ Secret Guard | devmind scan + a git pre-push hook block pushes that contain API keys, passwords, tokens, private keys, .env files, DB dumps, or AI chat history. Works for humans and AI agents. |
| βοΈ AI Memory Sync (Google Drive) | devmind memory push/pull syncs chat history, session summaries, Claude auto-memory, and resumable Claude transcripts between machines (e.g. office PC β home PC). |
| π One-click "Connect Google Drive" | The VS Code extension installs rclone (no sudo, SHA256-verified), opens the Google login, and verifies access. It uses the drive.file scope only. |
| π§© Auto-installed AI skills | The VSIX bundles the secret-guard skill and writes it into every project's .agents/skills/ and .claude/skills/ on activation. |
| π§± Stack profiles | profiles/*.yaml (Frappe, Laravel, Django, FastAPI, Next.js, React, Node, Generic) choose which ECC skills, agents, and rules each project gets. Nested Frappe apps are auto-detected. |
| π Antigravity IDE support | rebuild-and-install.sh now also installs the VSIX into Antigravity IDE. |
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)<br/>+ Git hooks: post-commit memory queue & pre-push Secret Guard"]
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. Apply Stack Profile (profiles/*.yaml): Domain Rules, ECC Skills & DevMind Skills (secret-guard)<br/>+ Claude Code SessionEnd hook (auto-push AI memory)"]
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) | |
| βββ π Connect Google Drive | +--------------------------------------------+ |
| βββ β¬ Push / β¬ Pull Memory | |
| βββ π Sync All Projects | |
| βββ π Chat History | |
| βββ decisions.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% βοΈ Synced 5 min ago (click: Push/Pull/Sync menu) |
+---------------------------------------------------------------------------------------+
Extension features at a glance:
- Status bar:
$(brain)shows the Engineering Score. βοΈ shows memory sync state: yellow means Connect Google Drive, red means the last sync failed. - Auto memory sync: pulls when a project opens, pushes every 30 minutes, and pushes when the window closes. Configure it with these settings:
devmind.memory.autoPullOnStartupdevmind.memory.autoPushMinutesdevmind.memory.pushOnClose
- Auto skill install: writes
secret-guardinto.agents/skills/and.claude/skills/of every open folder.- Files with
origin: DevMindand an olderversion:are updated. - Customised copies (
origin: custom) are never touched. - Manual command:
DevMind: Install AI Skills.
- Files with
- Smart CLI selection: if a project's
bin/devmindcopy is too old for a feature, the extension falls back to~/.local/bin/devmind.
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 status |
Checks staleness of local files, the Graphify graph, and the context manifest. |
devmind sync |
Automatically updates Graphify graph, HTML visualizer, and intelligence docs, then processes the queue. |
devmind queue "<task>" |
Queues a commit/task event (used by the post-commit hook) for the next sync. |
devmind plan "<task>" |
AI Task Planner: affected modules, risk level, required database tables & tests. |
devmind debug "<issue>" |
AI Debugger combining Git Blame, Git Bisect, and the Knowledge Graph. |
devmind why <file> |
File Intelligence: purpose, ownership, graph edges, and history. |
devmind regression [good] [bad] |
Automated Git Bisect regression suite. |
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 scan [--staged|--pre-push|--range A..B|--all] |
π‘οΈ Secret Guard: finds secrets & sensitive files. Exit code 1 blocks the commit/push. |
devmind memory connect |
βοΈ One-step Google Drive connection (installs rclone, browser login, verifies). |
devmind memory push / pull / sync |
Upload / download / both: AI memory, chat history, Claude memory & transcripts. |
devmind memory sync-all |
Pull + push every project registered on this machine. |
devmind memory status [--json] |
Shows remote, machine name, session count, and last push/pull/error. |
devmind memory capture / index |
Turns Claude sessions into redacted summaries / rebuilds chat-history.md. |
devmind memory setup --remote <r> --machine <name> |
Uses a custom rclone remote or a plain folder instead of the default Drive remote. |
devmind memory disconnect |
Removes the Drive connection on this machine (Drive files are kept). |
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.chat-history.md: Auto-generated index of previous AI sessions from all machines, newest first. AI agents read this before starting work. It is rebuilt locally and never synced or committed.sessions/YYYY-MM-DD_<machine>_<id>.md: One redacted summary per Claude Code session: requests, files changed, commands, final outcome, and the full conversation.docs/adr/: Sequential Architecture Decision Records (e.g.,001-initial-architecture.md).
.devmind/is gitignored in projects. Memory travels between machines through Google Drive, never through git.
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.
Work at the office, continue at home, and your AI keeps its context. DevMind syncs memory only to Google Drive. Code stays in git.
flowchart LR
subgraph Office["πΌ office-pc"]
O1[".devmind/memory/"]
O2["~/.claude/projects/<path>/*.jsonl<br/>+ memory/*.md"]
end
subgraph Drive["βοΈ Google Drive: DevMind-Memory/<git-remote-key>/"]
D1["sessions/ Β· decisions.md β¦"]
D2["transcripts/*.jsonl.gz"]
D3["claude-memory/*.md"]
end
subgraph Home["π home-pc"]
H1[".devmind/memory/ + chat-history.md"]
H2["~/.claude/projects/<home path>/ β /resume"]
end
O1 -- "push (redacted)" --> D1
O2 -- "push (redacted, gzip)" --> D2
O2 -- "push (MEMORY.md merged)" --> D3
D1 -- pull --> H1
D2 -- "pull (paths rewritten)" --> H2
D3 -- "pull (merged)" --> H2
| Data | Format | Local location | On Drive | Purpose |
|---|---|---|---|---|
| DevMind memory & session summaries | Markdown | .devmind/memory/ |
<project>/ |
Context for any AI agent |
| Claude Code transcripts | JSONL (gzip) | ~/.claude/projects/<path>/<id>.jsonl |
<project>/transcripts/ |
Continue a session at home with /resume |
| Claude Code auto-memory | Markdown | ~/.claude/projects/<path>/memory/ |
<project>/claude-memory/ |
Facts Claude remembers about you/the project |
| Claude login & config | JSON | ~/.claude.json, .credentials.json |
β never | Contains your login token |
- Project identity from the git remote URL.
/var/www/html/sundoraand~/projects/sundoramap to the same Drive folder (github.com_invento-pos_sundora). - No overwrites between machines.
- Each machine names its session files after itself (
2026-11-05_office-pc_dc9b703e.md). rclone copy --updatenever deletes anything.MEMORY.mdis merged line by line.- Locally changed transcripts are kept and reported as "kept local".
- Each machine names its session files after itself (
- Paths rewritten. Transcripts pulled on another machine get the local checkout path, so
/resumeworks. - Redaction before upload.
- API keys, tokens, passwords, DB URLs and e-mail addresses become
[REDACTED:<rule>]. - Raw API payloads are dropped.
- The push is blocked if any memory file still contains a secret.
- API keys, tokens, passwords, DB URLs and e-mail addresses become
- Least privilege. The Google token uses the
drive.filescope, so DevMind can only see files it created itself. - Nothing in the repo. Transcripts are staged in
~/.cache/devmind/transcripts/, never in the project directory.
- In VS Code/Antigravity, click βοΈ Connect Google Drive. It's in the status bar and in the sidebar under π§ Project Memory.
- Enter a machine name (
office-pc,home-pc, β¦). - Sign in to Google in the browser and click Allow.
CLI equivalent: devmind memory connect --machine office-pc.
What happens behind the scenes:
rcloneis installed to~/.local/binif missing. The official release is SHA256-verified and no sudo is needed.rclone authorize driveruns the OAuth flow.- The token is saved as the dedicated remote
[devmind-gdrive]in~/.config/rclone/rclone.conf(mode600). DevMind-Memory/is created and verified.- The config is stored in
~/.config/devmind/memory.json.
Automatic sync after connecting:
- VS Code: pull on open, push every 30 min, push on close.
- Claude Code: a
SessionEndhook in.claude/settings.local.jsonpushes when a session ends.
β οΈ Known limitation: rclone's shared Google client ID is being retired during 2026. Plan to switch to your own Google Cloud OAuth client ID to keep sync working.
A git pre-push hook runs devmind scan --pre-push on every push and blocks it when the commits being pushed contain sensitive data. It applies to developers and AI agents alike. The bundled secret-guard skill tells AI agents to scan before pushing, fix findings properly, and never bypass the hook.
| Detects | Examples |
|---|---|
| Tokens & keys | AWS, GitHub, Anthropic, OpenAI, Stripe live, Braintree production, Slack, Google API/OAuth, Shopify, JWT, private key blocks |
| Credentials | Hard-coded password/secret/api_key/token assignments (incl. CodeIgniter $db['default']['password']), DB URLs with passwords |
| Sensitive files | .env* (except .example/.sample/.template/.dist), *.pem/*.key/*.p12/*.pfx, SSH keys, credentials.json, service-account JSON, .htpasswd, DB dumps (> 1 MB .sql, .dump, .bak) |
| AI memory | .devmind/memory/sessions/, chat-history.md, raw Claude transcripts |
Low noise by default. Placeholders, env()/getenv() calls, Laravel validation rules, translation files and vendored test fixtures are ignored. High-confidence token patterns still apply everywhere. Findings are shown masked (sk_l***).
False positives:
- Add a
devmind:allow-secretcomment on the line, or - Add a path glob or
regex:<pattern>line to.secretscanignoreat the repo root.
Manual checks:
devmind scan --staged: before a commit.devmind scan --range @{u}..HEAD: before a push.devmind scan --all: audit every tracked file.
One-time bypass (humans only, after checking the findings): DEVMIND_SKIP_SECRET_SCAN=1 git push.
If a real key was ever pushed, rotate it at the provider. Removing it from git history does not undo the exposure.
The setup script detects the stack and applies a profile that lists which ECC skills, agents, and rules to link into .agents/ and .claude/. Available profiles:
frappelaraveldjangofastapinextjsreactnodegeneric
Frappe apps are detected even when nested inside a bench (up to 4 levels deep). The Frappe skills repository is integrated automatically.
- Forbidden Actions: No committing secrets, no force-pushing, no modifying core framework files, no commenting out failing tests, no committing AI memory (
.devmind/memory/), no bypassing the Secret Guard (--no-verify). - Before Changing Code: Read the latest entries in
.devmind/memory/chat-history.md, then do the 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. It also installs these hooks:
- the post-commit memory hook
- the pre-push Secret Guard hook
- the Claude Code
SessionEndmemory hook
Projects set up before the Secret Guard release keep an old
bin/devmindcopy. Re-run./setup-ai-project.shon them to getdevmind scan/devmind memoryand the pre-push hook.
./rebuild-and-install.shThis rebuilds the VSIX and installs it into VS Code, Cursor, and Antigravity IDE, whichever are found. Then run Developer: Reload Window so the new version loads.
Manual build & install
cd vscode-extension
npm install
npm run compile
npx @vscode/vsce package --no-dependencies
code --install-extension devmind-vscode-1.0.0.vsix # or: cursor / antigravity-ide --install-extension β¦Click βοΈ Connect Google Drive in the status bar, or run devmind memory connect --machine <name>. Repeat once on each machine with a different machine name.
python3 -m unittest tests/test_secret_scan.py tests/test_memory_sync.pyThe tests cover Secret Guard detection and false positives, pre-push ranges, two-machine memory sync with a folder backend, redaction, transcript /resume import with path rewriting, conflict handling, Claude memory merging, and the rclone token parser.
