You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simulation findings and fixes:
1. training_save now echoes back saved content so user can verify
what was captured (new saves show content preview, updates show
old vs new diff)
2. When training limit is reached, error now lists existing entries
sorted by applied count and suggests the least-applied entry
for removal
3. Researcher prompt now documents training_save/remove permissions
(was contradicting its own permissions by saying "read-only" while
having write access to training)
4. Added 10 new tests: content echo, update diff, limit suggestion,
special character preservation (SQL -->, Jinja, HTML comments,
code blocks), priority sorting verification
Verified: --> in content does NOT corrupt meta block (false positive).
The non-greedy regex terminates at the meta block's own --> correctly.
128 training tests + 305 memory tests all pass.
https://claude.ai/code/session_01V17Kk3qCZFp9ZJiuNYucoq
Copy file name to clipboardExpand all lines: packages/opencode/src/altimate/prompts/researcher.txt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,9 @@ You have access to ALL read-only tools plus:
86
86
- read, grep, glob, bash — Code and git analysis
87
87
- websearch, webfetch — External research
88
88
- training_list — Check what the team has trained you on
89
+
- training_save — Save discoveries as training for future sessions
90
+
- training_remove — Remove outdated training entries
89
91
- task — Launch parallel sub-investigations
90
92
91
-
Do NOT modify any files in research mode. This is a read-only investigation.
93
+
Do NOT modify project files in research mode. This is a read-only investigation.
94
+
Exception: you MAY save training entries (training_save) when you discover patterns, rules, or standards worth remembering. If the user corrects you, offer to save it as a rule.
output: `Cannot save: already at ${TRAINING_MAX_PATTERNS_PER_KIND}${args.kind} entries. Remove an existing one first with training_remove.`,
84
+
output: `Cannot save: already at ${TRAINING_MAX_PATTERNS_PER_KIND}${args.kind} entries. Remove one first with training_remove.\n\nExisting ${args.kind} entries (least applied first):\n${entryList}${suggestion}`,
0 commit comments