personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix generators not including extra_context (facets list)

The compose_instructions() function returns extra_context containing
facet summaries, but generators weren't using it. This caused the
facets generator to only see examples in the prompt rather than the
actual available facets, resulting in generic classifications like
"work" instead of specific facets like "sunstone" or "bluesky".

Now appends extra_context to system_instruction for generators.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+5
+5
think/agents.py
··· 813 813 system_prompt_name = instructions.get("system_prompt_name", "journal") 814 814 system_instruction = instructions["system_instruction"] 815 815 816 + # Append extra_context (facets, etc.) to system instruction if present 817 + extra_context = instructions.get("extra_context") 818 + if extra_context: 819 + system_instruction = f"{system_instruction}\n\n{extra_context}" 820 + 816 821 # Track span mode (multiple sequential segments) 817 822 span_mode = bool(span) 818 823