devbase
Offers comprehensive Git repository management through MCP tools including scanning, health checking, batch synchronization with safe policies, querying repository status, and integration with Git operations for local codebases.
Provides MCP tools for querying GitHub metadata including stars information, tracking stars history with caching and TTL refresh, and managing repository synchronization with remote GitHub repositories through safe sync policies.
Integrates with Obsidian-compatible vault note system through MCP tools for searching, reading, writing, and managing backlinks of notes in PARA structure, allowing AI agents to access and manipulate knowledge base content.
devbase
Bimodal Developer Workspace OS
One dashboard for humans. One API for agents.
devbase is a local-first bimodal workspace OS: it serves as both a multi-repo TUI dashboard designed for human developers and a structured codebase knowledge gateway for AI agents. In an era where AI cannot recognize your GUI or perceive your local file system, devbase is the sole gateway for AI to understand your local codebase.
Overview
Who are you | What devbase does for you |
Human Developer |
|
AI Agent | Calls |
Related MCP server: auxly-memory-cli
Bimodal Architecture
┌─────────────────────────────────────────────────────────────┐
│ devbase │
│ Bimodal Developer Workspace OS │
├─────────────────────────────┬───────────────────────────────┤
│ Human Layer │ AI Layer │
│ (人类交互层) │ (智能体接口层) │
│ │ │
│ ┌─────────────────────┐ │ ┌─────────────────────┐ │
│ │ TUI Dashboard │ │ │ MCP Server │ │
│ │ 终端交互仪表盘 │ │ │ 17 Tools │ │
│ │ │ │ │ stdio / SSE │ │
│ │ • 多仓库健康总览 │ │ │ │ │
│ │ • 跨仓库代码搜索 / │ │ │ • devkit_scan │ │
│ │ • Stars 趋势图 │ │ │ • devkit_health │ │
│ │ • AI 洞察面板 │ │ │ • devkit_sync │ │
│ │ • 智能同步建议 │ │ │ • devkit_query_repos│ │
│ │ • gitui/lazygit 启动 │ │ │ • devkit_code_metrics│ │
│ │ │ │ │ • devkit_module_graph│ │
│ └─────────────────────┘ │ │ • devkit_natural... │ │
│ │ └─────────────────────┘ │
│ 一眼看遍所有仓库状态 │ 让 AI 拥有本地代码库的 │
│ 批量操作 + 深度集成 │ 结构化世界观 │
├─────────────────────────────┴───────────────────────────────┤
│ Data Layer │
│ (数据与引擎层) │
│ │
│ Filesystem (Source of Truth) │ SQLite (Lightweight Index) │ Tantivy (Search)
─────────────────────────────────────────────────────────────
vault/ • repos.toml • assets/ registry.db search-index/│
│ │
│ • Git 仓库 + 标记目录的自动发现与持久化 │
│ • Vault 笔记系统(PARA 结构,Obsidian 兼容) │
│ • Stars 历史缓存 (趋势图数据源) │
│ • 代码统计 (tokei) + 模块图 (cargo metadata) │
│ • 安全同步策略 (Mirror / Conservative / Rebase / Merge) │
│ • 操作审计日志与 schema 迁移快照 │
└─────────────────────────────────────────────────────────────┘TUI Features (Human Mode)
Terminal interface based on ratatui, designed for multi-repo scenarios:
Key | Function |
| Navigate repo list |
| Quick page scroll |
| Jump to top/bottom of list |
| Cross-repo code search — Tantivy semantic search / ripgrep code search ( |
| Launch gitui / lazygit for deep single-repo operations (auto-detects and suspends/resumes terminal) |
| Generate Safe Sync Preview (dry-run) |
| Execute safe sync |
| Tag selected repo |
| Toggle sort mode: Status ↔ Stars |
| Switch detail panel tabs: Overview ↔ Health ↔ Insights |
| Refresh repo list |
| Show shortcut help popup |
| Quit / Close popup |
TUI Panels
Left 35%: Repo list, status icons (⏳ Loading / ● dirty / ◆ diverged / ▼ behind / ▲ ahead / ✓ clean / ○ no remote)
Right 65%: Three-tab detail panel
Overview: Git status, HEAD, SyncPolicy, tags, language, upstream, last sync
Health: Full health report (dirty / detached / diverged / ahead / behind)
Insights: AI-powered insights + Stars Trend Sparkline (history of last 30 fetches)
MCP Tool Matrix (AI Mode)
Standardized interface based on Model Context Protocol. Supports both stdio (local process communication) and SSE (HTTP streaming) modes.
Tool | Function | Example Query |
| Scan directory and register workspace | "Scan ~/projects" |
| Health check (all repo statuses) | "Which local projects need syncing?" |
| Batch sync (dry-run default) | "Preview what happens if I sync these repos" |
| Structured query (language/tag/status) | "List all dirty Rust projects" |
| Code statistics (lines, files, language) | "What is my largest project?" |
| Rust module/target structure | "What binary targets does devbase have?" |
| Natural language query | "show dirty rust repos with more than 100 stars" |
| Index repo summaries and module structure | "Generate knowledge index for all repos" |
| Knowledge base search (tantivy) | "Search for knowledge about sync policy" |
| Add note to repo | "Add a note to the devbase project" |
| Generate daily knowledge digest | "Generate today's knowledge digest" |
| Query GitHub metadata | "How many stars does the devbase project have?" |
| Index PDF papers | "Index ~/papers directory" |
| Log experiment runs | "Log the configuration for this experiment" |
| Search Vault notes | "Search for notes about API design" |
| Read Vault note content | "Read 01-Projects/devbase.md" |
| Create/update Vault note | "Create a new note about refactoring" |
| Query note backlinks | "Which notes link to devbase?" |
| Unified project context | "Get the full panorama of repo + vault + assets for devbase" |
AI Assistant Integration Guide
Why devbase?
Not a replacement, but a connection
Tool | Positioning | devbase Role |
lazygit | Single-repo TUI, manual operation | devbase is the multi-repo gateway—before lazygit, it tells you "which repos need attention," press |
gitui | Lightweight Rust TUI | devbase's deep operation partner—after batch management, fine-grained operations are handled by gitui |
5ire / Claude Code | AI assistant, conversational coding | devbase is the codebase knowledge source—gives AI structured context of your local workspace, no more "blind men feeling an elephant" |
GitHub Desktop | GUI Git client | devbase is the TUI alternative—30x lighter, SSH-ready, supports batch operations |
GitHub / GitLab | Remote code hosting | devbase is the local mirror manager—batch manages remote sync, auto-protects dirty/diverged states |
AI cannot recognize your GUI
Your IDE, file manager, and even lazygit's interface are black boxes invisible to AI. devbase uses an MCP Server to translate the status, structure, and health of your local codebase into structured data that AI can understand—this is the infrastructure for AI to intervene in local development workflows.
Safe Sync Policy
devbase's sync is not a blunt git pull --all, but a tiered safe policy:
Policy | Behavior | Use Case | TUI Color |
Mirror | Fetch only, never modify local branches | Reference repos, 3rd-party deps | 🔵 Blue |
Conservative | Fast-forward only, auto-skip diverged | Daily dev, safety first | 🟡 Yellow |
Rebase | Auto-rebase local commits to remote | Personal branches, keep linear history | 🟢 Green |
Merge | Auto-merge remote changes | Collaborative branches, accept merge history | 🟣 Magenta |
Pre-sync auto-checks: dirty workspaces, diverged branches, and protected branches are skipped and logged to OpLog, ensuring your work is never destroyed.
Smart Sync Suggestions: In the Sync Preview popup, AI-generated suggestions appear below each repo, e.g.:
→ Safe to fast-forward 3 commit(s)→ Working tree dirty — commit or stash before sync→ Diverged (2 ahead, 3 behind) — switch to Rebase/Merge policy
Feature List
Workspace Scanning & Registration: Auto-discover Git repos and non-Git workspaces marked by
SOUL.md/MEMORY.md/.devbase, persisted in SQLiteGitHub Stars Tracking: Display, cache, TTL refresh, historical trend charts
Code Statistics: Integrated
tokeifor lines of code, file counts, language distribution (calculated during scan)Rust Module Graph: Extract bin/lib/test targets via
cargo metadataHealth Check: Track Git repo dirty/ahead/behind, plus blake3 hash snapshot change detection for non-Git workspaces
Knowledge Digest: Generate daily briefings based on repo health and summaries
TUI Interface:
Multi-repo health overview, tag clustering, Stars sorting
Cross-repo code search
/AI Insights panel
Stars Trend sparkline
One-click launch of gitui/lazygit
Smart sync suggestions
MCP Server: 19 tools (including 5 vault tools), stdio / SSE dual transport
Natural Language Query: AI can query repos via natural language ("dirty rust repos with more than 100 stars")
Registry Backup:
export/import/backups/clean, auto-snapshot before schema migrationOperation Log (OpLog):
scan/sync/healthauto-logged for auditabilityi18n: Chinese / English bilingual support
Data Tiering:
public/cooperative/privatelevels to control sync boundaries
Quick Start
Installation
One-click install (Recommended)
# Windows
irm https://raw.githubusercontent.com/juice094/devbase/main/scripts/install.ps1 | iex
# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/juice094/devbase/main/scripts/install.sh | bashBuild from source
cargo install --path .
# 或未来从 crates.io
# cargo install devbaseInitialization
# 扫描并注册当前目录下的所有工作区(Git + 非 Git)
devbase scan . --register
# 查看工作区健康状态
devbase health --detail
# 批量同步全部仓库(fetch-only)
devbase sync
# 生成知识日报
devbase digestTUI
# 启动 TUI 仪表盘
devbase tuiCommon keys:
↑/↓Navigate repos/Cross-repo code searchEnterLaunch gitui/lazygit (if installed)sPreview syncSExecute synctTagoToggle sort (Status ↔ Stars)rRefreshqQuit
MCP Server
# stdio 模式(本地 AI 助手,如 Claude Desktop / 5ire / Cursor)
devbase mcpClaude Desktop Configuration (claude_desktop_config.json):
{
"mcpServers": {
"devbase": {
"command": "devbase",
"args": ["mcp"]
}
}
}Cursor Configuration (~/.cursor/mcp.json): Same as above.
Current MCP only supports stdio transport. SSE remote mode is planned for future versions.
Other CLI Commands
# 查看操作日志
devbase oplog --limit 20
# 导出 registry 备份
devbase registry export --format json
# 导入备份
devbase registry import backup-20260101.dbNon-Git Workspace Support
devbase manages not only Git repos but also any marked directory:
Marker File | Workspace Type | Change Detection |
|
|
|
|
| blake3 hash snapshot |
|
| blake3 hash snapshot |
Competitive Analysis
devbase is not a Git client or an AI coding assistant, but the infrastructure connecting the two.
Competitor | Category | Relationship |
lazygit | Single-repo Git TUI | Complementary — devbase is the multi-repo gateway, lazygit is for deep single-repo ops |
gitui | Single-repo Git TUI | Complementary — Same as above |
GitHub Desktop | Git GUI | Irrelevant — Different user base, devbase is a TUI solution |
5ire | AI assistant + Knowledge base | Coopetition — 5ire is an MCP Client, devbase is an MCP Server |
Claude Code | AI coding assistant | Upstream/Downstream — Claude calls devbase to get local context |
Full 36-item competitive analysis available at docs/competitive-analysis.md.
Dependencies
Rust 2024 edition
SQLite (bundled via
rusqlite)tokei(code stats)ripgrep(optional, for cross-repo search)Optional:
clarity-core(for LLM-driven repo summary generation)
Privacy & Security
devbase follows the Local-First principle:
Your code never leaves your local machine. Registry, indexes, and logs are all stored in SQLite within the user directory
MCP Server communicates only via stdio local process, listening on no network ports
GitHub Token / LLM API Key are stored locally in
config.tomlwithin the user config directory, never committed to Git repos.gitignorecovers*.db,.devbase/,*.log,.env*, etc., to prevent accidental commits
Credential Management Best Practices
# ~/.config/devbase/config.toml (Linux/macOS)
# %LOCALAPPDATA%\devbase\config.toml (Windows)
[github]
token = "<YOUR_GITHUB_PAT>" # NEVER 将此文件提交到版本控制
[llm]
# api_key = "<YOUR_LLM_API_KEY>"Configuration
Configuration file located at:
Windows:
%LOCALAPPDATA%\devbase\config.tomlLinux/macOS:
~/.config/devbase/config.toml
First run will auto-generate a default template with comments.
[github]
# token = "<YOUR_GITHUB_PAT>" # 提高 GitHub API 限流阈值
[sync]
concurrency = 8 # 批量同步并发数
timeout_seconds = 60
cache.ttl_seconds = 3600 # Stars 缓存 TTLLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceLocal, searchable project memory for AI coding agents. Markdown source of truth, MCP interface, safe structured updates37Apache 2.0
- AlicenseNot gradedqualityAmaintenanceLocal-first, file-based memory layer for AI agents — one shared Markdown vault across Claude, Codex, Gemini, Cursor and any MCP client. Provides read/write memory tools with an audit trail, per-agent trust levels, and Git sync; no cloud and no lock-in.2MIT
- AlicenseAqualityAmaintenanceLocal-first dev memory: indexes Git commits, PRs, Jira/Linear tickets, Confluence docs, Slack threads, and Calendar events into a local SQLite/FTS5/ONNX index, and exposes them as MCP tools so Claude Code, Cursor, and Codex can search and cite your past work.173MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first Knowledge Management System that exposes markdown-based durable memory as MCP tools for Codex and ChatGPT, enabling search, read, write, and promotion workflows with project and global scopes.MIT
Related MCP Connectors
Private-by-default, local-first memory/context/task orchestrator for MCP apps and agents.
The project brain for AI coding agents — memory, decisions, sprints, knowledge base via MCP.
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/juice094/devbase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server