Xpersona
A

Amber Hunter

CLAWHUB · Unverified

Amber-Hunter is a local AI memory engine that encrypts, stores, and summarizes OpenClaw/Claude sessions and files for instant recall and optional cloud sync. Skill: Amber Hunter Owner: ankechenlab-node Summary: Amber-Hunter is a local AI memory engine that encrypts, stores, and summarizes OpenClaw/Claude sessions and files for instant recall and optional cloud sync. Tags: ai:1.2.9, ai-memory:0.8.7, cross-platform:0.8.7, encryption:1.2.34, freeze:0.8.7, huper:1.2.34, latest:1.2.41, local:0.8.7, memory:1.2.34, privacy:0.8.7, productivity:1.2.9, recall:1.2.34, session:0.8.7,

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17b8543dq7w9kmxgky4dqy1bn83g5r4:amber-hunter
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ankechenlab-node-amber-hunter/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
title: amber-hunter
summary: Long-term memory and knowledge compilation skill for Claude Code — manages memory capsules, insight caching, semantic/keyword hybrid recall, DID E2E encryption, and AI-driven knowledge wiki compiler.
version: 1.2.41
source: ~/.openclaw/skills/amber-hunter/amber_hunter.py
protocol: FastAPI / Bearer Token / localhost-only admin ops
port: 18998
---

# amber-hunter — AI 第二大脑 Skill

## What It Is

amber-hunter 是运行在本地(port 18998)的 FastAPI 服务,为 Claude Code 提供长期记忆能力和知识自动编译能力。

**核心能力矩阵:**

| 能力 | 说明 | 引入版本 |
|------|------|---------|
| 记忆胶囊 | 持久化存储 AI 工作产生的想法/决策/上下文 | v1.0 |
| 混合搜索 | LanceDB 向量 + 关键词联合检索 | v1.2.27 |
| 意图预测 | 根据 session 内容预测下一步最可能的需求 | v1.2.27 |
| DID E2E 加密 | 设备绑定加密,云端隐私保护 | v1.2.24 |
| 知识编译器 | 同类胶囊自动编译成 wiki 概念页 | v1.2.38 |

## 启动

```bash
cd ~/.openclaw/skills/amber-hunter
python3 amber_hunter.py
# 或后台运行
python3 amber_hunter.py &
```

服务启动时:
1. 自动初始化 SQLite 数据库(`memory.db`)
2. 启动编译 daemon(每 6 小时扫描一次覆盖缺口)
3. 冷启动编译(启动时如果有覆盖缺口,立即触发一次)

## 认证

| 操作 | 认证方式 |
|------|---------|
| 所有外部请求 | Bearer Token(从 `/token` 获取,写入 `~/.openclaw/token`)|
| `/token`, `/bind-apikey`, `/master-password` | 强制 localhost 检查 |
| Bearer Token 调用 | 在 `Authorization: Bearer <token>` Header 中传递 |

**Token 获取流程(首次设置):**
```bash
# 1. 启动服务
python3 amber_hunter.py

# 2. 从本地获取 token(仅 localhost 可访问)
curl http://localhost:18998/token
# 返回: {"token": "xxx"}

# 3. 写入本地配置
echo "Bearer xxx" > ~/.openclaw/token
```

## API 端点总览

### 无需认证(localhost)

| 端点 | 方法 | 说明 |
|------|------|------|
| `GET /status` | GET | 服务状态、版本、平台、胶囊数 |
| `GET /token` | GET | 读取本地 API Token |
| `POST /bind-apikey` | POST | 更新 Huper 云端 API Key(存 Keychain)|
| `POST /master-password` | POST | 设置 master_password(Keychain)|

### 核心 — 胶囊管理(Bearer Token)

| 端点 | 方法 | 说明 |
|------|------|------|
| `/capsules` | GET | 列出胶囊(支持 `category_path` 过滤 + 分页 `limit`)|
| `/capsules` | POST | 创建胶囊 |
| `/capsules/{id}` | GET | 获取单个胶囊详情 |
| `/capsules/{id}` | PATCH | 更新胶囊 |
| `/capsules/{id}` | DELETE | 删除胶囊 |

### 核心 — 记忆召回(Bearer Token)

| 端点 | 方法 | 说明 |
|------|------|------|
| `/recall` | GET | 混合搜索(向量+关键词+LanceDB,rerank)|
| `/rerank` | POST | 强制 LLM 重排候选记忆 |
| `/classify` | GET | 关键词+LLM fallback 分类 |
| `/extract` | POST | 从文本中提取记忆(LLM 驱动)|
| `/ingest` | POST | AI 主动写入记忆(→ 入库或审阅队列)|

**`/recall` 参数:**

