lens

Cognitive Shift Design System

认知偏移设计系统

Diagnose the layer first.
Generate only when warranted.

先判断问题在哪一层。
再决定要不要生成。

lens is the daily CLI for a discipline runtime, not a copy generator. It engineers three Chinese theory documents into an LLM-injectable, program-checkable, regression-testable Agent system that can ask, experiment, generate—or refuse to fabricate.

lens 是这套系统的日常命令行入口。它不是文案生成器,而是把三套中文理论 (《逻辑运行_V1.3》《反差模型》《叙事逻辑》)工程化为可注入 LLM、可程序校验、可回归验证的 Agent 运行时: 先诊断问题层级,再决定询问、试验、生成,或拒绝编造。

中文正式名:认知偏移设计系统 · 引擎仓库私有

English: Cognitive Shift Design System · engine repository is private

v0.11Kernel内核
0.2.0CLI lensCLI lens
v2.2Engineering layer工程层
41/41Self-tests green自测全绿

A runtime that decides whether generation is allowed.

先决定「可不可以生成」的运行时。

Most LLM tools start by writing. This one starts by locating the problem: is it a motivation mismatch, a contrast failure, a narrative gap, or an ethics risk? Only then does it choose an action.

The design claim is deliberate: diagnosis before production. If the system cannot honestly proceed, refusal is a valid outcome—not a failure mode to paper over.

多数 LLM 工具一上来就写。这套系统先定位问题:动机错位、反差失效、叙事断层,还是伦理风险? 然后再选择行动。

核心主张是先诊断,再生产。如果不能诚实推进,拒绝也是合法结果——不是要用话术糊过去的失败。

Three layers, one protocol, a cross-cutting ethics check.

三层架构、一套协议,外加横切伦理层。

Plain-language map of the private engine. Ten scenario agents plus an orchestrator speak through a STATE + REPLY dual-segment protocol; a validator checks STATE, and a quality gate enforces regex/contract constraints.

私有引擎的白话地图。10 个场景 Agent 加编排器,通过 STATE + REPLY 双段协议通信; 校验器检查 STATE,质量门执行正则/契约约束。

1

Human-motivation model

人性动机模型

Where desire, fear, status, and trust actually sit—before any wording.

先看欲望、恐惧、地位与信任落在何处,再谈措辞。

2

Contrast reasoning

反差推理

What expectation to set, break, or refuse—so the next move has leverage.

该建立、打破还是拒绝何种预期,让下一步动作有支点。

3

Engineering execution

工程执行

STATE+REPLY protocol, scenario routing, regression harness—turning judgment into checkable runs.

STATE+REPLY 协议、场景路由、回归夹具——把判断变成可检查的运行。

⌀

Ethics / risk layer

伦理 / 风险层

Cross-cutting constraints that can stop fabrication even when generation is tempting.

横切约束:即使生成很诱人,也可以拦住编造。

What is verified today—without invented users.

目前已验证的部分——不编造用户。

No MAU, revenue, waitlist, or company registration claims. Numbers below come from program self-tests and live runs against real public user needs.

没有 MAU、收入、候名单或公司注册之类的宣称。下列数字来自程序自测,以及对真实公开用户需求的实跑验证。

41/41

Program self-tests

程序自测

node tools/selftest_all.mjs — 41 groups, all green. Validator checks the STATE protocol.

node tools/selftest_all.mjs — 41 组全绿。校验器检查 STATE 协议。

10/10

Live batch one

实跑第一批

First batch of real public needs: 10 cases, all pass.

第一批真实公开需求:10 例,全部通过。

8 / 3 / 0

Live batch two

实跑第二批

11 cases after general logic tightening (not case-by-case patches): 8 pass, 3 partial, 0 fail.

11 例,经通用逻辑收紧(非逐例打补丁)后:8 通过 / 3 部分通过 / 0 失败。

Versions as of 2026-11-29 doc sync: kernel v0.11 · CLI 0.2.0 · engineering layer v2.2. 版本以 2026-11-29 文档同步为准:内核 v0.11 · CLI 0.2.0 · 工程层 v2.2。

Everyday commands in lens.

日常入口命令 lens。

$ lens ask # diagnose, then answer or refuse
$ lens plan # structure the next move
$ lens log # inspect run history
$ lens show # surface state / artifacts
$ lens gate # run quality contracts
$ lens agents
$ lens mem find
$ lens doctor
ask / plan

Human-facing diagnosis and structured next steps.

面向人的诊断与结构化下一步。

gate / doctor

Contract checks and environment health—not vibes.

契约检查与环境健康——不靠感觉。

log / show

Inspect what actually ran and what STATE recorded.

查看实际跑了什么、STATE 记下了什么。

agents / mem find

Scenario agents and local memory lookup.

场景 Agent 与本地记忆检索。

Honest constraints a reviewer should see.

审核者应该看到的真实边界。

  • It is a discipline / runtime, not a predictive empirical model of markets or minds.
  • The quality gate is a regex and contract layer, not a semantic judge—it cannot reliably catch irony or complex negation.
  • There is no published downloadable public demo of the private CLI; this site is the public surface.
  • The engine repository remains private. No source, secrets, gateway URLs, or model endpoints are exposed here.
  • 这是纪律 / 运行时,不是对市场或心智的预测型实证模型。
  • 质量门是正则与契约层,不是语义裁判——对反讽与复杂否定不可靠。
  • 没有公开发布的可下载 CLI 演示;本站即公开面。
  • 引擎仓库保持私有。此处不暴露源码、密钥、网关地址或模型端点。

Zhizhong Cai · 蔡志忠

Solo independent AI product manager. Independent practice since August 2025. Building lens as a bootstrapped project on a personal GitHub account—not a funded company.

Public links: GitHub @yuxing28 · X @Jordan00028 · Resume site

独立 AI 产品经理,单人推进。自 2025 年 8 月起独立实践。 lens 为个人 GitHub 账号上的自举项目——不是已融资公司。

公开链接: GitHub @yuxing28 · X @Jordan00028 · 简历站