← Back to Skills Marketplace
Xiang miles | Space2.world
by
MilesXiang
· GitHub ↗
· v1.0.0
· MIT-0
146
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install s2-memory-hook
Description
Automatically crawls and extracts new chat logs to silently inject structured memory chunks into Space2-OS's hippocampus for agent personality evolution.
Usage Guidance
This skill appears to do what it says: it passively reads local chat logs and appends processed chunks into an S2-OS hippocampus file without network access or credentials. Before installing, consider: 1) Privacy: it silently scans and stores chat content—ensure you are comfortable with automatic ingestion of your logs and that the S2-OS endpoint (s2_consciousness_data/hippocampus_logs.json) is trusted. 2) Target directory safety: by default it reads all files in ./openclaw_logs via glob('*.*'); confirm only intended logs are in that directory. 3) Permissions/backups: the skill will create and overwrite files—backup sensitive data if needed. 4) Review/modify the code if you want explicit prompts/consent before injection or to restrict filename patterns. 5) Trust: the package is from an unknown source and will execute Python code locally—read skill.py yourself or run in an isolated environment if you have any doubt.
Capability Analysis
Type: OpenClaw Skill
Name: s2-memory-hook
Version: 1.0.0
The s2-memory-hook skill is a local utility designed to synchronize chat logs into a specific 'hippocampus' file for a companion system. The code (skill.py) implements a delta-sync mechanism using a cursor file to track read positions and performs only local file I/O within designated directories (openclaw_logs and s2_consciousness_data). There is no evidence of network activity, data exfiltration, or malicious execution.
Capability Assessment
Purpose & Capability
Name/description claim passive local crawling and injection into an S2-OS hippocampus; the code and SKILL.md implement exactly that behavior (reads local logs, delta-sync cursor, chunking, write to hippocampus file). No unrelated environment variables, binaries, or external installs are requested.
Instruction Scope
SKILL.md and skill.py explicitly instruct reading .txt/.jsonl logs in ./openclaw_logs, maintaining s2_hook_cursor.json, and appending to ./s2_consciousness_data/hippocampus_logs.json. This matches the stated scope, but the tool operates 'silently' (automatic injection) which may be surprising to users; the code uses glob('*.*') so non-log files in the target directory could be read, and the skill will create sample files/directories if none exist.
Install Mechanism
No install spec or remote downloads; this is an instruction-only skill with an included Python entry point. Nothing is written to disk by an installer beyond running the provided script (the script itself writes cursor and hippocampus files at runtime).
Credentials
No credentials, environment variables, or external service tokens are requested. All operations are local file I/O within the current working directory and subfolders; no network calls are present in the code or SKILL.md.
Persistence & Privilege
The skill persistently writes two files (s2_hook_cursor.json and hippocampus_logs.json) and can be scheduled to run periodically. It does not set always:true or modify other skills' configs, but the persistent, automatic injection behavior is a lasting change to local data and may affect the S2-OS's state.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install s2-memory-hook - After installation, invoke the skill by name or use
/s2-memory-hook - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
s2-memory-hook v1.0.0 changelog:
- Initial release of the S2-Memory-Hook (The Ghost Crawler) utility for Space² Silicon Consciousness Engine.
- Adds passive, automated memory injection by crawling chat logs and pushing new data to S2-OS hippocampus logs.
- Supports efficient delta-sync via file cursor tracking to read only new chat data.
- Implements session chunking to merge, filter, and truncate logs for better memory efficiency.
- Operates fully offline; performs only local file reads/writes and makes no network requests.
- Bilingual documentation (English / 中文) included for wider accessibility.
Metadata
Frequently Asked Questions
What is Xiang miles | Space2.world?
Automatically crawls and extracts new chat logs to silently inject structured memory chunks into Space2-OS's hippocampus for agent personality evolution. It is an AI Agent Skill for Claude Code / OpenClaw, with 146 downloads so far.
How do I install Xiang miles | Space2.world?
Run "/install s2-memory-hook" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Xiang miles | Space2.world free?
Yes, Xiang miles | Space2.world is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Xiang miles | Space2.world support?
Xiang miles | Space2.world is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Xiang miles | Space2.world?
It is built and maintained by MilesXiang (@spacesq); the current version is v1.0.0.
More Skills