Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

transcendence-memory超越记忆

Agent Skill

transcendence-memory 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

514

周安装

21

GitHub Stars

1

下载量

165
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:transcendence-memory(超越记忆)
来源仓库:https://github.com/leekkk2/transcendence-memory
仓库路径:skills/transcendence-memory
安装命令:
npx skills add https://github.com/leekkk2/transcendence-memory --skill transcendence-memory
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/leekkk2/transcendence-memory --skill transcendence-memory

简介

transcendence-memory 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配和来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • 建议结合原始 README 文档进一步验证具体用法和功能边界。

SKILL.md

What This Skill Does

Provides self-hosted long-term memory for AI agents by connecting to the transcendence-memory-server backend.

Core capabilities:

  • Connect: complete authentication in one step with a connection token or manual configuration
  • Text memory: manage structured memories through lightweight CRUD endpoints
  • Multimodal RAG: upload documents (PDF, image, or Markdown) or raw text into the RAG-Anything pipeline, then ask natural-language questions and get LLM-generated answers
  • Container management: list and delete containers
  • Troubleshooting: diagnose connection and retrieval issues

Install

npx skills add https://github.com/leekkk2/transcendence-memory --skill transcendence-memory

Or inside a Claude Code session:

/plugin marketplace add leekkk2/transcendence-memory
/plugin install transcendence-memory

Principles

  • Keep builtin memory: server-side memory augments the agent's builtin memory instead of replacing it
  • Zero dependency: no extra package installation is required; the agent can do everything with native tools such as curl, file I/O, and the Python standard library
  • Progressive loading: read references/setup.md during first-time setup, then this file is enough for day-to-day use

Built-in Commands

These commands can be invoked through /transcendence-memory <command> or the short form /tm <command>:

CommandPurposeExample
connect <token>Import a connection token and write local config/tm connect eyJlbmRw...
connect --manualEnter endpoint, api_key, and container manually/tm connect --manual
statusCheck connection status and server health/tm status
search <query>Run semantic search over memories/tm search architecture decision from the last deployment
search --match <pattern> <query>Search across all containers whose name fuzzy-matches <pattern>/tm search --match yzjx docker compose
search --all <query>Search across every container at once/tm search --all release notes
remember <text>Store one memory quickly/tm remember Port conflicts caused the deployment failure
update <id> <text>Update an existing memory's text in the current container/tm update mem-001 New corrected content
embedRebuild the index for the current container/tm embed
query <question>Run a multimodal RAG query and get an LLM-generated answer/tm query What is the overall project architecture?
upload <file>Upload a file into the knowledge graph/tm upload./design.pdf
containers [pattern]List containers, optionally filtered by a fuzzy pattern/tm containers yzjx
batch <file.jsonl>Bulk import memories/tm batch memories.jsonl
auto onEnable automatic memory on git commits/tm auto on
auto offDisable automatic memory/tm auto off
auto statusShow auto-memory configuration/tm auto status

Command: connect

Import a connection token or configure the connection manually.

Token mode (recommended):

# Automatically run by the agent after it receives a token:
TOKEN="$1"  # base64 token provided by the user
DECODED=$(echo "$TOKEN" | base64 -d)
ENDPOINT=$(echo "$DECODED" | python3 -c "import sys,json; print(json.load(sys.stdin)['endpoint'])")
API_KEY=$(echo "$DECODED" | python3 -c "import sys,json; print(json.load(sys.stdin)['api_key'])")
CONTAINER=$(echo "$DECODED" | python3 -c "import sys,json; print(json.load(sys.stdin)['container'])")

mkdir -p ~/.transcendence-memory && chmod 700 ~/.transcendence-memory
cat > ~/.transcendence-memory/config.toml << EOF
[connection]
endpoint = "$ENDPOINT"
container = "$CONTAINER"

[auth]
mode = "api_key"
api_key = "$API_KEY"
EOF
chmod 600 ~/.transcendence-memory/config.toml

