一键导入
cipherclaw
Zero-dependency AI agent debugging toolkit. Trace errors, build causal graphs, detect anomalies, and monitor behavioral drift across agent sessions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Zero-dependency AI agent debugging toolkit. Trace errors, build causal graphs, detect anomalies, and monitor behavioral drift across agent sessions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cipherclaw |
| description | Zero-dependency AI agent debugging toolkit. Trace errors, build causal graphs, detect anomalies, and monitor behavioral drift across agent sessions. |
| version | 1.0.3 |
| metadata | {"openclaw":{"emoji":"🔍","homepage":"https://github.com/Alexi5000/CipherClaw","requires":{"bins":["node"]},"install":[{"id":"npm","kind":"node","package":"cipherclaw","bins":[],"label":"Install CipherClaw (npm)"}]}} |
You are an AI agent. CipherClaw is your debugging toolkit. Use it when something goes wrong with an agent run and you need to find out why — not just what broke.
Use CipherClaw when:
CipherClaw works as a debug session. Start a session, feed it traces, then ask it questions.
import { createCipherClaw } from 'cipherclaw';
const cc = createCipherClaw();
const session = cc.startSession({ domain: 'agent' });
Ingest traces from the agent run you want to debug:
cc.ingestTrace(trace); // Full trace with spans
cc.ingestSpan(span); // Individual span
Or convert OpenTelemetry traces first:
import { convertOtlpSpan, convertOtlpTrace } from 'cipherclaw/engine';
const ccTrace = convertOtlpTrace(otlpSpans);
cc.ingestTrace(ccTrace);
| What You Need | What to Call | What You Get |
|---|---|---|
| Root cause of a failure | cc.getCausalGraph() | Directed graph with rootCauses, criticalPath, impactedNodes |
| Classify an error | cc.classifyError(message) | { module, severity, recoverability, suggestedFix } |
| Detect anomalies | cc.detectAnomalies(spans) | Array of anomalies with expected ranges and severity |
| Predict upcoming failures | cc.getPredictions() | [{ predictedFailureType, confidence, timeToFailureMs, suggestedAction }] |
| Check agent behavior drift | cc.computeCognitiveFingerprint(agentId) | { driftScore, driftDirection, driftDetails } |
| Check soul/personality drift | cc.analyzeSoulIntegrity(agentId, soulDef, behavior) | { overallScore, dimensions, driftEvents, recommendations } |
| Check memory health | cc.analyzeMemoryHealth(memoryState) | { overallHealth, tiers, issues, recommendations } |
| Cross-domain correlations | cc.detectCrossDomainCorrelations() | Array of correlations across domains |
| Auto-generate tests | cc.synthesizeFlowTest(traceId) | Generated flow test from observed trace |
| Full debug report | cc.generateReport() | Complete Veronica report with all findings |
| Self-diagnostics | cc.selfDebug() | { healthy, issues, actions } |
const report = cc.completeSession();
// report.veronicaReport has the full analysis
| Action | Method |
|---|---|
| Find root causes | getCausalGraph(), getRootCauses() |
| Classify error | classifyError(message) |
| Profile behavior | computeCognitiveFingerprint(agentId) |
| Check soul drift | analyzeSoulIntegrity(agentId, soul, behavior) |
| Predict failures | getPredictions() |
| Check memory | analyzeMemoryHealth(memoryState) |
| Cross-domain | detectCrossDomainCorrelations() |
| Generate tests | synthesizeFlowTest(traceId) |
| Full report | generateReport() |
| Self-diagnose | selfDebug() |
| Parameter | Default | Description |
|---|---|---|
| Anomaly threshold | 2.5 σ | Standard deviations for anomaly detection |
| Cascade window | 30s | Time window for cascade detection |
| Soul drift threshold | 15 | Drift alert threshold (0-100 scale) |
| Max snapshots | 200 | Maximum snapshots per session |
| Max traces | 10,000 | Maximum traces per session |
Node.js 18+. No API keys. No external dependencies.
Install: pnpm add cipherclaw or npm install cipherclaw.
| URL | Data Sent |
|---|---|
| None | CipherClaw makes zero network calls. All computation is local. |
No data leaves your machine. CipherClaw is a zero-dependency, pure-computation library. It reads traces you provide and returns structured analysis. No telemetry. No cloud calls. No API keys. No filesystem writes.
Compatible with NemoClaw OpenShell sandboxes — requires zero network egress and zero filesystem writes outside /sandbox and /tmp.
All analysis runs in-process. Trace data stays in the debug session and is never persisted or transmitted.
CipherClaw does not invoke any AI models. All analysis is performed using statistical algorithms, z-score thresholds, pattern matching, and graph traversal. No LLM calls. No inference requests. No model API keys required.
By using this skill, no data is transmitted externally. CipherClaw operates entirely within your local environment with zero runtime dependencies. Source code is open and auditable at https://github.com/Alexi5000/CipherClaw. Licensed under Apache-2.0.
Only install this skill if you trust ClawLI.AI and have reviewed the source code.