Skip to content

Refactor2 - #45

Merged
khezen merged 2 commits into
mainfrom
refactor2
Sep 17, 2026
Merged

khezen merged 2 commits into
mainfrom
refactor2

Conversation

@khezen

@khezen khezen commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

Changed

  • Hippocampus refactored from wrapper to composable component
  • Hippocampus no longer inherits from dspy.Module or accepts a module parameter
  • Removed forward(), aforward() — agents call their own modules and pass hippo.context_memory
  • Added observe(result) / aobserve(result) to feed agent results back for reflection
  • Added context_memory read-only property
  • Added bind_topics(topics, topic_ids) public method (replaces direct _topic_ids access)
  • Added inject_context_memory(module) standalone utility for signature injection
  • All 6 review agents updated to composable pattern
  • Internal: Flattened hippocampus/modules/ directory structure
    • Moved distiller.py and cartographer.py from hippocampus/modules/ to hippocampus/ package root
    • Removed hippocampus/modules/__init__.py and deleted modules/ subdirectory
    • Updated imports in hippocampus.py and hippocampus/__init__.py to reference new locations
    • No external API changes — imports through hippocampus/__init__.py remain unchanged

@khezen
khezen merged commit 884f827 into main Sep 17, 2026
6 checks passed
@khezen
khezen deleted the refactor2 branch September 17, 2026 12:59
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