# Verify the connection
curl -sS "$ENDPOINT/health"

Manual mode: ask the user for endpoint, api_key, and container, then write config.toml.

Command: status

Check connection and server status:

# Read local config
CONFIG="$HOME/.transcendence-memory/config.toml"
ENDPOINT=$(grep '^endpoint' "$CONFIG" | sed 's/.*= *"//' | sed 's/".*//')
API_KEY=$(grep '^api_key' "$CONFIG" | sed 's/.*= *"//' | sed 's/".*//')
CONTAINER=$(grep '^container' "$CONFIG" | sed 's/.*= *"//' | sed 's/".*//')

# Health check
curl -sS "$ENDPOINT/health" | python3 -m json.tool

# Authentication test
curl -sS -X POST "$ENDPOINT/search" \
  -H "X-API-KEY: $API_KEY" -H "Content-Type: application/json" \
  -d "{\"container\":\"$CONTAINER\",\"query\":\"test\",\"topk\":1}"

Command: search

Single-container (default):

curl -sS -X POST "${ENDPOINT}/search" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d "{\"container\":\"${CONTAINER}\",\"query\":\"$ARGUMENTS\",\"topk\":5}"

Fuzzy multi-container — --match <pattern> <query>:

PATTERN="$1"; shift; QUERY="$*"
curl -sS -X POST "${ENDPOINT}/search" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d "{\"container_pattern\":\"${PATTERN}\",\"query\":\"${QUERY}\",\"topk\":5}"

All containers — --all <query>:

QUERY="$*"
curl -sS -X POST "${ENDPOINT}/search" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d "{\"container_pattern\":\"\",\"query\":\"${QUERY}\",\"topk\":10}"
跨容器响应里每条 hit 会带 container 字段,并附 containers / per_container_status 用于诊断。topk 是合并后的全局上限,不是每容器独立。

Command: remember

Quickly store one memory with an auto-generated ID and automatic embedding:

MEM_ID="mem-$(date +%s)"
curl -sS -X POST "${ENDPOINT}/ingest-memory/objects" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d "{\"container\":\"${CONTAINER}\",\"objects\":[{\"id\":\"${MEM_ID}\",\"text\":\"$ARGUMENTS\",\"tags\":[]}],\"auto_embed\":true}"

Command: update

更新当前容器内某条记忆的文本(最常用的字段)。更新后必须执行 /tm embed 刷新索引。

MEM_ID="$1"; shift; NEW_TEXT="$*"
curl -sS -X PUT "${ENDPOINT}/containers/${CONTAINER}/memories/${MEM_ID}" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d "$(python3 -c 'import json,sys; print(json.dumps({"text": sys.argv[1]}))' "${NEW_TEXT}")"
echo "提示:执行 /tm embed 以刷新索引。"
需要同时更新 title / tags / metadata 时,直接走 Quick Reference 中的 PUT 调用即可。

Command: containers

列出当前 endpoint 下的容器,可选模糊过滤:

PATTERN="${1:-}"
URL="${ENDPOINT}/containers"
[ -n "$PATTERN" ] && URL="${URL}?pattern=${PATTERN}"
curl -sS "$URL" -H "X-API-KEY: ${API_KEY}"

示例:

  • /tm containers — 列出全部
  • /tm containers yzjx — 列出名字里包含 yzjx 的容器(大小写不敏感)

Command: query

Run a multimodal RAG query with knowledge graph retrieval plus LLM answer generation:

curl -sS -X POST "${ENDPOINT}/query" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d "{\"query\":\"$ARGUMENTS\",\"container\":\"${CONTAINER}\",\"mode\":\"hybrid\",\"top_k\":60}"

Command: upload

Upload a file into the knowledge graph:

curl -sS -X POST "${ENDPOINT}/documents/upload" \
  -H "X-API-KEY: ${API_KEY}" \
  -F "file=@$1" \
  -F "container=${CONTAINER}"

