新仓库
约定散落在代码、文档和某个人的记忆里。
本地优先的研发记忆与工作流层
Lattice 把规范、任务、决策和经验沉淀在本地,让它们在项目、会话和 Agent 之间持续复用。
npm i -g @qcqx/lattice-cli问题
换一个仓库、开一个新的会话、换一个同事、换一个 Agent,上下文就被重新拼一遍,然后在结束时丢掉。
约定散落在代码、文档和某个人的记忆里。
决策沉进聊天记录,下一次要重新解释。
同样的问题、同样的边界、同样的坑。
每个工具都有一套自己的上下文,互不相通。
工作流 / 闭环
安装一次 CLI,然后在 Agent 里完成从开始、读取上下文、记录决策,到归档和沉淀规范的完整流程。下一次会话,记忆已经在这里。
01 / 安装一次
npm i -g @qcqx/lattice-cliNode.js 18+ · 无需账号 · 数据在本地
02 / 在 Agent 输入框调用
在 Agent 输入框开头输入 / 或 @ 唤起命令;CLI 会在后台读写 ~/.lattice。
ltc task start auth-guardltc task start auth-guardltc context --task auth-guardltc task start auth-guardltc context --task auth-guardltc task checkpoint auth-guard --type decision \
--title "Move tokens to HttpOnly cookies"Portal 不再读取或持久化 access token。
ltc task start auth-guardltc context --task auth-guardltc task checkpoint auth-guard --type decision \
--title "Move tokens to HttpOnly cookies"Portal 不再读取或持久化 access token。
ltc task checkpoint auth-guard --type milestone \
--title "Login guard migrated"Cookie path, logout and redirect are covered by tests.
ltc task start auth-guardltc context --task auth-guardltc task checkpoint auth-guard --type decision \
--title "Move tokens to HttpOnly cookies"Portal 不再读取或持久化 access token。
ltc task checkpoint auth-guard --type milestone \
--title "Login guard migrated"Cookie path, logout and redirect are covered by tests.
ltc task checkpoint auth-guard --type correction \
--title "Removed localStorage fallback"The portal reads the session only through the API.
ltc task start auth-guardltc context --task auth-guardltc task checkpoint auth-guard --type decision \
--title "Move tokens to HttpOnly cookies"Portal 不再读取或持久化 access token。
ltc task checkpoint auth-guard --type milestone \
--title "Login guard migrated"Cookie path, logout and redirect are covered by tests.
ltc task checkpoint auth-guard --type correction \
--title "Removed localStorage fallback"The portal reads the session only through the API.
ltc task complete auth-guard && ltc task archive auth-guardThe auth guard, logout and rotation path are documented.
ltc task start auth-guardltc context --task auth-guardltc task checkpoint auth-guard --type decision \
--title "Move tokens to HttpOnly cookies"Portal 不再读取或持久化 access token。
ltc task checkpoint auth-guard --type milestone \
--title "Login guard migrated"Cookie path, logout and redirect are covered by tests.
ltc task checkpoint auth-guard --type correction \
--title "Removed localStorage fallback"The portal reads the session only through the API.
ltc task complete auth-guard && ltc task archive auth-guardThe auth guard, logout and rotation path are documented.
ltc spec init session-auth.md三层模型
不是另一个聊天窗口,而是让研发过程本身可复用。
规范、任务、决策、经验,统一沉淀为可检索、可引用的 artifact。
开始时读取,实施时记录,归档时蒸馏。每次工作都让下一次更轻。
本地文件就是真源。CLI、Web、VS Code 和任何能跑命令的 Agent 都能接入。
工作台
真实的 Web 工作台,运行在模拟数据上。没有登录、没有后端、没有网络请求。
本地优先
所有数据都在 ~/.lattice 的普通文件里。没有遥测,没有强制云服务,Git 同步是可选项。
FAQ
不会。默认只写本地 ~/.lattice。只有你显式配置 Git 同步时,数据才会离开本机。
任何能运行 CLI 的 Agent 都可以接入。Lattice 不把记忆锁在某个模型或客户端里。
Lattice 面向研发过程:规范、任务、决策和检查点在同一套结构里,并且能被 Agent 直接读取。
MIT 开源,免费使用。CLI 需要 Node.js;Web 工作台是同一套本地数据的浏览器界面。