quickstart.zh.md
docs/i18n/quickstart.zh.md
快速开始
<!-- translations:start -->
English · 한국어 · 中文 · 日本語 · Русский · Español · Français · Deutsch
<!-- translations:end --> 本页展示从已有项目目录到可浏览 Tesserae 的最短路径。
1. 运行设置向导
在你想索引的项目中:
cd /path/to/my-project
tesserae project setup
向导会检测 README.md、docs、src、lib、app、packages、data 等常见 source,然后写入 .tesserae/config.json。它还会配置默认 Cognee backend,使 project ask 可以先尝试 Cognee,再 fallback 到 compiled wiki search。
启用 Understand Anything 和 Cognee runtime memory 的全自动设置:
tesserae project setup \
--yes \
--with-understand-anything \
--install-understand-anything \
--understand-anything-platform codex \
--run-cognee \
--install-cognee
它会做什么:
| Flag | Effect |
|---|---|
--with-understand-anything | 将 UA graph projection 添加为 source。 |
--install-understand-anything | 安装/更新 UA companion skills。 |
--understand-anything-platform codex | 使用 Codex 运行 Tesserae 托管的 UA refresh wrapper。 |
--run-cognee | 在 compile 期间尽力运行 Cognee runtime cognify。 |
--install-cognee | 缺少 Cognee 时用当前 Python 安装它。 |
用户不需要知道 UA install path,也不需要输入 /understand;当 UA graph 缺失或过期时,project compile 会运行 project refresh-understand-anything。
2. 编译图和 projections
tesserae project compile
project compile 会写入持久产物:
.tesserae/
config.json
graph.json
manifest.json
sqlite.db
temporal_facts.jsonl
graphiti_episodes.jsonl
report.md
competitive_report.md
markdown_projection/
obsidian_vault/
agent_harness/
harness_sessions/
site/
cognee_bundle/
首次运行后可使用 --changed-only 跳过未更改的 markdown 文件,并在没有文件变化时保留之前的 graph。如果启用了 Understand Anything,compile 会先刷新/物化 .tesserae/external/understand-anything.md;如果启用了 Cognee runtime,它也会在写入 .tesserae/cognee_bundle/ 后尽力更新 Cognee。
3. 构建并提供静态 frontend
tesserae project build-site
tesserae project serve --port 8765
打开:
http://127.0.0.1:8765/
<!-- BEGIN: subagent-r-watch -->
保存时自动重建
将开发服务器与 polling watcher 配合使用,让 data/ 和 docs/ 下的编辑触发增量 recompile:
# terminal 1
python3 -m http.server 56821 --directory .tesserae/site
# terminal 2
tesserae project watch
project watch 每 2 秒 polling,一次 1 秒 debounce,然后运行 compile --changed-only。使用 --once 进行 cron 风格 rebuild(snapshots vs .tesserae/.watch-cache.json),用 --paths <dir> 添加自定义 watch 目录,用 --interval / --debounce 调整节奏。 <!-- END: subagent-r-watch -->
所有可见 route(home、sources、concepts、entities、papers、repos、topics、syntheses、questions、timeline、graph 以及 AI siblings)的注释导览见