Skip to content

feat: make ephemeral accumulative instead of clearing on read#1

Merged
dnacenta merged 11 commits intodevelopmentfrom
feat/accumulative-ephemeral
Feb 28, 2026
Merged

feat: make ephemeral accumulative instead of clearing on read#1
dnacenta merged 11 commits intodevelopmentfrom
feat/accumulative-ephemeral

Conversation

@dnacenta
Copy link
Owner

Summary

  • consume no longer clears EPHEMERAL.md after reading — sessions accumulate context throughout the day
  • Night reflection (2 AM) handles archival via promote and resets for the next day
  • Prevents automated sessions from eating context before human conversations
  • Version bump to 0.6.0

Test plan

  • All 28 tests passing
  • cargo fmt and cargo clippy clean
  • Verify accumulative behavior across multiple sessions
  • Verify night reflection properly archives and resets

dnacenta and others added 11 commits February 24, 2026 22:31
Replace single overview box with three ASCII diagrams: layer
architecture, session lifecycle flow, and checkpoint pipeline.
Session end now requires one write (EPHEMERAL.md) instead of two.
The CLI promotes EPHEMERAL into an archive log at the next session
start via `recall-echo promote`, eliminating the redundant
`checkpoint --trigger session-end` + manual fill-in step.
SessionEnd hook runs `recall-echo promote` on exit, archiving
EPHEMERAL.md immediately instead of waiting for the next session.
Session-start promote kept as a safety net. Refactored init.rs
hook installation to handle both hooks in a single read/write.

- init: merge_precompact_hook → merge_hooks (PreCompact + SessionEnd)
- status: show both hook statuses on one line
- protocol/install/README: updated lifecycle and docs
…on start

Closes the last voluntary gap in the memory lifecycle. The new PreToolUse
hook runs `recall-echo consume` automatically, reading EPHEMERAL.md into
context via stdout and clearing the file. No more relying on the agent
to "remember" to consume its own memory.

- New `consume` subcommand with 5 tests
- `init` now installs PreToolUse hook alongside PreCompact and SessionEnd
- `status` reports on all three hooks
- README updated with new lifecycle diagram and consume docs
- Version bump: 0.4.0 → 0.5.0
…tocol template with v0.5 hooks

The protocol template still referenced voluntary session-start promotion
and npm/TypeScript build steps. Updated to reflect the mechanical
PreToolUse consume flow and Rust toolchain.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
consume no longer clears EPHEMERAL.md after reading. sessions append
throughout the day and the night reflection handles archival and reset
via promote. prevents automated sessions from eating context before
human conversations.
@dnacenta dnacenta self-assigned this Feb 28, 2026
@dnacenta dnacenta merged commit 220127f into development Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant