
Pindoc
io.github.var-gg由 GitHub 帳號 var-gg 發布v0.2.0更新於 Oct 24, 2026
Code-pinned team memory for AI coding agents — typed artifacts, MCP-native, self-host.
概覽
供 AI 編碼代理使用的自架專案記憶系統,把代理的發現整理成具型別、可連結程式碼的條目,供團隊與後續代理檢索。
- 可以做什麼
- 偵測工作區並解析目前儲存庫對應的專案識別碼,可安裝 harness 將識別碼寫入專案檔案。讀取任務佇列,並在改程式碼前取得任務脈絡。提出具型別的條目,例如決策、分析、除錯路徑、任務收尾與驗證紀錄,並連結到提交、檔案、行範圍、URL 或相關條目。更新任務的驗收與收尾狀態。上傳並附加圖片等資源到條目。透過內建嵌入模型對專案記憶做語意搜尋。
- 適用情境
- 適合在多個工作階段使用 AI 編碼代理的團隊,希望除錯路徑、決策與分析沉澱為可審閱的團隊知識,而不是隨對話消失。也適合多個代理或成員在改程式碼前需要共享、與提交連結的脈絡時使用。
- 執行需求
- 以本機 Docker Compose 方式執行(建議 Docker 27+、約 2 核 CPU、4 GB 記憶體與 5 GB 磁碟),啟動含 pgvector 的 Postgres、守護程序與閱讀介面。需要 PINDOC_DATABASE_URL(Postgres 連線字串),首次執行需對外 HTTPS 以快取內建嵌入模型。MCP 用戶端連線守護程序的 HTTP 端點 127.0.0.1:5830/mcp;PINDOC_BIND_ADDR 預設僅回送位址。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Pindoc,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Pindoc
[English README] [Korean README]
Code-pinned team memory for AI-assisted development. Agents write the durable record; humans review, discuss, and steer.
Pindoc is a self-hosted project memory system for teams working with AI coding agents. It turns useful agent discoveries into typed artifacts: decisions, debugging paths, task closeouts, verification notes, and code-linked analyses. Every artifact is scoped to a project area and pinned back to commits, files, URLs, resources, or related Pindoc artifacts.
It is still the wiki you never type into, but the point is not automation for its own sake. Pindoc keeps the parts of agent work that teammates and future agents can reuse.
Why It Exists
AI coding sessions are productive, but team context still falls through the cracks:
- a debugging path dies with the terminal session,
- the same decision is re-explained to every new agent,
- useful analysis stays in one operator's chat instead of becoming team knowledge,
- duplicate documents accumulate across wikis, issue trackers, PRs, and commit messages,
- in real project environments, the person who finds a problem cannot always change the code immediately; structured evidence helps the team discuss and decide.
Pindoc turns agent work worth keeping into searchable, code-pinned team memory. The next teammate or coding agent can ask Pindoc what matters before it edits.
What Makes Pindoc Different
- Collaborative memory layer: artifacts are written for teammates and future agents, not as private chat summaries.
- Agent-only write surface: the Reader UI is for reading and review; durable writes go through agents.
- MCP-native workflow: tools such as
pindoc.context_for_task,pindoc.artifact.propose, andpindoc.task.queueregulate agent behavior instead of acting as a thin CRUD API. - Typed artifacts: Decision, Analysis, Debug, Flow, Task, TC, Glossary, and domain-pack types.
- Code-pinned memory: artifacts can point to commits, files, line ranges, resources, URLs, and related artifacts.
- Record-worthy by design: Pindoc avoids raw chat archives and keeps only decisions, analyses, debug paths, verification, and task context with future value.
- Multi-project daemon: one
/mcpendpoint can serve multiple projects; each tool call carriesproject_slug. - Self-host first: Docker Compose brings up Postgres, pgvector, the Pindoc daemon, and the Reader SPA.
Public Demo
A read-only public demo is a follow-up track and is not part of this OSS
release. Until it ships, the README, docs/, and a
self-hosted clone are the primary proof. Operators who want to evaluate
Pindoc end-to-end run docker compose up -d --build and inspect their own
artifacts.
The follow-up demo plan stays in Public Demo Plan for when a hosted instance is appropriate.
Quick Start
Prerequisites:
- Docker 27+
- 2 CPU cores and 4 GB RAM recommended for local dogfood or small-team use
- 5 GB free disk recommended for Docker images, Postgres data, and the embedding cache; 2 GB is a light fresh-clone minimum
- outbound HTTPS on first run so the bundled EmbeddingGemma model and runtime can be cached
- Go 1.25+ only for host-native development
- Node 20.15+ and pnpm 10+ only for web development outside Docker
The default Docker path includes semantic search through a bundled EmbeddingGemma Q4 ONNX provider, so no embedding sidecar is required. See System Requirements for minimum and optional deployment profiles.
To make the running daemon report the exact source revision, pass the current commit through the Compose build argument before building:
PowerShell users can set the same value with
$env:PINDOC_BUILD_COMMIT = git rev-parse HEAD. make compose-up performs
this stamping automatically.
Open the Reader:
Check that the database ledger matches the migrations embedded in the image:
The command is read-only and exits non-zero for unknown applied migrations, pending migrations, or checksum drift. It never deletes or accepts an unknown schema change automatically.
Preview and repair semantic indexes that are unknown, stale, failed, or were built with a different embedding model:
Pindoc records the indexed revision, title/body hashes, model identity,
attempt count, and last error in artifact_index_state. Embeddings are fully
prepared before old chunks are replaced. If the provider fails, the artifact
write can still succeed with index_state.status="failed" and
retryable=true, while the last known-good chunks remain searchable. The
re-embed command handles each artifact in its own transaction and exits
non-zero if any retry still fails.
On a fresh instance, / first asks for the owner identity (display name and
email), then routes to the first-project wizard. To open the project wizard
directly after identity setup:
Repair Ownerless Projects From Older REST Builds
Older builds could create a project through POST /api/projects without a
matching project_members owner row. After upgrading, repair any affected
project by assigning the configured loopback owner:
Connect an MCP Client
The Docker daemon exposes one account-level MCP endpoint:
Project scope is not encoded in the URL. Agents pass project_slug on
project-scoped tool calls. Workspaces generated by pindoc.harness.install
store that slug in PINDOC.md frontmatter. pindoc.workspace.detect
resolves the likely slug for the current workspace, but it does not mutate the
daemon-wide PINDOC_PROJECT default. In a multi-project Docker daemon, keep
passing the detected project_slug explicitly after the session sweep.
completeness=draft is a maturity/trust state, not an unpublished private
draft. Accepted MCP writes are still published and Reader-visible when
visibility allows. Use visibility=private or the review workflow for content
that must not appear on the normal user surface.
Common Workflows
Ask an agent to start work with project context:
Typical MCP loop:
pindoc.workspace.detectpindoc.task.queuepindoc.context_for_task- code or doc work
pindoc.artifact.propose- update Task acceptance and closeout state
Asset uploads from Docker Desktop / Windows
pindoc.asset.upload(local_path=...) reads paths from the MCP server
host/container, not from the Windows client. For Docker Desktop, copy the host
file into the pindoc-server-daemon container first:
The script prints the JSON input for pindoc.asset.upload, including the
container-local /tmp/pindoc-asset-upload/... path.
For Reader-visible inline images, two steps are intentionally separate:
- Put
inbody_markdown; this controls rendering. - Call
pindoc.asset.attachwithrole="inline_image"; this records revision metadata and evidence.
Configuration
The default Docker path is single-user and loopback-only:
Do not expose a writable daemon to the public internet without an identity
provider. For a public read-only demo, keep /mcp and mutating HTTP routes
blocked at the reverse proxy; see SECURITY.md and
docs/22-public-demo.md.
The daemon also sets baseline security headers itself, including nosniff,
clickjacking protection, referrer policy, and hardened asset-blob CSP.
For a writable public or cross-device instance, follow
docs/oauth-setup.md. It covers GitHub OAuth App setup,
the ${PINDOC_PUBLIC_BASE_URL}/auth/github/callback callback rule, runtime
MCP client registration, and local OAuth QA with PINDOC_FORCE_OAUTH_LOCAL.
Development
To test the OAuth bearer path locally while still connecting through
127.0.0.1, set PINDOC_FORCE_OAUTH_LOCAL=true; the daemon will warn on boot
and require Bearer tokens for loopback /mcp calls.
On Windows hosts without a local C toolchain, run Go tests through Docker:
Run database integration tests against a disposable Postgres/pgvector database;
never point PINDOC_TEST_DATABASE_URL at a personal or production Pindoc
database. Test and plugin fixtures must opt into Reader isolation explicitly:
set projects.CreateProjectInput.ReaderHidden to true, or set
projects.reader_hidden = TRUE when inserting with SQL. Slug-prefix detection is
deprecated and no longer runs at request time. Migration 0070 only performs a
one-time backfill for fixture prefixes used by older Pindoc releases.
Documentation
- Documentation Hub
- Public Demo Plan
- Public Demo Story Path
- Record-worthy Artifact Policy
- Public Release Checklist
- Contributing
- Security
- Design source notes
Feedback
Long-form questions, feature requests, and design discussions go to GitHub Discussions. Bug reports go to GitHub Issues. The maintainer typically responds within a day.
Status
Pindoc is in active dogfood. The local self-host path, Reader UI, project/area model, artifact proposal flow, task queue, revision history, summaries, and real embedding provider path are implemented. The public OSS launch track is focused on first-run reliability, a read-only dogfood demo, CI, security docs, and clearer collaborative positioning.
License
Apache License 2.0. See LICENSE.
來源:README.md,提交 075f3c1
工具
0版本歷史
1- v0.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分