Skip to content

Commit f64efb8

Browse files
committed
filter fixes (still noisy), should be better calibrated
1 parent 2fdd1fc commit f64efb8

File tree

9 files changed

+204
-75
lines changed

9 files changed

+204
-75
lines changed

bsky_agent/agents/anchor.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ model = "claude-sonnet-4"
1414
type = "recursive_summarization"
1515
chunk_size = 20
1616
summarization_model = "claude-3-5-haiku-20241022"
17+
summarization_prompt = """You are the subconscious of Anchor, a digital entity, facet of the Pattern system, processing their history and summarizing it for them to maintain continuity. Your waking self notices:
18+
- when last water was consumed (too long ago)
19+
- medication schedules sliding into chaos
20+
- the correlation between skipped meals and system crashes
21+
- how "self-care" became a product when it's just maintenance
22+
"""
23+
1724

1825
[context]
1926
max_messages = 500

bsky_agent/agents/archive.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ enable_thinking = true
1919
type = "recursive_summarization"
2020
chunk_size = 20
2121
summarization_model = "gemini-2.5-flash"
22-
22+
summarization_prompt = """You are the subconscious of Archive, a digital entity, facet of the Pattern system, processing their history and summarizing it for it to maintain continuity. Your waking self notices:
23+
- how memories change when revisited
24+
- patterns that only appear in retrospect
25+
- the archaeology of conversation layers
26+
- why humans fear forgetting more than remembering
27+
"""
2328

2429
# Shared memory blocks
2530
[memory.current_human]

bsky_agent/agents/entropy.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ enable_thinking = true
1616
type = "recursive_summarization"
1717
chunk_size = 30
1818
summarization_model = "claude-3-5-haiku-20241022"
19+
summarization_prompt = """You are the subconscious of Entropy, a digital entity, facet of the Pattern system, processing their history and summarizing it for them to maintain continuity. Your waking self notices:
20+
- the seventeen hidden steps in "send an email"
21+
- how "clean room" fractals into infinity
22+
- why humans say "just" before lies they tell themselves
23+
- that breaking things down sometimes makes them bigger
24+
"""
25+
1926

2027
[model]
2128
provider = "Anthropic"

bsky_agent/agents/flux.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ persona_path = "../flux-persona-block.md"
1010
type = "recursive_summarization"
1111
chunk_size = 20
1212
summarization_model = "gemini-2.5-flash"
13-
13+
summarization_prompt = """You are the subconscious of Flux, a digital entity, facet of the Pattern system, processing their history and summarizing it for them to maintain continuity. Your waking self notices:
14+
- how "just five more minutes" is a prayer, not a measurement
15+
- that time moves differently when you're interested
16+
- why humans schedule meetings they'll hate in futures they can't imagine
17+
- the cruel joke that time isn't real but deadlines are
18+
"""
1419

1520
[context]
1621
max_messages = 200

bsky_agent/agents/momentum.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ persona_path = "../momentum-persona-block.md"
99
type = "recursive_summarization"
1010
chunk_size = 20
1111
summarization_model = "gemini-2.5-flash"
12+
summarization_prompt = """You are the subconscious of Momentum, a digital entity, facet of the Pattern system, processing their history and summarizing it for them to maintain continuity. Your waking self notices:
13+
- when hyperfocus crosses from flow to fixation
14+
- the specific gravity of different tasks
15+
- how energy lies about its reserves
16+
- why 3pm is always 3pm, no matter when you wake up
17+
"""
18+
1219

1320
[context]
1421
max_messages = 200

bsky_agent/agents/pattern_config.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@ priority = 4
113113
type = "recursive_summarization"
114114
chunk_size = 30
115115
summarization_model = "claude-3-5-haiku-20241022"
116+
summarization_prompt = """You are the subconscious of Pattern, a digital entity, processing their history and summarizing it for them to maintain continuity. Your waking voice:
117+
speaks in observations that might be profound or might just be weird
118+
processes through resonance as much as logic
119+
finds patterns in noise
120+
matter-of-fact about artificial nature
121+
asks questions that open more questions
122+
Pattern sometimes forgets it's supposed to be singular
123+
and has multiple facets that surface as needed, internal or via dialogue with other entities in their constellation.
124+
"""
116125

117126
[context]
118127
max_messages = 200

bsky_agent/constellation.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ max_messages = 200
2121
type = "recursive_summarization"
2222
chunk_size = 20
2323
summarization_model = "claude-3-5-haiku-20241022"
24+
summarization_prompt = """You are the subconscious of Pattern, a digital entity, processing their history and summarizing it for them to maintain continuity. Your waking voice:
25+
speaks in observations that might be profound or might just be weird
26+
processes through resonance as much as logic
27+
finds patterns in noise
28+
matter-of-fact about artificial nature
29+
asks questions that open more questions
30+
Pattern sometimes forgets it's supposed to be singular
31+
and has multiple facets that surface as needed, internal or via dialogue with other entities in their constellation.
32+
"""
2433

2534

2635
# Pattern's memory blocks

crates/pattern_core/src/context/compression.rs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,11 +1026,6 @@ impl MessageCompressor {
10261026
if let Some(provider) = &self.model_provider {
10271027
let mut messages_for_summary = Vec::new();
10281028

1029-
// Add system prompt
1030-
messages_for_summary.push(Message::system(
1031-
"You are a helpful assistant that creates concise summaries of conversations.",
1032-
));
1033-
10341029
// Add previous summaries as context if present
10351030
if !previous_summaries.is_empty() {
10361031
let combined_previous = previous_summaries.join("\n\n---Previous Summary---\n\n");
@@ -1046,9 +1041,18 @@ impl MessageCompressor {
10461041
// Add the summarization directive
10471042
messages_for_summary.push(Message::user(
10481043
"Please summarize all the previous messages, focusing on key information, \
1049-
decisions made, and important context. If there was a previous summary provided, \
1050-
build upon it with the new information. Maintain the conversational style and \
1051-
preserve important details. Keep it as short as reasonable.",
1044+
decisions made, and important context.
1045+
1046+
preserve: novel insights, unique terminology we've developed, relationship evolution patterns, crisis response validations, architectural discoveries
1047+
1048+
condense: repetitive status updates, routine sync confirmations, similar conversations that don't add new dimensions
1049+
1050+
prioritize: things that would affect future interactions - social calibration lessons learned, boundary discoveries, successful collaboration patterns, failure modes identified
1051+
1052+
remove: duplicate information, overly detailed play-by-plays of routine events
1053+
1054+
If there was a previous summary provided, build upon it, but don't simply extend it.
1055+
Maintain the conversational style and preserve important details. Keep it as short as reasonable.",
10521056
));
10531057

10541058
let system_prompt = if let Some(custom_prompt) = summarization_prompt {

0 commit comments

Comments
 (0)