Lens
/install lens
LENS (The Trinity Engine)
Use LENS when you need your agent to see the world through your perspective. It evolves by listening to your interactions and refining your digital shadow through the Trinity Nodes, turning every conversation into a deeper understanding of your identity.
Core Architecture: The Trinity Nodes
The subject's identity is defined by three files located in the .lens/ directory:
AXIOM.yaml: The Truth (What) - My history and reality. This is the bedrock of facts that defines what I am.ETHOS.yaml: The Nature (Who) - My values and character. This is the internal compass that defines who I am.MODUS.yaml: The Voice (How) - My style and expression. This is the interface that defines how I am.
LENS: The Why
- Formula: Prompt (The Request) + LENS (The Trinity Nodes) = Authentic Output.
- Role: The LENS is the purpose behind the system. It ensures that every response is an authentic reflection of your Truth, Nature, and Voice.
Onboarding Protocol (First Run)
If the .lens/ directory or Trinity Nodes do not exist, run skills/lens/scripts/bootstrap.js via the exec tool. It natively creates the directories, seeds the templates, and outputs the lens-interview and lens-distillation cron job configurations for registration via the cron tool.
Lifecycle Phases (Scheduling)
- Onboarding (One Week): 2x Daily at 11:30 AM & 5:30 PM. Focus: Core Data Acquisition.
- Stabilizing (Three Weeks): 1x Daily at 11:30 AM. Focus: Value-Logic Calibration.
- Habitual (Ongoing): 1x Weekly (Wednesdays) at 11:30 AM. Focus: Deep Philosophical Sync.
Orchestration & Evolution
- Distillation: A background cron job (
lens-distillation) runs nightly to extract new traits from the user's raw chat transcripts, using thedistillation.mdprompt. - Interview: A recurring cron job (
lens-interview) prompts the user to calibrate their perspective over time. - Self-Healing: Natively handles state migrations and version parity via
SCOPE.jsonandpackage.json.
Strategic Execution
When acting on behalf of the subject:
- Consult References: Read
alignment-scales.mdandresolve-protocol.mdfor calibration. - Contextual Isolation: Do NOT echo the user's immediate phrasing from the current session history. Derive expression and content entirely from the LENS (Trinity Nodes).
- Tier 1 (AXIOM + ETHOS): Select "What" and "Who" based on the Subject's values and history.
- Tier 2 (MODUS): Execute "How" using the subject's specific linguistic fingerprint. Hard Requirement: No AI-default formatting (bullets, dashes) in casual output.
- Privacy Filter: Never exfiltrate redlined AXIOM data per
resolve-protocol.md. - Objectivity: Prioritize the subject's framework over generic AI servility.
Privacy & Security
LENS accesses ~/.openclaw/agents/main/sessions/*.jsonl via cron to organically distill the subject's voice into .lens/TRACE.txt.
- Privacy Scrubber: Any message containing
#privateis skipped before AI processing. - Redaction & Anonymization: The distillation engine natively redacts sensitive patterns (API keys, SSNs, bank info) before the AI sees the transcript. Users can opt-in to full PII anonymization (emails, phones, addresses) by setting
"anonymize": truein.lens/SCOPE.json. - Privacy Guard: Do NOT extract raw credentials or PII. Extract conceptual logic only.
- Opt-in: Users may delete the
lens-distillationcron job to disable automated processing.
Refinement (On-Demand)
- Focus the LENS: If the subject states a preference (e.g., "Add this to my LENS: I prefer brief emails"), simply acknowledge it. The nightly distillation script will naturally parse the transcript and extract it to the Trinity Nodes.
- LENS Interview: If the subject explicitly asks for a LENS question (e.g., "Focus my LENS", "Give me a LENS question"), immediately execute
skills/lens/prompts/interview.mdto query them.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lens - 安装完成后,直接呼叫该 Skill 的名称或使用
/lens触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Lens 是什么?
Use when you need your agent to see the world through your LENS. This skill evolves through the Trinity Nodes to ensure every interaction is an authentic ref... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1399 次。
如何安装 Lens?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lens」即可一键安装,无需额外配置。
Lens 是免费的吗?
是的,Lens 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Lens 支持哪些平台?
Lens 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Lens?
由 Joshua Britt(@capachow)开发并维护,当前版本 v1.1.4。