dream
/dream
Konsoliduje pamięć agenta z ostatnich sesji różnych asystentów: scala duplikaty, porządkuje daty, przebudowuje MEMORY.md i przenosi dojrzałe reguły do plików instrukcji przez PR.
- Autor
- hakula139 ↗
- Repozytorium
- plugins ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Konsoliduje pamięć agenta z ostatnich sesji różnych asystentów: scala duplikaty, porządkuje daty, przebudowuje MEMORY.md i przenosi dojrzałe reguły do plików instrukcji przez PR.
Oryginalny opis (EN)
Consolidate a project's file-based agent memory from recent sessions of any assistant: merge duplicates, fix drifted or contradicted facts, convert relative dates, prune stale entries, and rebuild the MEMORY.md index. Then promote mature rules into the instruction files that own them through PRs / MRs. Use when asked to dream, consolidate, reorganize, or clean up memories, or when the memory index has grown long, stale, or contradictory.
Jak działa
- Locate the store
- Phase 1: Orient
- Phase 2: Gather recent signal
- Phase 3: Consolidate
- Phase 4: Prune and index
- Phase 5: Promote
- Finish
Podgląd SKILL.md
--- name: dream description: >- Consolidate a project's file-based agent memory from recent sessions of any assistant: merge duplicates, fix drifted or contradicted facts, convert relative dates, prune stale entries, and rebuild the MEMORY.md index. Then promote mature rules into the instruction files that own them through PRs / MRs. Use when asked to dream, consolidate, reorganize, or clean up memories, or when the memory index has grown long, stale, or contradictory. --- # Dream A dream combines what recent sessions have learned into one project's memory store by editing it directly. Rules that prove durable move into the instruction files responsible for them through a PR / MR, which the user merges. A later dream then retires the promoted memory. ## Locate the store The target is the current project's Claude Code auto-memory directory. It contains one fact per Markdown file and a `MEMORY.md` index. Resolve its location in this order: 1. The memory directory named in the client's memory instructions, if any. 2. `~/.claude/projects/<slug>/memory/`, where `<slug>` is the main worktree's absolute path with every non-alphanumeric character replaced by `-`. All worktrees share one store, so identify the main worktree from the first `worktree` line in `git worktree list --porcelain`. If the directory does not exist, report that and stop. Before the first edit, copy the store to a new directory under `/tmp/` and report its path. The store is unversioned, so a bad merge cannot otherwise be undone. Use natively managed stores only as a source of context, and never edit them. Codex regenerates `~/.codex/memories/` through its own pipeline, and OMP stores memory in `~/.omp/agent/agent.db`. Manual edits are either overwritten or bypass the client's schema. The client's memory instructions define the file format, memory types, and what is worth saving. If there are no such instructions, follow the frontmatter, body structure, and index lines in the existing files. ## Phase 1: Orient - List the store, read `MEMORY.md`, and skim the topic files so new signal builds on entries that already cover the same topic. - Note the loaded global instructions and the repository's `AGENTS.md`. Memories that repeat those instructions are candidates for removal. - Review recent entries in any `logs/` or `sessions/` subdirectories. - The modification time of `<store>/.consolidate-lock` marks the last consolidation. If the file is absent, treat every session as recent. - Record which memories were last modified before that timestamp. Consolidation edits reset modification times, and Phase 5 needs the original ages. ## Phase 2: Gather recent signal Look for new information worth persisting, in rough priority order: 1. Daily logs under `logs/YYYY/MM/YYYY-MM-DD.md`, the append-only stream, if present. 2. Drifted memories. Check every file, flag, option, command, and path named in a memory against the current repository, and correct any contradiction at its source. 3. Memories staged under `<store>/incoming/*/`. Treat each file as a candidate with the same scrutiny as any other signal, and a staged `MEMORY.md` as an index. Merge what survives into the store, then delete `incoming/` once every staged file has been consolidated. 4. Transcripts touched since the last consolidation from every assistant that worked on this project or its worktrees. Match sessions using the working directories reported by `git worktree list --porcelain`, since some worktrees are outside the main checkout. - **Claude Code**: `~/.claude/projects/<slug>*/*.jsonl`, with one directory per worktree path. - **Codex**: `~/.codex/memories/rollout_summaries/*.md`, condensed summaries with a `cwd:` header line and a `rollout_path:` naming the raw transcript under `~/.codex/sessions/`. - **OMP**: `~/.omp/agent/sessions/*/*.jsonl`, where the `"type":"session"` line records `cwd`. - **OpenCode**: Skip it, since it stores sessions in SQLite. Transcripts are large, so use `find <dir> -newer <store>/.consolidate-lock` to select files, then grep them for narrow terms: ```bash grep -n '<narrow term>' <selected transcripts> | tail -50 ``` Search only for suspected signal, such as user corrections, approaches the user confirmed, and failures that recurred across sessions. Never read transcripts exhaustively. ## Phase 3: Consolidate For each candidate, decide whether it adds, updates, or deletes a memory, or leaves the store unchanged. - Merge new signal into the existing file for its topic. - Resolve relative dates such as "yesterday" or "next Thursday" based on when the memory was written, using its text or, if that is unavailable, the file's modification time. Once the date has passed, check whether the expected event occurred. Delete the memory if it is done or no longer applies. Otherwise, rewrite it with the absolute date. - Delete or correct memories contradicted by the current repository or a later session. Delete one whose triggering situation can no longer recur, such as a finished migration, a removed file, a one-off incident, or a measurement tied to a version that has since changed, even when its facts remain accurate. Keep a memory that still describes live behavior or a constraint, even when it began with an incident. - Save only information allowed by the client's memory rules, omitting facts already recorded in instruction files, code, or git history. - When a merge or rename retires a memory name, update every `[[name]]` link to it. - Re-read each file immediately before rewriting it, since concurrent sessions may write to the store. Keep durable rules that belong in an instruction file as memories during this phase. Phase 5 decides whether to move them. ## Phase 4: Prune and index Keep `MEMORY.md` within the client's index limits, one line per memory and no content. Remove stale pointers, add new ones, and check that every file has exactly one pointer and every pointer resolves. ## Phase 5: Promote Every future session loads an instruction file, so promote only memories that have proven durable. ### Track earlier proposals A memory whose frontmatter includes `promotion: <URL>` has already been proposed. Check the request's state using the hosting service's CLI, such as `gh pr view <URL> --json state` or `glab mr view <URL>`: - **Merged**: Delete the memory and its index line, then remove or reword every `[[name]]` link to it. - **Closed without merging**: Keep the memory and its `promotion` URL. Never propose it again. - **Open**: Leave the memory unchanged. ### Select candidates A memory is a candidate only when all of these hold: - Its type is `feedback` or `user`, the types used for durable rules and preferences. - It survived an earlier dream, as shown by a Phase 1 modification time older than the previous `.consolidate-lock` timestamp, or was corroborated by two or more sessions. - It has no `promotion` URL. ### Choose the target Choose the most specific file that owns the rule: - **One repository**: The convention doc for the affected area, or `AGENTS.md` if no convention doc applies. - **Every project**: The instruction sources in the configuration repository the global instructions name, located through that repository's `AGENTS.md`. Without one, the client's own global instruction file, such as `~/.claude/CLAUDE.md` or `~/.codex/AGENTS.md`, unless a tool generates it. Never edit a generated file. - **One skill's procedure**: The skill's source `SKILL.md`, in the repository that ships it: the `repository` of the plugin that installs it, or the place the configuration repository's `AGENTS.md` names. Skip any skill whose source cannot be traced to a repository. - **One model's track record**: The `model-delegation` skill, or the private track record when the observation names an internal snapshot or route, as that skill describes. Read the target before promoting a rule. If it already states the rule, delete the memory and its index line. If its admission rules reject the rule, such as when a repository admits only constraints a reader cannot infer from its code, keep the memory. ### Integrate Rewrite each rule to fit the target's structure, writing conventions, and documentation rules. Merge it with any neighboring rule it refines or generalizes so the section reads as a coherent set. Never paste memory text verbatim. Remove the **Why** and **How to apply** scaffolding, keeping only the reasoning readers need to apply the rule. Promote only what the memory's evidence supports, adding no cases or rows it lacks. Re-run each tool fact as the target words it, in the setting the target describes, such as the repository's own test runner, on the version now pinned. Drop any that does not reproduce, and correct its memory as Phase 3 describes. State the rule in terms visible from the target, without naming tools its readers cannot find, such as a local-only skill. ### Publish The PR / MR is the approval gate. Work unattended under the `git-workflow` skill and the target repository's `AGENTS.md`: - Open or update at most one PR / MR per target repository per dream, always from the `docs/promote-memories` branch. Check out its open request's branch if one exists. Otherwise, start the branch from the remote default branch. - If a closed request left a stale branch with that name, overwrite it with `git push --force-with-lease`. - Run the repository's verification and pre-commit hooks, and never bypass them. - In public repositories, keep a rule in memory if it cannot be stated without private material. After publishing, add `promotion: <URL>` beside the type in each proposed memory's frontmatter metadata. ## Finish Mark a completed pass with `: > <store>/.consolidate-lock`. Skip the stamp if the pass stops early. Claude Code's native auto-dream reads the same file's modification time, so both mechanisms count from the latest pass. Report the backup path, briefly summarize what you consolidated, updated, or pruned, and give the URL of each opened or updated PR / MR along with the memories it promotes. Also report memories retired because their promotion merged or their target already covered them. If the memories were already concise and nothing changed, say so.
Pliki w paczce (2)
- SKILL.md 10 KB
- agents/openai.yaml 1 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · hakula139/plugins | 100 | MIT |
| yonatangross/orchestkit | 100 | MIT |
| wrg32786/aigent-os | 100 | MIT |
| linanwx/nagobot | 100 | MIT |
| itpartypattaya/agent-dreaming | 100 | MIT |
| hyperb1iss/hyperskills | 100 | MIT |
| devonjones/devon-claude-skills | 100 | MIT |
| alexandrosandre/agentic-engineering | 100 | CC-BY-4.0 |
| AkshatNaruka/aidentity | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki fc438b7434aa (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100memory-dream
Konsoliduje zapisane wspomnienia: scala duplikaty, usuwa szum i poświadczenia, przepisuje niejasne wpisy i egzekwuje wygaszanie po czasie. - 90agent-dream
Korzysta z pamięci projektu w serwerze agent-dream: czyta indeks, zapisuje ważne wnioski i porządkuje pamięć po dłuższych sesjach. - 86vault-dream
Konsoliduje i porządkuje bazę wiedzy Obsidian na podstawie ostatnich sesji, także przy zaplanowanym uruchomieniu. - 100memory-consolidate
Porządkuje pliki pamięci Serena: oddziela trwały kontekst od datowanego, scala duplikaty, zamienia daty względne na bezwzględne i porządkuje memory-index.md. - 95openclaw-auto-dream
Porządkuje dzienniki agenta OpenClaw w pamięć długoterminową w cyklach konsolidacji, z oceną ważności i powiadomieniami. - 100consolidate
Porządkuje pamięć projektu z plików harness i katalogu .memory: grupuje tematy, usuwa nieaktualne wpisy i sprawdza fakty.