Skip to main content
Glama
README.md
# Bothpage — Concise Notes & Bidirectional Mind Map for You and Your Agents

<p align="center">
  <img src="https://raw.githubusercontent.com/zhiyuanvision-lang/BothPage/main/packages/claude-plugin/.claude-plugin/icon.png" width="108" height="108" alt="Bothpage Icon" />
</p>

<p align="center">
  <strong>Get you and your agents on the same page.</strong><br/>
  Concise Markdown + Git notes, offline hybrid semantic recall, 6-rule doc hygiene, and real-time Markdown ⇄ Logical Structure / Mind Map sync for Claude Code, Cursor, Codex, Antigravity &amp; DeepSeek Harness.
</p>

<p align="center">
  <a href="https://zhiyuanv.com/bothpage.html">Website</a> ·
  <a href="https://github.com/zhiyuanvision-lang/BothPage/releases/latest">Download Desktop App (macOS / Windows / Linux)</a> ·
  <a href="https://www.npmjs.com/package/bothpage-mcp">npm (bothpage-mcp)</a> ·
  <a href="https://open-vsx.org/extension/bothpage/bothpage-vscode">Open VSX</a>
</p>

---

## Why Bothpage?

Notes are meant for **humans** to recall key points later. When AI coding agents dump 2,000-word walls of text into your repo, nobody reads them — and unread notes equal no notes.

**Bothpage** enforces brevity by design while keeping your Markdown files 100% yours in a standard Git vault (`~/Bothpage`):

- **30-Second Atomic Notes**: System-enforced length gates (`<= 140` chars for journal lines; `<= 80` English words / `<= 150` Chinese chars & `<= 5` bullets for notes), duplicate detection, and `supersedes` evolution chains.
- **Two-Way Markdown ⇄ Mind Map + Clipboard Paste Image**: Switch any note, `_index.md`, or `docs/*.md` between Markdown and an interactive **Logical Structure / Mind Map** with minimal byte-range git diffs and `Ctrl/Cmd+V` `.assets/` image paste.
- **Recall Without Remembering Keywords**: Offline BM25 + multilingual vector hybrid search, context filters (time / project / agent / git commit), backlinks, and automatic `recall` injection at agent session start.
- **Human Sovereignty (R4 & R5)**: Every write carries a `Bothpage-Author` git trailer; agents can append logs and draft notes, but modifying human-written content requires your 1-click approval.
- **Clean Code Repos**: Stops agents from littering scattered `.md` files across your repo; enforces 6 scan-friendly structure rules and `covers:` code-freshness checks on `docs/`.

## Quick Start

### 1. Desktop App (macOS / Windows / Linux)

Download the signed & notarized installer from [GitHub Releases](https://github.com/zhiyuanvision-lang/BothPage/releases/latest) or via Homebrew on macOS:

```bash
brew install --cask zhiyuanvision-lang/tap/bothpage
```

### 2. CLI & One-Click Agent Setup (Claude Code / Cursor / Codex / Antigravity / DeepSeek)

```bash
# Initialize ~/Bothpage vault & wire MCP + lifecycle hooks for your current repo
npx -y bothpage@latest init

# Or install globally for Claude Code
npx -y bothpage-mcp@latest install --claude

# Quick 1-line journal capture (<= 140 chars)
npx bothpage "Switched warmup steps from 500 to 2000; loss spike disappeared"

# Launch the bidirectional Markdown ⇄ Mind Map workspace in browser
npx bothpage app --open
```

### 3. VS Code / Cursor / Windsurf Extension

Search **`Bothpage`** in Open VSX or install `bothpage-vscode-0.1.2.vsix` from [Releases](https://github.com/zhiyuanvision-lang/BothPage/releases/latest).

## 9 MCP Tools

| Tool | Purpose |
| --- | --- |
| `journal_append` | Append a concise `<= 140` char timestamped line to today's journal |
| `note_add` | Create a validated atomic note (`decision`, `bug`, `experiment`, `paper`, `idea`, `til`, `todo`, `log`) |
| `note_update` | Update a note (queues human approval if touching human-authored text) |
| `note_search` | Offline BM25 + semantic hybrid search with project / type / time / agent filters |
| `note_get` | Read full note content and metadata by ID |
| `recall` | Load project `_index.md` summary + relevant conclusions within token budget |
| `doc_check` | Validate `docs/*.md` against 6 scan-reading rules and soft length budgets |
| `doc_edit` | Surgical exact-match edit on `docs/*.md` with `git blame` human-paragraph guard |
| `asset_add` | Save local image (e.g. plot screenshot) to `<doc>.assets/` and return relative Markdown link |

## Pricing & Privacy

- **100% Local-First**: Plain Markdown + Git on your machine. No cloud lock-in; even if you never buy, reading and searching your vault work forever.
- **7 Active Usage Days Free Trial**: Only days you actually write count toward the 7-day trial.
- **One-Time Purchase**: **¥59.9 CNY / $29 USD** lifetime license (independent from other Zhiyuan Vision products).

---

© 2026 [Beijing Zhiyuan Vision Technology Co., Ltd.](https://zhiyuanv.com) · [License](LICENSE.md)