Replies: 2 comments
|
Three thoughts on MVP scope. 1. MVP = capture + recall. Nothing else. Five stages is the right end goal, but Phase 1 should only do capture and recall. No LLM distillation — just dedup by date. No review, no promotion. Claude Code's AutoDream (their distill equivalent) is still feature-flagged off with no production data. Their extractMemories (just capture) is the part that actually works. Do that first. 2. Test it on git-monitor and issue-guard. Don't validate in the abstract. Use what's already running in production:
Both already have code, data, and users. team-pm is still design-only — can't validate on something that doesn't exist yet. 3. Let the LLM fill 6 fields, not 14. The candidate schema has 14 fields. That's fine as a data model, but don't ask the LLM to produce all 14 in the extraction prompt. It'll get sloppy — bad summaries because it's busy scoring confidence and classifying sensitivity. MVP extraction prompt should require only: For reference, Claude Code's extractMemories uses 4 categories + free-form text. Works fine. |
|
Three more MVP-scoped suggestions, continuing from the previous comment. 4. Route candidates through memory_search, not prompt injection. When extraction produces candidates, recall them via Rule: search first → get candidate list → fetch specific items into context. 5. MVP experience candidates: 3 types, not 6. The proposed 6-type taxonomy is too fine for MVP. Start with:
Preferences don't need auto-extraction at MVP — users can write USER.md manually. Add more types when there's enough data to tell them apart. 6. Retrieval weights: fixed thresholds for MVP. BM25 + vector hybrid search is already in place. For MVP:
Hardcode these. A/B testing needs hundreds of queries for statistical significance — not available at MVP scale. |
Uh oh!
There was an error while loading. Please reload this page.
summary: "Assess Claude Dream's current public and leaked-state mechanics, then define how EnClaws should absorb the transferable parts as an enterprise experience extraction pipeline."
owner: "codex"
status: "draft"
last_updated: "2026-04-03"
title: "EnClaws Enterprise Experience Extraction"
EnClaws Enterprise Experience Extraction
Overview
This document answers two questions:
Bottom line:
claude-code-anthropicrepository does not publish Dream implementation codeCounter-intuitive finding:
EnClaws should not make
MEMORY.mdthe enterprise system of record.For enterprise memory promotion,
MEMORY.mdshould be a published consumption view, while typed experience records and approval state should be the real source of truth.What Claude Dream looks like today
Public status in the official repository
The official
claude-code-anthropicrepository does not expose the actual Dream runtime.There is no public source tree for
/dream,AutoDream, orextractMemories.What is visible in
CHANGELOG.mdis only a feature trail:/memoryautoMemoryDirectorybecame configurableMEMORY.mdhas explicit size limits/memorycan edit imported memory files--baredisables auto-memoryThat is enough to conclude Dream is a real product feature, but not enough to treat the official repository as an implementation reference.
Mechanism visible in the leaked source snapshot
The leaked snapshot shows that “Dream” is not a single feature.
It is at least two cooperating background mechanisms:
extractMemoriesAutoDreamImportant nuance:
MEMORY.mdis effectively an index and published entrypoint, not the full memory bodyAutoDreamis disabled inKAIROSmode, which uses a different disk-skill dream pathWhat EnClaws already has
EnClaws is closer to “enterprise Dream substrate” than it may look at first glance.
Product direction already matches the problem
The repository already states the right product goals:
That means the target capability is already part of the product thesis, not a foreign add-on.
Storage topology is already enterprise-ready
The documented tenant layout already gives EnClaws the separation Claude does not need to solve:
SOUL.md,TOOLS.md,MEMORY.mdworkspace/MEMORY.mdandworkspace/memory/This is the right base for promotion paths such as:
Retrieval is already stronger than public Claude
EnClaws already has:
MEMORY.md,memory.md, andmemory/**/*.mdThis means EnClaws does not need Dream in order to gain retrieval.
It needs Dream in order to gain structured extraction and promotion.
Prompt injection and editing paths already exist
EnClaws also already has the two paths that determine whether extracted experience can affect future behavior:
bootstrap and prompt assembly
IDENTITY.md,MEMORY.md,TOOLS.md, andUSER.mdinto agent startup and prompt constructionoperator editing surfaces
That is important because enterprise experience extraction should end in the same durable surfaces operators already understand.
EnClaws already has two capture hooks
Pre-compaction memory flush
Session-finalization memory hook
session-memoryhook writes a dated Markdown file on/newor/resetmemory/These are not equivalent to Claude Dream.
But they are excellent insertion points for an enterprise extraction pipeline.
What EnClaws does not have yet
EnClaws does not currently have a true review pipeline for durable knowledge promotion.
It has approval surfaces for execution and planning, but that is not the same thing as memory governance.
So the missing piece is not only extraction logic.
It is also a dedicated review and promotion control plane for experience artifacts.
Gap analysis
EnClaws has the memory substrate, but not the full Dream loop.
Design goal for EnClaws
EnClaws should not ship “Dream” as a background summarizer.
It should ship enterprise experience extraction with five explicit stages:
That preserves Claude's best mechanism idea, while adapting it to enterprise requirements that Claude's personal auto-memory model does not address.
Recommended architecture
1. Capture lane
Goal:
extract reusable experience candidates from live work with very low overhead.
Recommended triggers:
/newand/resetRecommended inputs:
memory/YYYY-MM-DD.mdMEMORY.mdRecommended outputs:
Candidate schema should include:
candidateIdscopeandoriginScopetenantId,userId,agentIdsourceSessionKeysourceTranscriptRefskindsuch asfact,preference,workflow,policy_hint,failure_pattern,tool_recipeconfidencesensitivityentitiessummaryevidencecreatedAt2. Distill lane
Goal:
merge noisy candidates into reusable knowledge units.
Recommended cadence:
/distilltrigger for operatorsDistillation tasks should:
This is where Claude
AutoDreamis most transferable:3. Review lane
Goal:
make enterprise promotion safe.
Every promotion candidate should enter a review queue with:
Required actions:
This is the biggest place EnClaws must go beyond Claude.
Without review, “Dream for enterprise” becomes uncontrolled data propagation.
4. Promotion lane
Goal:
publish approved experience into the right scope.
Promotion paths should be explicit:
Publishing targets should include:
MEMORY.mdfor curated durable memorymemory/YYYY-MM-DD.mdfor append-only narrative context5. Recall lane
Goal:
make extracted experience usable by agents without exposing the raw control-plane internals.
Recall should continue to use familiar agent-facing surfaces:
MEMORY.mdmemory/*.mdmemory_searchmemory_getThis keeps the agent experience simple.
The complex enterprise machinery stays behind the scenes.
Source of truth model
Recommended split:
Why this split is necessary:
Suggested storage model:
Concrete EnClaws integration points
Existing code to reuse
src/agents/workspace.tsandsrc/agents/bootstrap-files.tssrc/auto-reply/reply/agent-runner-memory.tsmemoryFlushAtandmemoryFlushCompactionCountsrc/hooks/bundled/session-memory/handler.ts/newand/resetsrc/memory/internal.tssrc/memory/manager.tssrc/memory/qmd-manager.tssrc/gateway/server-cron.tsandsrc/cron/*src/gateway/server-methods/memory.tsexisting approval and planning surfaces
New module boundary to introduce
Add a dedicated
src/experience/subsystem rather than hiding enterprise logic insidesrc/memory/.Recommended slices:
src/experience/capture.tssrc/experience/distill.tssrc/experience/review.tssrc/experience/promote.tssrc/experience/publish.tssrc/experience/policy.tssrc/experience/store.tsReason:
memory retrieval and enterprise experience governance are related but not the same concern.
Keeping them separate avoids turning
src/memory/into a mixed retrieval plus workflow subsystem.Execution model
Lightweight extractor
This is the EnClaws equivalent of Claude
extractMemories.Recommended rules:
Scheduled consolidator
This is the EnClaws equivalent of Claude
AutoDream.Recommended rules:
Manual operator controls
Add operator surfaces rather than relying only on automation:
/distill/experience status/experience review/experience promote/experience rollbackSafety model
Enterprise experience extraction must be conservative by default.
Recommended policy gates:
Recommended classification fields:
privacy: public, internal, restricted, secretreviewStatus: pending, approved, rejected, redacted, supersededpromotionScope: personal, team, tenantartifactKind: fact, workflow, policy, preference, skill-seed, incident-patternRecommended rollout
Phase 0: schema and control-plane design
Deliver:
Estimate:
Coverage:
substantial design coverage, no user-facing feature yet
Phase 1: post-turn capture MVP
Deliver:
/newand/resetEstimate:
Coverage:
partial, but immediately useful
Phase 2: scheduled distillation plus review queue
Deliver:
Estimate:
Coverage:
substantial
Phase 3: scope promotion and rollback
Deliver:
Estimate:
Coverage:
complete for a first enterprise-grade release
Non-goals
tengu_*MEMORY.mdRecommendation
EnClaws should absorb Dream as mechanism, not as product shape.
The transferable mechanism is:
The required EnClaws upgrade beyond Dream is:
If implemented this way, EnClaws will not merely replicate Claude's Dream.
It will turn Dream into an enterprise learning pipeline.
All reactions