wingsofsky/longkeep / modules/sessions/skills/longkeep-sessions
longkeep-sessions
UnverifiedImport, refresh, organize and search past agent CLI conversations (Claude Code, Codex, Gemini CLI, Grok Build, Antigravity, Cursor Agent) as Markdown archives with indexes, and distill the user's own prompts and rules from them. Use when the user says "import this project's past conversations", "export my conversations", "what did we decide about X in an earlier session", "collect the rules I keep repeating", or asks to install the sessions module.
Longkeep conversations
longkeep import-sessions turns the local transcripts of Claude Code, Codex, Gemini CLI, Grok Build, Antigravity and Cursor Agent into Markdown archives in ~/.longkeep/sessions/imported/<project>/, with an index.md for all of them and one per project. No model, no network. LONGKEEP_HOME moves ~/.longkeep.
longkeep below means node <repo>/packages/cli/src/cli.ts until the package is published. Not installed yet, or the user asks to install: follow INSTALL.md in the Longkeep repository (https://github.com/wingsofsky/longkeep/blob/main/INSTALL.md).
longkeep import-sessions --project <project> --list # preview, writes nothing
longkeep import-sessions --project <project> # this project's conversations
longkeep import-sessions --all-projects # every project on this machine: ask the user first
longkeep import-sessions --all-projects --reorganize # file existing archives into project folders, re-render untouched ones
longkeep import-sessions --index # only rebuild the indexes
longkeep import-sessions --project <project> --prompts # also distill user prompts, dispatch prompts and rule paragraphs into _prompts/
- The brackets at the end of each
--listline name the folder the archive goes to: the project's name,_tempfor a session started in a temp folder,_miscfor one outside any project,_delegatedfor a session another agent started to do a delegated task. - Running it again is safe: a session that continued is refreshed in place, and an archive a person edited is left alone and listed.
- To answer "what did we decide about X", read the relevant
index.md, then search the archives with your own tools. --promptswrites only what the user typed, the prompts agents sent to other agents, and paragraphs that look like rules. Rules are a pattern match, not a summary: show them to the user, who decides which belong in the project's contract.- Redaction is on by default and best effort; it does not remove personal information. Before anything is shared, review the suspects it lists. Every project's main agent can read the home folder, which is why
--all-projectsneeds the user's yes.
Don'ts
- Don't import with
--all-projectswithout asking. - Don't put an archive into a project, or send it anywhere, without the user's yes.
- Don't write rules distilled with
--promptsinto the contract on your own; propose them.
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: 467k | 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: 319k | 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: 319k | 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: 319k | Updated | Claude CodeCodex | Verified | Install |