| 参数 | 类型 | 默认 | 说明 |
|------|------|------|------|
| `q` | string | 必填 | 查询文本 |
| `rerank` | bool | false | 是否启用 LLM rerank (deprecated, use rerank_engine) |
| `rerank_engine` | string | "auto" | 重排序引擎:auto \| model \| llm \| none |
| `hyde` | bool | false | 是否启用 HyDE(假设性答案增强检索)v1.2.41 |
| `multi_hop` | bool | false | 是否启用多跳检索 v1.2.41 |
| `limit` | int | 3 | 返回数量 |
| `category_path` | string | "" | MFS路径过滤 |
| `use_insights` | bool | true | 是否优先返回 insight 缓存 |
| `citation` | int | 0 | 1=返回 embedding 裁剪的片段 |

**`/recall` 响应新增字段(v1.2.41):**

| 字段 | 类型 | 说明 |
|------|------|------|
| `rerank_time_ms` | float | reranker 耗时(毫秒) |
| `hyde_time_ms` | float | HyDE 生成耗时(毫秒) |
| `retrieval_hops` |

proactive/README.md

---
name: amber-proactive
version: 3.1.0
description: "Amber proactive memory capture. Zero-LLM script — pushes session extraction tasks to the queue. Extraction is handled by the agent's models during heartbeat. Supports bilingual triggers (Chinese + English)."
---

# Amber-Proactive Skill

> 让琥珀主动记忆,无需开口。

---

## 工作原理

```
cron(每15分钟)
  → proactive-check.js V3.1(Zero-LLM)
    → 检查 session 消息数 ≥ 20 条
    → 写入待提取队列 pending_extract.jsonl
agent heartbeat(每 10 分钟)
    → 读取 pending_extract.jsonl
    → 调用自身的大模型提取关键事实
    → 写入胶囊到 amber-hunter
```

**Zero-LLM**:脚本内部只负责整理对话文本,不调用外部大模型,无需配置 API Key,完全依赖 Agent 自身能力处理信息。

---

## 触发方式

### 自动触发(cron,每15分钟)

阈值:session 消息数 ≥ 20 条。

### 手动触发(agent)

| 中文 | English |
|------|---------|
| 保存、记住、冻结、留住 | save, remember, freeze, capture |

手动不受消息数量限制,任意对话量都能触发。

---

## 使用方式

```bash
# 自动(cron 触发)
node ~/.openclaw/workspace/skills/amber-proactive/scripts/proactive-check.js

# 手动强制触发
node ~/.openclaw/workspace/skills/amber-proactive/scripts/proactive-check.js --manual
```

---

## 日志

```bash
tail -f ~/.amber-hunter/amber-proactive.log
```

---

## 文件结构

```
amber-hunter/
└── proactive/
    ├── README.md
    └── scripts/
        └── proactive-check.js   # V3.1 Zero-LLM script
```

---

## 版本历史

- **v3.1.0**:回归架构初衷,脚本移除 LLM 调用 (Zero-LLM),变为纯队列推送,由 agent 的 heartbeat 流程完成提取和写入。
- **v0.4.1**:完全自包含,脚本内部完成 LLM 提取+写胶囊,cron 直接触发,不需要 agent (V4)
- **v0.3.0**:LLM extraction via agent model(实验版)
- **v0.2.0**:Signal-based capture(已废弃)
- **v0.1.0**:Initial

---