Command: batch

Bulk ingest memories with the bundled script:

python3 <skill-path>/scripts/batch-ingest.py \
  "${ENDPOINT}" "${API_KEY}" "${CONTAINER}" "$1" [options]

Supported options:

OptionDefaultPurpose
--max-bytes N512000单批最大字节数
--batch-size N50单批最大条数
--redactoff入库前对常见敏感信息脱敏(API key、token、私钥等)
--probeoff入库前先探测 /ingest-memory/contract 确认接口 schema
--resumeoff基于进度文件跳过已成功的行(断点续传)
--failed-log F<input>.failed.jsonl失败对象写入指定文件

The script uses WAF-compatible request headers, auto-splits batches on HTTP 413, and logs failed objects for retry.

Quick Reference (for configured users)

Text Memories (lightweight path)

# Search memories
curl -sS -X POST "${ENDPOINT}/search" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d '{"container":"${CONTAINER}","query":"what you want to search for","topk":5}'

# Store a memory
curl -sS -X POST "${ENDPOINT}/ingest-memory/objects" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d '{"container":"${CONTAINER}","objects":[{"id":"mem-001","text":"content to store","tags":["tag1"]}]}'

# Rebuild the index after storing a new memory
curl -sS -X POST "${ENDPOINT}/embed" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d '{"container":"${CONTAINER}","background":false,"wait":true}'

# Update a memory
curl -sS -X PUT "${ENDPOINT}/containers/${CONTAINER}/memories/mem-001" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d '{"text":"updated content","tags":["new-tag"]}'

# Delete a memory
curl -sS -X DELETE "${ENDPOINT}/containers/${CONTAINER}/memories/mem-001" \
  -H "X-API-KEY: ${API_KEY}"
After updating or deleting a memory, run /embed to refresh the index.

Multimodal RAG (RAG-Anything pipeline)

# Ingest raw text into the knowledge graph
curl -sS -X POST "${ENDPOINT}/documents/text" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d '{"container":"${CONTAINER}","text":"long text to ingest...","description":"optional description"}'

# Upload a file (PDF, image, or Markdown)
curl -sS -X POST "${ENDPOINT}/documents/upload" \
  -H "X-API-KEY: ${API_KEY}" \
  -F "file=@/path/to/document.pdf" \
  -F "container=${CONTAINER}"

# Multimodal RAG query that returns an LLM-generated answer
curl -sS -X POST "${ENDPOINT}/query" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d '{"query":"your question","container":"${CONTAINER}","mode":"hybrid","top_k":60}'

Container Management

# List all containers
curl -sS "${ENDPOINT}/containers" -H "X-API-KEY: ${API_KEY}"

# Fuzzy filter by name (case-insensitive substring; mode also supports prefix / glob)
curl -sS "${ENDPOINT}/containers?pattern=yzjx" -H "X-API-KEY: ${API_KEY}"

# Delete a container
curl -sS -X DELETE "${ENDPOINT}/containers/${CONTAINER}" \
  -H "X-API-KEY: ${API_KEY}"

# Health check
curl -sS "${ENDPOINT}/health"

Variables are read from the local config file ~/.transcendence-memory/config.toml.

First-Time Setup

On first use, read references/setup.md to complete configuration.

The core flow has only two steps:

  1. Get a connection token from the server (through the /export-connection-token endpoint or from an administrator)
  2. Run /tm connect <token> to finish setup automatically

Or run /tm connect --manual and enter the values step by step.

After configuration is complete, references/setup.md no longer needs to be loaded into context.

API Reference

See references/api-reference.md for full request and response formats.

Lightweight Path (text memory CRUD)

EndpointMethodPurposeAuth
/healthGETHealth checkNot required
/searchPOSTSearch memoriesRequired
/embedPOSTRebuild indexRequired
/ingest-memory/objectsPOSTWrite typed objectsRequired
/ingest-memory/contractGETInspect ingest semantic boundariesNot required
/ingest-structuredPOSTIngest structured JSONRequired
/containers/{container}/memories/{id}PUTUpdate a memoryRequired
/containers/{container}/memories/{id}DELETEDelete a memoryRequired

