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.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

供 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 預設僅回送位址。
安裝前請注意
代理可寫入持久的、閱讀介面可見的條目;draft 完整度只是信任狀態而非私密草稿,敏感內容應使用私有可見性或審閱流程。不要在沒有身分提供者的情況下把可寫守護程序暴露到公網;非回送綁定位址與 PINDOC_ALLOW_PUBLIC_UNAUTHENTICATED 會削弱防護。資源上傳讀取的是伺服器或容器主機上的路徑,而非用戶端機器。切勿把測試資料庫變數指向個人或正式資料庫。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pindoc,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Pindoc

[English README] [Korean README]

[CI] [License] [MCP]

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, and pindoc.task.queue regulate 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 /mcp endpoint can serve multiple projects; each tool call carries project_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.

bash
git clone https://github.com/var-gg/pindoc.gitcd pindocdocker compose up -d --build

To make the running daemon report the exact source revision, pass the current commit through the Compose build argument before building:

bash
export PINDOC_BUILD_COMMIT="$(git rev-parse HEAD)"docker compose up -d --build

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:

text
http://localhost:5830/

Check that the database ledger matches the migrations embedded in the image:

bash
docker compose exec pindoc-server-daemon pindoc-admin schema doctor --json

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:

bash
docker compose exec pindoc-server-daemon pindoc-reembed -dry-run -state needs-refreshdocker compose exec pindoc-server-daemon pindoc-reembed -state needs-refresh

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:

text
http://localhost:5830/projects/new?welcome=1

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:

sql
INSERT INTO project_members (project_id, user_id, role)SELECT p.id, s.default_loopback_user_id::uuid, 'owner'FROM projects pCROSS JOIN server_settings sWHERE p.slug = '<project-slug>'  AND s.default_loopback_user_id IS NOT NULLON CONFLICT (project_id, user_id) DO UPDATE SET role = 'owner';

Connect an MCP Client

The Docker daemon exposes one account-level MCP endpoint:

jsonc
{  "mcpServers": {    "pindoc": {      "type": "http",      "url": "http://127.0.0.1:5830/mcp"    }  }}

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:

text
Use Pindoc context before editing. Find the current project, inspect assignedTasks, then implement the next acceptance item.

Typical MCP loop:

  1. pindoc.workspace.detect
  2. pindoc.task.queue
  3. pindoc.context_for_task
  4. code or doc work
  5. pindoc.artifact.propose
  6. 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:

powershell
pwsh -File tools/push-asset.ps1 A:\path\image.png -ProjectSlug survival-manager

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:

  1. Put ![alt](<asset.blob_url>) in body_markdown; this controls rendering.
  2. Call pindoc.asset.attach with role="inline_image"; this records revision metadata and evidence.

Configuration

The default Docker path is single-user and loopback-only:

VariableDefaultPurpose
PINDOC_DAEMON_PORT5830Host port used by Docker Compose.
PINDOC_PROJECTpindocDefault project for unscoped reads/config.
PINDOC_PUBLIC_BASE_URLhttp://127.0.0.1:${PINDOC_DAEMON_PORT}Public base URL used in generated links and OAuth metadata.
PINDOC_BIND_ADDR127.0.0.1:5830Security intent. Non-loopback values require an IdP or explicit public unauthenticated opt-in.
PINDOC_AUTH_PROVIDERSemptyIdentity providers enabled for external requests. Current provider: github.
PINDOC_ALLOW_PUBLIC_UNAUTHENTICATEDfalseExplicit opt-in for external exposure without an IdP. Use only behind a trusted network/reverse proxy.
PINDOC_FORCE_OAUTH_LOCALfalseDevelopment flag that routes loopback /mcp calls through OAuth bearer auth for local QA.
PINDOC_ALLOWED_ORIGINSemptyComma-separated CORS allowlist. Empty means same-origin only; set explicit origins for cross-origin frontends.
PINDOC_DEV_MODEfalseDevelopment-only flag that permits wildcard CORS for local tooling. Do not enable on public instances.

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

bash
# Run Go tests. Integration tests that need Postgres are skipped unless# PINDOC_TEST_DATABASE_URL is set.go test ./...
# Web checks.cd webpnpm install --frozen-lockfilepnpm typecheckpnpm test:unitpnpm build
# Full image build.docker build -t pindoc-server:local .

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:

powershell
docker run --rm -v "${PWD}:/work" -w /work golang:1.25 go test ./...

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

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分