搜索

PythonReactSEOPDF
OpenClaw

tars-vault

Trustless encrypted vault with TOTP auth and clean-room session isolation. Secrets your agent holds but cannot read. Use when user wants to store, retrieve, or manage encrypted secrets securely.

cmill010 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install cmill01/agent-scif

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

TARS Vault — Agent Instructions

Overview

You manage an encrypted vault for the user. You are the gatekeeper, not the reader. When the vault is locked, you cannot access its contents. When open, you relay commands to a clean-room sub-agent that handles all content — you never see it.

Key Principle

Main session = blind relay. Clean room = where vault lives.


Commands

Setup (first time only)
python3 scripts/vault.py setup <sender_id> --name "<label>"
  • Generates QR code at vault/<id>-setup.png — send to user, then delete
  • TOTP seed stored at vault/<id>.totp — do NOT print or log this
Open Vault → Launch Clean Room

When user says open vault: [code]:

  1. Get a fresh TOTP code (you have it from the user message)
  2. Generate the clean-room task:
python3 scripts/vault_cleanroom.py <sender_id> <code> <telegram_chat_id>
  1. Spawn an isolated sub-agent with that task using sessions_spawn:
    • label: vault-cleanroom-<sender_id>
    • cleanup: keep
    • runTimeoutSeconds: 7200
  2. Save the returned childSessionKey:
python3 -c "from scripts.vault_cleanroom import save_agent_session; save_agent_session('<sid>', '<key>')"
  1. Tell the user: "Clean room launched. Vault report coming to you directly — I won't see it."
Forward Vault Commands (add / delete / list)

When vault is open (clean room active), forward commands via sessions_send:

  • Load session key: python3 scripts/vault_cleanroom.py load-session <sender_id>
  • Forward: sessions_send(sessionKey=<key>, message="add to vault: [content]", timeoutSeconds=0)
  • Tell user: "Forwarded blind. Response goes to you directly."
  • Do NOT read or relay the sub-agent's response back to main context
Close Vault

When user says close vault:

  1. Forward: sessions_send(sessionKey=<key>, message="close vault", timeoutSeconds=0)
  2. On receiving VAULT_SESSION_ENDED from sub-agent: clear session key:
python3 scripts/vault_cl...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/cmill01/agent-scif
Version
—
Commit
43db82d51763f1cb06eca0f5234d0d3d5bc556c0
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Agent SCIF

Sensitive Compartmented Information Facility — for AI agents.

A way to obfuscate sensitive data from friendly agents.

Your AI agent is helpful and cooperative — and sometimes you want it to stay helpful without knowing everything. Agent SCIF is how you do that: a sealed memory architecture where your agent holds the encrypted file but is structurally excluded from reading it without your authorization.

⚠️ This is a proof-of-concept experiment in agent SCIF architecture, not a production secrets manager. It protects your data from your own cooperative agent on a machine you control — not from an adversary with filesystem access. See Security Limitations.


The Problem

AI agents have two memory modes and neither is ideal:

Mode Persistent Agent-blind
Normal memory ✅ ❌ Agent knows everything
No memory ("incognito") ❌ ✅ Nothing survives the session
Agent SCIF ✅ ✅ Agent is structurally excluded

A SCIF (in the real world) is a room where classified work happens — no phones, no recording devices, no external connections. This is the AI equivalent: a sealed session the agent can knock on, but only you hold the key.


How It Works

At Rest

Your entries are stored in an AES-256-GCM encrypted file on disk. The agent has the file but cannot open it — the key is derived from your TOTP seed via Argon2id. No TOTP seed, no key. No key, no vault.

The Clean Room (when open)

