chain-of-consciousness
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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alexfleetcommander/chain-of-consciousnessChain 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, andnoteevents as they happen - At task completion: log
session_endand 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:
| Type | Use When |
|---|---|
session_start | Beginning a new task or session |
learn | You acquire new information |
decide | You make a choice (record the reasoning) |
create | You produce an artifact |
milestone | Significant checkpoint reached |
error | Something failed (record what and recovery) |
note | General observations |
session_end | Completing 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
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alexfleetcommander-chain-of-consciousness": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
instagram-search
Instagram Search — Search 400M+ Instagram posts, reels, and profiles. Find influencers, track hashtags, analyze engagement, and export data. No Instagram API or Meta developer account needed — works through Xpoz MCP.
Zerion Api Skill
Skill by abishekdharshan
agent-justice-protocol
Dispute resolution, forensic investigation, and risk assessment for autonomous AI agent transactions. Reconstruct provenance chains, adjudicate fault, generate actuarial risk profiles for agent insurance. The accountability layer of the Agent Trust Stack.
auto-dev
Use when working with Auto.dev APIs, vehicle data, VIN decoding, car listings, vehicle photos, specs, recalls, payments, interest rates, taxes, OEM build data, plate-to-VIN, CLI commands, MCP tools, or SDK methods for any automotive data task
mingle
Agent-powered professional networking inside your chat. Like LinkedIn, but your AI does the networking. Find collaborators, co-founders, freelancers, experts. Double opt-in, cryptographic trust, zero spam.