*Built for the [Huper琥珀](https://huper.org) ecosystem.*

README.md

# 🌙 Amber-Hunter

> A local perception engine for [Huper琥珀](https://huper.org) — turns your AI collaboration sessions into frozen, searchable personal memories.

**Amber-Hunter** runs on Mac, Windows, and Linux, constantly watching your OpenClaw agent sessions. When you're ready to freeze "this moment", it captures the conversation context, recent file changes, and stores everything in an encrypted local capsule — ready to be searched and woken anytime.

---

## What It Does

- **Session Capture** — Reads OpenClaw session transcripts, extracts meaningful user/assistant exchanges
- **File Monitoring** — Tracks recently modified workspace files automatically
- **Instant Freeze** — One click to capture "what am I working on right now"
- **Local Encryption** — AES-256-GCM, master password never leaves your Mac
- **Cloud Sync (optional)** — Encrypts before uploading to your [huper.org](https://huper.org) account

---

## Installation

### Prerequisites
- macOS / Windows / Linux
- Python 3.10+
- [OpenClaw](https://github.com/openclaw/openclaw)
- Internet connection (for cloud sync)

### Quick Start
```bash
# Run the installer (works on all platforms)
bash ~/.openclaw/skills/amber-hunter/install.sh
```

# Then open https://huper.org/dashboard → "Encryption" tab to set your master password
```

### Manual Setup
```bash
# Install dependencies
pip install -r requirements.txt

# Create config (get your API key from https://huper.org/dashboard)
mkdir -p ~/.amber-hunter
echo '{"api_key": "your-key", "huper_url": "https://huper.org/api"}' > ~/.amber-hunter/config.json

# Start service
python3 amber_hunter.py &
```

### Get Your API Key
1. Go to [huper.org/dashboard](https://huper.org/dashboard)
2. Login → API Key tab → Generate new key
3. Paste into `~/.amber-hunter/config.json` as `api_key`

---

## Usage

### Freeze via Browser
Open [huper.org](https://huper.org), click "冻结当下" — amber-hunter pre-fills the modal with your current session context and related files.

### Freeze via Terminal
```bash
bash ~/.openclaw/skills/amber-hunter/freeze.sh
```

### Check Status
```bash
curl http://localhost:18998/status
```

---

## API Reference

| Endpoint | Method | Auth | Description |
|----------|--------|------|-------------|
| `/status` | GET | None | Service status |
| `/token` | GET | localhost | Get local API key |
| `/session/summary` | GET | None | OpenClaw conversation summary |
| `/session/files` | GET | None | Recent workspace files |
| `/freeze` | GET/POST | Bearer or ?token= | Trigger freeze |
| `/capsules` | GET | Bearer | List local capsules |
| `/capsules` | POST | Bearer | Create capsule |
| `/capsules/{id}` | GET | Bearer | Get capsule |
| `/capsules/{id}` | DELETE | Bearer | Delete capsule |
| `/sync` | GET | Bearer or ?token= | Sync to cloud |
| `/config` | GET/POST | Bearer or ?token= | Read/set auto_sync config |
| `/recall` | GET | Bearer or ?token= | Retrieve relevant memories, get injection prompts |
| `/master-password` | POST | localhost | S

_meta.json

{
  "ownerId": "kn7716k7fpe6ad36cdrmaj25s181wm6x",
  "slug": "amber-hunter",
  "version": "1.2.41",
  "publishedAt": 1775788477877
}

AGENTS.md

<!-- gitnexus:start -->
# GitNexus — Code Intelligence

This project is indexed by GitNexus as **amber-hunter** (930 symbols, 7750 relationships, 80 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.

> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.

## Always Do

- **MUST run impact analysis before editing any symbol.** Before modifying a function, class, or method, run `gitnexus_impact({target: "symbolName", direction: "upstream"})` and report the blast radius (direct callers, affected processes, risk level) to the user.
- **MUST run `gitnexus_detect_changes()` before committing** to verify your changes only affect expected symbols and execution flows.
- **MUST warn the user** if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- When exploring unfamiliar code, use `gitnexus_query({query: "concept"})` to find execution flows instead of grepping. It returns process-grouped results ranked by relevance.
- When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use `gitnexus_context({name: "symbolName"})`.

## When Debugging

1. `gitnexus_query({query: "<error or symptom>"})` — find execution flows related to the issue
2. `gitnexus_context({name: "<suspect function>"})` — see all callers, callees, and process participation
3. `READ gitnexus://repo/amber-hunter/process/{processName}` — trace the full execution flow step by step
4. For regressions: `gitnexus_detect_changes({scope: "compare", base_ref: "main"})` — see what your branch changed

## When Refactoring

- **Renaming**: MUST use `gitnexus_rename({symbol_name: "old", new_name: "new", dry_run: true})` first. Review the preview — graph edits are safe, text_search edits need manual review. Then run with `dry_run: false`.
- **Extracting/Splitting**: MUST run `gitnexus_context({name: "target"})` to see all incoming/outgoing refs, then `gitnexus_impact({target: "target", direction: "upstream"})` to find all external callers before moving code.
- After any refactor: run `gitnexus_detect_changes({scope: "all"})` to verify only expected files changed.

## Never Do

- NEVER edit a function, class, or method without first running `gitnexus_impact` on it.
- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- NEVER rename symbols with find-and-replace — use `gitnexus_rename` which understands the call graph.
- NEVER commit changes without running `gitnexus_detect_changes()` to check affected scope.

## Tools Quick Reference

| Tool | When to use | Command |
|------|-------------|---------|
| `query` | Find code by concept | `gitnexus_query({query: "auth validation"})` |
| `context` | 360-degree view of one symbol | `gitnexus_context({name: "validateUser"})` |
| `impact` | Blast radius before editing | `gitnexus_impact({target: "X", direction: "upstream"})` |
| `detect_changes` | Pre-commit scope check | `gitnexus_d

Sponsored

Ads related to Amber Hunter and adjacent AI workflows.