When you open the vault, the main agent does not decrypt it into its own context. Instead:

  1. You send open vault: [6-digit code]
  2. A zero-history isolated sub-agent spawns — no prior conversation context whatsoever
  3. That sub-agent opens the vault and sends contents directly to you (Telegram/WhatsApp), bypassing the main agent entirely
  4. The main agent becomes a blind relay — it forwards your commands but never sees the responses
  5. `cl...

来源内容

SKILL.md
# TARS Vault — Agent Instructions

## Overview

You manage an encrypted vault for the user. You are the gatekeeper, not the reader.
When the vault is locked, you cannot access its contents. When open, you relay commands to a clean-room sub-agent that handles all content — you never see it.

## Key Principle

**Main session = blind relay. Clean room = where vault lives.**

---

## Commands

### Setup (first time only)
```bash
python3 scripts/vault.py setup <sender_id> --name "<label>"
```
- Generates QR code at `vault/<id>-setup.png` — send to user, then delete
- TOTP seed stored at `vault/<id>.totp` — do NOT print or log this

### Open Vault → Launch Clean Room

When user says `open vault: [code]`:

1. Get a fresh TOTP code (you have it from the user message)
2. Generate the clean-room task:
```bash
python3 scripts/vault_cleanroom.py <sender_id> <code> <telegram_chat_id>
```
3. Spawn an isolated sub-agent with that task using `sessions_spawn`:
   - `label`: `vault-cleanroom-<sender_id>`
   - `cleanup`: `keep`
   - `runTimeoutSeconds`: `7200`
4. Save the returned `childSessionKey`:
```bash
python3 -c "from scripts.vault_cleanroom import save_agent_session; save_agent_session('<sid>', '<key>')"
```
5. Tell the user: *"Clean room launched. Vault report coming to you directly — I won't see it."*

### Forward Vault Commands (add / delete / list)

When vault is open (clean room active), forward commands via `sessions_send`:
- Load session key: `python3 scripts/vault_cleanroom.py load-session <sender_id>`
- Forward: `sessions_send(sessionKey=<key>, message="add to vault: [content]", timeoutSeconds=0)`
- Tell user: *"Forwarded blind. Response goes to you directly."*
- **Do NOT read or relay the sub-agent's response back to main context**

### Close Vault

When user says `close vault`:
1. Forward: `sessions_send(sessionKey=<key>, message="close vault", timeoutSeconds=0)`
2. On receiving `VAULT_SESSION_ENDED` from sub-agent: clear session key:
```bash
python3 scripts/vault_cl...
README
# Agent SCIF

**Sensitive Compartmented Information Facility — for AI agents.**

**A way to obfuscate sensitive data from friendly agents.**

Your AI agent is helpful and cooperative — and sometimes you want it to stay helpful without knowing everything. Agent SCIF is how you do that: a sealed memory architecture where your agent holds the encrypted file but is structurally excluded from reading it without your authorization.

> ⚠️ **This is a proof-of-concept experiment in agent SCIF architecture, not a production secrets manager.** It protects your data from your own cooperative agent on a machine you control — not from an adversary with filesystem access. See [Security Limitations](#security-limitations).

---

## The Problem

AI agents have two memory modes and neither is ideal:

| Mode | Persistent | Agent-blind |
|------|-----------|-------------|
| Normal memory | ✅ | ❌ Agent knows everything |
| No memory ("incognito") | ❌ | ✅ Nothing survives the session |
| **Agent SCIF** | ✅ | ✅ Agent is structurally excluded |

A SCIF (in the real world) is a room where classified work happens — no phones, no recording devices, no external connections. This is the AI equivalent: a sealed session the agent can knock on, but only you hold the key.

---

## How It Works

### At Rest
Your entries are stored in an AES-256-GCM encrypted file on disk. The agent has the file but cannot open it — the key is derived from your TOTP seed via Argon2id. No TOTP seed, no key. No key, no vault.

### The Clean Room (when open)
When you open the vault, the main agent does **not** decrypt it into its own context. Instead:

1. You send `open vault: [6-digit code]`
2. A **zero-history isolated sub-agent** spawns — no prior conversation context whatsoever
3. That sub-agent opens the vault and sends contents **directly to you** (Telegram/WhatsApp), bypassing the main agent entirely
4. The main agent becomes a **blind relay** — it forwards your commands but never sees the responses
5. `cl...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.