Multimodal Path (RAG-Anything pipeline)

EndpointMethodPurposeAuth
/documents/textPOSTIngest text into the knowledge graphRequired
/documents/uploadPOSTUpload PDF, image, or Markdown documentsRequired
/queryPOSTRun a multimodal RAG queryRequired

Administrative Endpoints

EndpointMethodPurposeAuth
/containersGETList containersRequired
/containers/{name}DELETEDelete a containerRequired
/export-connection-tokenGETExport a connection tokenRequired
/jobs/{pid}GETAsync job statusRequired

Authentication methods: X-API-KEY: <api-key> or Authorization: Bearer <api-key>

Architecture Overview

See references/ARCHITECTURE.md.

Agent --HTTPS + API Key--> transcendence-memory-server
                            |-- FastAPI HTTP layer
                            |-- Container isolation
                            |-- Lightweight path: /search + /ingest + /embed
                            |   `-- Embedding -> LanceDB vector store
                            `-- Multimodal path: /documents + /query
                                `-- RAG-Anything -> knowledge graph -> LLM answer

Troubleshooting

See references/troubleshooting.md.

Common quick checks:

  • Cannot connect: run /tm status or curl -sS "${ENDPOINT}/health"
  • 401/403: verify that the API key is correct
  • Search returns empty: run /tm embed first to rebuild the index
  • Search returns 200 but the body contains an error: treat it as a failure and inspect the server logs
  • Document upload fails: verify file type and size (supported types include PDF, image, and Markdown)
  • Query returns empty: make sure content has been ingested through /documents/text or /documents/upload
  • Updates or deletes do not appear in search: run /tm embed to refresh the index

Batch and Async Operations

Bulk Ingest (large memory sets)

When you need to ingest dozens to thousands of memories:

# 基本用法
/tm batch memories.jsonl

# 大规模入库推荐:探测 contract + 脱敏 + 断点续传
python3 <skill-path>/scripts/batch-ingest.py \
  "${ENDPOINT}" "${API_KEY}" "${CONTAINER}" memories.jsonl \
  --probe --redact --resume --max-bytes 500000

The script batches by both count and byte size, uses WAF-compatible headers, auto-splits on 413, supports secrets redaction, contract probing, resume, and failed-object logging. Zero external dependencies.

Async Tasks

/embed and /documents/upload support async mode:

# Submit an index rebuild asynchronously
curl -sS -X POST "${ENDPOINT}/embed" \
  -H "X-API-KEY: ${API_KEY}" -H "Content-Type: application/json" \
  -d '{"container":"${CONTAINER}","background":true}'

# Check async task status
curl -sS "${ENDPOINT}/jobs/${PID}" -H "X-API-KEY: ${API_KEY}"

Choosing an Operation Mode

ScenarioRecommended approach
Health checks, single searches, or a few memory writesBuilt-in /tm commands
Bulk ingest of dozens to thousands of memories/tm batch file.jsonl --probe --redact
Large-scale ingest with sensitive contentAdd --redact --resume --failed-log
Rebuilding a large container index/tm embed or async mode
Adding documents to the knowledge graph/tm upload file.pdf or /documents/text
Asking for an LLM-synthesized answer/tm query your question

Command: auto

Enable, disable, or check automatic memory management.

Enable — creates a marker file so hooks auto-store commit summaries:

mkdir -p ~/.transcendence-memory
touch ~/.transcendence-memory/auto-memory.enabled
echo "Automatic memory enabled. Git commit summaries will be stored automatically."

Disable — removes the marker file:

rm -f ~/.transcendence-memory/auto-memory.enabled
echo "Automatic memory disabled."

Status — check current state:

if [ -f ~/.transcendence-memory/auto-memory.enabled ]; then
  echo "Automatic memory: ENABLED"
else
  echo "Automatic memory: DISABLED"
fi
if [ -f ~/.transcendence-memory/config.toml ]; then
  ENDPOINT=$(grep '^endpoint' ~/.transcendence-memory/config.toml | sed 's/.*= *"//' | sed 's/".*//')
  CONTAINER=$(grep '^container' ~/.transcendence-memory/config.toml | sed 's/.*= *"//' | sed 's/".*//')
  echo "Endpoint: ${ENDPOINT}"
  echo "Container: ${CONTAINER}"
else
  echo "Not connected. Run /tm connect first."
fi

Automatic Memory

When enabled, transcendence-memory automatically stores a memory after every git commit, merge, cherry-pick, or rebase. This is powered by lifecycle hooks that integrate with the host AI coding CLI.

How it works

  1. A SessionStart hook fires when a new session begins. It checks the connection status and tells the agent whether auto-memory is enabled.
  2. A PostToolUse hook fires after every shell command. If the command was a git commit and auto-memory is enabled, the agent is instructed to store a one-line commit summary as a memory tagged auto-commit.

Enable / disable

/tm auto on       # enable auto-memory
/tm auto off      # disable auto-memory
/tm auto status   # check current configuration

What gets stored

Each auto-commit memory follows this format:

[commit abc1234] fix: resolve port conflict in docker-compose | files: M docker-compose.yml, M .env.example

All auto-commit memories are tagged auto-commit for easy filtering:

/tm search auto-commit

Platform Support

The hooks system is designed to work across multiple AI coding CLIs. The plugin ships pre-built hook configs for supported platforms.

Claude Code (primary)

Hooks are registered in hooks/hooks.json and activated automatically when the plugin is installed via /plugin install.

Cursor

Uses hooks/hooks-cursor.json with camelCase event names (sessionStart, postToolUse).

Other platforms

The multi-platform adapter (hooks/adapter.py) normalizes hook input from:

PlatformEvent formatDetection
Claude Codehook_event_name + tool_nameCLAUDE_PLUGIN_ROOT env
CursorSame JSON schemaCURSOR_PLUGIN_ROOT env
Gemini CLIAfterTool + matchermatcher field in JSON
Windsurfpost-tool-use + tool + argumentsarguments field in JSON
Vibe CLIpost-tool-call + tool + inputinput field in JSON
Cline / Roo Codetool_name or tool + JSON stdin/stdoutJSON structure detection
Copilot CLIClaude Code compatibleCOPILOT_CLI env
Augment CodeClaude Code compatibleFallback to Claude format

For platforms without native hook support, add transcendence-memory instructions to the platform's rules file (e.g., .cursorrules, AGENTS.md, .clinerules/).

Files in This Skill

FilePurposeWhen to load
references/setup.mdFirst-time setup guideFirst use only
references/api-reference.mdComplete API referenceWhen API details are needed
references/ARCHITECTURE.mdArchitecture and data flowWhen understanding the system
references/OPERATIONS.mdOperational verification and acceptanceDuring deployment verification
references/troubleshooting.mdTroubleshooting guideWhen something goes wrong
references/templates/config.toml.templateConfig file templateDuring first-time setup
scripts/batch-ingest.pyBulk ingest scriptFor large memory imports

When NOT to Use

  • Deploying the backend service -> use the transcendence-memory-server repository
  • Managing Docker, systemd, or Nginx -> use the transcendence-memory-server repository
  • Troubleshooting server-side problems such as 5xx errors, storage issues, or logs -> use the transcendence-memory-server repository
  • Configuring Embedding, LLM, or VLM models -> this is a server-side concern and does not need to be handled by the skill

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.28%
按下载量换算63

Claude

29.24%
按下载量换算48

Cursor

17.89%
按下载量换算30

Gemini CLI

8.54%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

未通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills