stark-ai-de/agent-skills / incubator/skills/engineering-workflows/hindsight-memory
hindsight-memory
VerifiedSet up, diagnose, enable or use scoped Hindsight memory without requiring Greppy. Use when the user requests approved project or workspace memory, compact Codex/pi session outcomes or source-backed reflection. Not for global memory cleanup or implicit ingestion of search-indexed repositories.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.4 KB |
| assets/compose.yaml | config | 2.7 KB |
| assets/parser.nix | other | 783 B |
| assets/project.example.json | config | 873 B |
| assets/workspace.example.json | config | 1.1 KB |
| diagnostics/bank_aliases.py | script | 7.0 KB |
| diagnostics/workspace_status.py | script | 2.8 KB |
| references/setup.md | markdown | 23.9 KB |
| scripts/activate.py | script | 3.2 KB |
| scripts/build_parser.py | script | 2.6 KB |
| scripts/initialize.py | script | 5.1 KB |
| scripts/mcp_launcher.py | script | 9.1 KB |
| scripts/metrics.py | script | 4.6 KB |
| scripts/private_policy.py | script | 1.4 KB |
| scripts/project_scope.py | script | 13.7 KB |
| scripts/session_hook.py | script | 6.1 KB |
| scripts/session_parser.py | script | 11.0 KB |
| scripts/weekly.py | script | 19.5 KB |
| scripts/worker.py | script | 8.8 KB |
| scripts/workspace_scope.py | script | 13.1 KB |
scripts/build_parser.py
View on GitHub"""Build the digest-pinned upstream 1.2.1 Codex parser; preview by default."""
import argparse
import hashlib
import json
import os
from pathlib import Path
import subprocess
import tempfile
import urllib.request
BASE = "https://raw.githubusercontent.com/vectorize-io/hindsight/v1.2.1/hindsight-integrations/coding-agents/src/core/"
SOURCES = {
"transcript-codex.ts": "c29043fd4f052a620571bbfaee2eb6e4a9be8a3bc74ec385a903229da2f9b5d0",
"jsonl.ts": "0fa4e3fcdaafae689fcdf24c54f0da301709e1d585e4084d2c855ffa8f41af27",
"transcript-util.ts": "337a159f9ad2cc74762199f778dc3da3fd886392ad961ae58889af67bb94cba1",
}
def build(output, esbuild="esbuild", apply=False):
output = Path(output)
if not output.is_absolute() or output.exists() or any(p.is_symlink() for p in [output, *output.parents]):
raise ValueError("Choose a new absolute output without symlinks")
if not apply:
return {"status": "planned", "version": "1.2.1", "sources": SOURCES, "output": str(output)}
with tempfile.TemporaryDirectory(prefix="hindsight-parser-") as directory:
root = Path(directory)
for name, expected in SOURCES.items():
with urllib.request.urlopen(BASE + name, timeout=30) as response:
raw = response.read(1048577)
if len(raw) > 1048576 or hashlib.sha256(raw).hexdigest() != expected:
raise ValueError("Upstream parser digest mismatch")
(root / name).write_bytes(raw)
subprocess.run([esbuild, "transcript-codex.ts", "--bundle", "--platform=node", "--format=cjs", "--target=node18", "--outfile=parser.cjs"],
cwd=root, check=True, capture_output=True, timeout=30)
raw = (root / "parser.cjs").read_bytes()
fd = os.open(output, os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_NOFOLLOW, 0o644)
with os.fdopen(fd, "wb") as stream:
stream.write(raw)
return {"status": "built", "version": "1.2.1", "sha256": hashlib.sha256(raw).hexdigest()}
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--output", required=True, type=Path)
parser.add_argument("--esbuild", default="esbuild")
parser.add_argument("--apply", action="store_true")
args = parser.parse_args()
try:
print(json.dumps(build(args.output, args.esbuild, args.apply)))
return 0
except (OSError, ValueError, subprocess.SubprocessError):
print(json.dumps({"status": "failed", "reason": "Parser build failed; no unverified parser was adopted."}))
return 1
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |