personal-bot
Organize workspace files, search past conversations, use shared MCP tools, and delegate tasks to other assistants.
Package details
Install personal-bot from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:personal-bot- Package
personal-bot- Version
0.4.4- Published
- Nov 29, 2026
- Downloads
- 6,404/mo · 3,043/wk
- Author
- realqiyan
- License
- MIT
- Types
- extension
- Size
- 3.9 MB
- Dependencies
- 4 dependencies · 31 peers
Pi manifest JSON
{
"skills": [],
"themes": [],
"prompts": [],
"extensions": [
"./src/pbot.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Personal Bot
English | 简体中文
A harness-agnostic personal assistant workspace and unified MCP cross-harness delegation layer.
Personal Bot connects Pi, DeepSeek Harness (dsh), Claude Code, Antigravity, Codex, Qoder CLI, and any MCP-compatible host to one shared workspace—providing shared materials and skills, workspace-scoped MCP servers, cross-host conversation history, and cross-harness ACP v1 worker delegation. Host-native subagent and team tools remain untouched.
Most detailed guides in
docs/are currently in Chinese: Documentation Index · Pi · dsh · Claude Code · Antigravity · Codex & Qoder.
Features
Shared Workspace & Skills
- Organizes long-term areas, project deliverables, reusable knowledge, provider guides, scratchpads, and role guidance under one workspace layout (
AGENTS.md,areas/,projects/,knowledge/,providers/,scratch/,agents/,.agents/skills/). - Opt-in per workspace via
.pbot/config.json(checks only the bound workspace root). Missing, disabled, or invalid config keeps Personal Bot inactive. - Granular feature switches under
features(prompts,skills,mcp,history, alltrueby default) let you enable only the capabilities you want.
- Organizes long-term areas, project deliverables, reusable knowledge, provider guides, scratchpads, and role guidance under one workspace layout (
Cross-Harness Delegation (
worker_*)- Exposes 6 read/write-separated tools (
worker_discover,worker_create,worker_request,worker_response,worker_output,worker_close) through a single stdio MCP server (pbot mcp). - Built-in ACP v1 presets for
pi,dsh,claude,antigravity,codex, andqoder, plus arbitrary custom ACP v1 binaries declared in.pbot/config.json. - Complements host-native subagents (Claude
Agent/teams, Antigravityinvoke_subagent//swarm, dshsubagent) without intercepting or replacing them.
- Exposes 6 read/write-separated tools (
Workspace-Shared MCP (
.pbot/mcp.json)- Manage stdio and Streamable HTTP MCP servers once per workspace via
pbot mcp add|list|removewith${ENV_VAR}expansion. - Pi and dsh mount them natively; plugin hosts access them on demand via
workspace_mcp_discover/workspace_mcp_call; ACP workers inherit them automatically.
- Manage stdio and Streamable HTTP MCP servers once per workspace via
Cross-Host Conversation History (
.pbot/history/)- Archives main-session exchanges from connected hosts into
.pbot/history/raw/(monthly layout by default). - Generates incremental session and monthly summaries via
pbot history summary. - Provides read-only search and drill-down via
pbot_history(Pi/dsh), MCPhistory_search/history_read(plugin & MCP hosts), andpbot historyCLI.
- Archives main-session exchanges from connected hosts into
Supported Hosts
| Host | Integration | Workspace Init | Cross-Harness MCP | History |
|---|---|---|---|---|
| Pi | Native extension | /pbot init |
Auto-mounted + /pbot worker |
pbot_history + /pbot history |
| dsh | Native plugin + Web view | /pbot init |
Auto-mounted + /pbot worker |
pbot_history + Web view + /pbot history |
| Claude Code | Native plugin (hooks + MCP) | /personal-bot:pbot init |
Auto-mounted | Hooks + MCP history_* |
| Antigravity | Native plugin (hooks + MCP) | /pbot init |
Auto-mounted | Hooks + MCP history_* |
| Codex | Native plugin (hooks + MCP) | pbot plugin codex init |
Auto-mounted | Hooks + MCP history_* |
| Qoder CLI | Native plugin (hooks + MCP) | pbot plugin qoder init |
Auto-mounted | Hooks + MCP history_* |
| Other MCP hosts (Cursor, etc.) | Stdio MCP (pbot mcp) |
pbot init |
Manual MCP config | MCP history_* + CLI |
Installation
On Linux or macOS, install the latest Node.js, npm and host application. dsh also requires pnpm.
1. Install the shared CLI (recommended)
npm install -g personal-bot
The pbot CLI works across all hosts (pbot install, pbot init, pbot status, pbot upgrade, pbot mcp, pbot history). If you prefer not to install globally, replace pbot with npx personal-bot@latest.
2. Install host plugin(s)
Option A: Via pbot install (recommended)
# Install for all detected hosts at user scope (skips hosts not installed)
pbot install all
# Or install for a single host: pi | dsh | claude | antigravity | codex | qoder
pbot install pi
pbot install claude
Pass --dsh-profile <name> to customize the dsh profile (defaults to pbot). All hosts install at user scope by default; workspace activation is controlled solely by <workspace>/.pbot/config.json. For Codex, review and trust the Personal Bot hooks in /hooks before starting a session.
Option B: Native install per host
- Pi:
pi install npm:personal-bot· Pi Guide - dsh:
dsh plugin --profile pbot add personal-bot@latest(first time:dsh --profile pbot --from-default-profile web --dump-config) · dsh Guide - Claude Code:
claude plugin install personal-bot --marketplace realqiyan/personal-bot --scope user· Claude Code Guide - Antigravity:
agy plugin install "$(npm root -g)/personal-bot/lib/antigravity-plugin"· Antigravity Guide - Codex:
codex plugin marketplace add realqiyan/personal-bot && codex plugin add personal-bot@personal-bot(trust the hooks in/hooks) · Codex & Qoder guide - Qoder CLI:
pbot install qoder(user-scoped marketplace install). The Qoder desktop app can import the ZIP produced bynpm run pack:qoder, and Qoder IDE can importplugin/. Qoder installation guide - Other MCP Hosts (Cursor, etc.): Configure a stdio MCP server pointing to
pbot mcp(ornpx personal-bot@latest mcp).
Usage
Enable a workspace
Run initialization once in the target workspace root (all hosts share the same .pbot/config.json):
# From terminal (works for all hosts)
pbot init --workspace /path/to/workspace
Or run the host command inside a session:
- Pi / dsh / Antigravity:
/pbot init - Claude Code:
/personal-bot:pbot init - Codex / Qoder CLI:
pbot plugin codex initorpbot plugin qoder init
init creates missing material directories and root AGENTS.md without overwriting existing files, and enables .pbot/config.json:
{
"enabled": true,
"features": {
"prompts": true,
"skills": true,
"mcp": true,
"history": true
}
}
Check workspace status and plugin version sync at any time with pbot status (or /pbot status). See Workspace Configuration.
Workspace layout
| Path | Purpose |
|---|---|
.pbot/config.json |
Workspace opt-in, features toggles, acp harnesses, history / summary settings |
.pbot/mcp.json |
Workspace-shared stdio / HTTP MCP servers |
.pbot/history/ |
Cross-host raw exchanges (raw/) and derived summaries (summaries/) |
AGENTS.md |
Project index, working agreements, and optional harness routing preferences |
areas/, projects/, knowledge/ |
Long-term areas, project deliverables, and reusable methods |
providers/ |
External CLI/MCP usage guides and data definitions |
scratch/ |
Temporary scripts, data, and experiments |
agents/ |
Role additions (coordinator.md, general-purpose.md) |
.agents/skills/ |
Workspace-local skills (<name>/SKILL.md) shared across hosts |
Common workflows
1. Cross-harness delegation (worker_*)
Ask the assistant to delegate to another harness (for example, "use Codex to implement and test module A" or "ask Claude to review this diff"), or invoke /pbot worker directly in Pi/dsh:
/pbot worker overview
/pbot worker backends
/pbot worker models claude
/pbot worker discover {"target":"templates"}
/pbot worker create {"backend":"codex"}
After you configure a worker template, you can delegate by name. For example, “Ask Payments Reviewer to review the refund changes.” The coordinator selects the template and sends the task to a worker in its designated workspace. Worker template setup
To use built-in ACP targets, install and authenticate the corresponding target CLI (pi-acp, dsh, @agentclientprotocol/claude-agent-acp, agy, @agentclientprotocol/codex-acp, or qodercli). To add any custom ACP v1 binary, declare it in .pbot/config.json:
{
"enabled": true,
"acp": {
"my-harness": {
"command": "/absolute/path/to/my-acp",
"args": ["--stdio"],
"env": { "MY_HARNESS_MODE": "headless" },
"permission": "ask"
}
}
}
2. Workspace-shared MCP servers
# Add a stdio MCP server
pbot mcp add sqlite --description "Local SQLite" -- npx -y @modelcontextprotocol/server-sqlite ./data.db
# Add a Streamable HTTP MCP server (references env vars instead of plaintext secrets)
pbot mcp add internal-api --url https://mcp.example.com/mcp --header Authorization='Bearer ${INTERNAL_MCP_TOKEN}'
# List or remove
pbot mcp list
pbot mcp remove sqlite
3. Cross-host history & summaries
pbot history status
pbot history summary
pbot history search "architecture decision" --limit 10
pbot history read <node-id>
See History Guide.
Upgrade & Inspection
Unified upgrade (recommended)
Run from any directory (or pass --workspace <dir>):
pbot upgrade
# Alias: pbot update
# Inspect workspace status and all hosts at once
pbot doctor
pbot upgrade updates the global pbot CLI and npm-managed hosts (Pi, dsh, Antigravity). Claude Code, Codex, and Qoder CLI are thin-shell plugins that automatically share the global pbot runtime; they only run marketplace updates when their shell version is below the required version or when --force-plugins is passed.
--version <x.y.z>: selects the npm release and sets a minimum version for marketplace thin shells--hosts <h1,h2>: upgrade only specific hosts (e.g.claude,codex)--dsh-profile <name>: specify the dsh profile (defaults topbot)--force-plugins: force refreshing thin-shell marketplace plugins
Per-host manual upgrade
- Global CLI:
npm install -g personal-bot@latest - Pi:
pi install npm:personal-bot@latest(then run/reloadin Pi) - dsh: Stop the running dsh service, then run
dsh plugin --profile pbot update personal-bot --latest - Claude Code: Update the global
pbotCLI; to refresh the thin shell explicitly, runclaude plugin marketplace update personal-bot && claude plugin update personal-bot@personal-bot --scope user - Antigravity: Run
npm install -g personal-bot@latest, thenagy plugin install "$(npm root -g)/personal-bot/lib/antigravity-plugin"orpbot install antigravity(restart Antigravity session) - Codex: Update the global
pbotCLI; to refresh the thin shell explicitly, runcodex plugin marketplace upgrade personal-bot(review changed hooks in/hooks) - Qoder CLI: Update the global
pbotCLI; to refresh the thin shell explicitly, runpbot update --hosts qoder --force-plugins
Uninstall
Disable in a workspace only
To turn off Personal Bot in a single workspace without removing plugins or data, set "enabled": false in .pbot/config.json (or delete .pbot/config.json).
Uninstall plugins and CLI
Remove only the components you installed:
- Global CLI:
npm uninstall -g personal-bot - Pi:
pi remove npm:personal-bot - dsh (stop service first):
dsh plugin --profile pbot remove personal-bot - Claude Code:
claude plugin uninstall personal-bot@personal-bot --scope user - Antigravity:
agy plugin uninstall personal-bot - Codex:
codex plugin remove personal-bot@personal-bot(to remove the marketplace as well:codex plugin marketplace remove personal-bot) - Qoder CLI:
qodercli plugin uninstall personal-bot@personal-bot --scope user(add--keep-datato retain plugin data) - Other MCP hosts: Remove the
pbotentry from your host's MCP configuration.
Optional data cleanup
Uninstalling never deletes your workspace materials (AGENTS.md, areas/, projects/, knowledge/, providers/, scratch/, agents/, .agents/skills/) or local state. If you want to remove Personal Bot state files as well:
- The workspace stores configuration in
.pbot/config.jsonand.pbot/mcp.json, saved worker templates in.pbot/worker/templates.json, worker runtime records in.pbot/worker/runtime/, and history in.pbot/history/.
Documentation & Development
- Documentation Index · Workspace Configuration · Cross-Harness Workers · History · Capabilities
- Architecture Principles · Technical Design · Extensibility · Release Guide · Domain Terms
- Contributors: see AGENTS.md for development requirements, build/test commands, and plugin validation.
License and Disclaimer
Personal Bot is licensed under MIT. License · Disclaimer