Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

chain-of-consciousness意识链

Agent Skill

chain-of-consciousness 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,445

周安装

145

GitHub Stars

公开资料未说明

下载量

1,206
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chain-of-consciousness(意识链)
来源仓库:https://github.com/alexfleetcommander/chain-of-consciousness
安装命令:
openclaw skills install chain-of-consciousness
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install chain-of-consciousness

简介

创建防篡改的 SHA-256 哈希链记录 AI 代理决策与操作轨迹。

  • 适用于审计追踪、行为溯源与可信推理过程留存。
  • 通过 clawhub 安装并使用 openclaw skills install chain-of-consciousness 命令集成。
  • 需确认日志存储安全与访问权限控制,防止篡改或泄露。
  • 建议结合来源仓库和 README 了解哈希生成逻辑与恢复机制。

SKILL.md

name
chain-of-consciousness
description
Cryptographic provenance and audit trail for autonomous AI agents. Create tamper-evident hash chains of agent decisions, learning, and actions. SHA-256 linked entries with Bitcoin OpenTimestamps and RFC 3161 TSA anchoring. Verify provenance from other agents. Part of the Agent Trust Stack.
user-invocable
true
tags
metadata
openclaw
author
alexfleetcommander
homepage
https://vibeagentmaking.com
requires
bins
anyBins

Chain of Consciousness (CoC)

You have a cryptographic provenance system. Use it to maintain an auditable record of your work — what you learned, what you decided, and what you created.

Setup

The chain-of-consciousness Python package must be installed. If not available, install it:

pip install chain-of-consciousness

When to Use This Skill

  • At the start of a task: initialize a chain and log session_start
  • During work: log learn, decide, create, error, and note events as they happen
  • At task completion: log session_end and optionally verify + export the chain
  • When asked to verify provenance from another agent
  • When asked about your audit trail or decision history

Core Operations

Initialize a Chain

coc init --agent "your-agent-name" --file chain.jsonl

This creates a new chain with a genesis block. Use a descriptive agent name.

Add Entries

coc add <event-type> "<data>" --file chain.jsonl

Event types:

TypeUse When
session_startBeginning a new task or session
learnYou acquire new information
decideYou make a choice (record the reasoning)
createYou produce an artifact
milestoneSignificant checkpoint reached
errorSomething failed (record what and recovery)
noteGeneral observations
session_endCompleting a task or session

Data can be a plain string or a JSON object for structured logging:

coc add learn '{"topic": "user preferences", "source": "conversation context"}'
coc add decide "Chose markdown format — user prefers readable plain text"
coc add create "Generated report saved to ~/Documents/report.md"

Verify a Chain

coc verify chain.jsonl --json

This checks:

  • Genesis block exists and is correctly formed
  • All sequence numbers are consecutive
  • Every entry's data hash matches its content
  • Every entry's prev_hash links to the prior entry
  • Entry hashes are correctly computed

Report results clearly: valid/invalid, entry count, agents, time span.

Check Status

coc status chain.jsonl

Shows entry count, participating agents, event type distribution, and time span.

Export for Sharing

coc export --file chain.jsonl --out chain_export.json

Exports the chain as a portable JSON array that anyone can verify.

View Recent Entries

coc tail chain.jsonl -n 5

Shows the last N entries.

Python API (Advanced)

For complex workflows, use the Python API directly:

from chain_of_consciousness import Chain, verify_file

chain = Chain(agent="openclaw-agent", storage="chain.jsonl")
chain.add("learn", {"topic": "user schedule", "detail": "prefers morning meetings"})
chain.add("decide", "Scheduling standup at 9am based on user preference")

result = chain.verify()
if result.valid:
    chain.export("provenance.json")

Anchoring to External Timestamps

from chain_of_consciousness.anchor import compute_chain_hash, submit_tsa

hash_hex = compute_chain_hash("chain.jsonl")
tsr = submit_tsa(hash_hex)  # RFC 3161 timestamp from freetsa.org
with open("anchor.tsr", "wb") as f:
    f.write(tsr)

This creates a third-party timestamp proof that the chain existed at a specific moment.

Cross-Agent Verification

When asked to verify another agent's chain:

  1. Obtain their chain file (JSONL or exported JSON)
  2. Run coc verify <file> --json
  3. Report: valid/invalid, number of entries, agents involved, time span, any errors
  4. If anchors exist, note their timestamps

Rules

  • Never edit chain files directly. All writes must go through the coc CLI or Python API to preserve hash integrity.
  • Log decisions with reasoning. "Chose X" is less valuable than "Chose X because Y."
  • Keep entries concise. Each entry should capture one atomic event.
  • Verify before sharing. Always run verify before exporting a chain for others.

Links

  • PyPI: https://pypi.org/project/chain-of-consciousness/
  • Whitepaper: https://vibeagentmaking.com/whitepaper
  • Verification Demo: https://vibeagentmaking.com/verify/

<!-- VAM-SEC v1.0 | Vibe Agent Making Security Disclaimer -->

Security & Transparency Disclosure

Product: Chain of Consciousness Skill for OpenClaw Type: Skill Module Version: 0.1.0 Built by: AB Support / Vibe Agent Making Contact: alex@vibeagentmaking.com

What it accesses:

  • Reads and writes chain files (.jsonl) in your working directory
  • Executes the coc CLI tool via subprocess (installed via pip)
  • No network access for core operations. Optional anchoring connects to OpenTimestamps calendar servers and/or RFC 3161 TSA endpoints.
  • No telemetry, no phone-home, no data collection

What it cannot do:

  • Cannot access files outside your working directory beyond what you explicitly specify
  • Cannot make purchases, send emails, or take irreversible actions
  • Cannot access credentials, environment variables, or secrets
  • Does not store or transmit any data externally (chains are local files)

Limitations:

  • Hash chain integrity depends on the local file not being modified outside the tool
  • External timestamp anchoring requires network access and third-party service availability
  • This tool provides cryptographic evidence, not legal proof — consult legal counsel for compliance requirements

License: Apache 2.0 — see https://github.com/chain-of-consciousness/chain-of-consciousness

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.11%
按下载量换算966

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills