altk-evolve icon indicating copy to clipboard operation
altk-evolve copied to clipboard

Implement two-step entity recall with a minimal manifest across Codex, Claude, and Bob

Open visahak opened this issue 7 months ago • 1 comments

Recall currently injects full entity bodies into prompt context. That does not scale.

This should move to a two-step model across Codex, Claude, and Bob:

  1. emit a minimal manifest of available entities
  2. expand full files only when they are relevant

Manifest v1

Each entry should contain only:

  • path
  • type
  • trigger

Example:

{ "path": ".evolve/entities/guideline/use-context-managers-for-file-operations.md", "type": "guideline", "trigger": "When processing files or managing resources" }

Assume trigger is always present in v1.

Scope

  • add a shared frontmatter-only manifest loader in the common entity I/O layer
  • switch Codex, Claude, and Bob recall from full-body injection to manifest-first recall
  • keep harness-specific recall behavior separate, while sharing the same manifest data
  • dedupe entries before output with deterministic ordering

Non-goals

  • embeddings
  • fuzzy/semantic dedupe
  • extra manifest fields like visibility, source, or slug

Acceptance criteria

  • Codex, Claude, and Bob no longer inject full entity bodies by default
  • manifest entries contain only path, type, and trigger
  • manifest output is deterministic
  • duplicates are collapsed before output
  • relevant full entity files can still be expanded on demand

cc: @jayaramkr @vinodmut

visahak avatar Apr 27 '26 17:04 visahak

@vinodmut the PR #226 tries to address this issue. comments are welcome.

visahak avatar Apr 28 '26 19:04 visahak

This was implemented by #226 ("manifest-first entity recall for all platforms", merged 2026-05-11). It added load_manifest() in plugin-source/lib/entity_io.py.

The evolve-lite redesign (#266) has since gone further than this issue asked: Claude, Codex and Bob no longer inject entity bodies at all.

  • Claude: recall is native memory.
  • Codex and Bob: EVOLVE.md tells the agent to list .evolve/entities/, read each trigger, and open only the matching files.

So the acceptance criteria are met. I think this can be closed.

gaodan-fang avatar Oct 14 '26 01:10 gaodan-fang

Closing as resolved on main; the evidence is in this comment. Reopen if anything here is still outstanding.

gaodan-fang avatar Oct 14 '26 21:10 gaodan-fang