Skip to content

Conversation

@spoons-and-mirrors
Copy link
Collaborator

@spoons-and-mirrors spoons-and-mirrors commented Nov 28, 2025

  • add synthetic instructions for context_pruning tool use
  • move synthetic instructions to a txt file
  • load file from prompt.ts

@spoons-and-mirrors
Copy link
Collaborator Author

  • move tool instruction to txt file

@spoons-and-mirrors
Copy link
Collaborator Author

first attempt at the synth prompt, pretty loose atm

@spoons-and-mirrors
Copy link
Collaborator Author

  • solving merge conflicts
  • fix bug where synth instructions were sent after DCP "ignored" summary messages
  • extracted synth instruction to its own file

@spoons-and-mirrors
Copy link
Collaborator Author

  • added intra agent loop 'nudge' instruction injection mechanism and prompt
  • new synth prompt
  • cleaned up semantics

Tarquinen added a commit that referenced this pull request Nov 29, 2025
…usage

Integrates PR #33 features into the modular architecture:
- Add synth-instruction.ts for injecting instructions into user messages
- Add nudge injection every N tool results (configurable via nudge_freq)
- Add synthetic.txt prompt teaching AI to narrate findings before pruning
- Add nudge.txt prompt reminding AI to prune when appropriate
- Add nudge_freq config option (default: 5, 0 to disable)
- Update fetch-wrapper to inject synth/nudge when onTool strategies enabled
- Copy prompt files to dist during build
spoons-and-mirrors and others added 7 commits November 28, 2025 23:02
refactor: extract synth prompt to file

refactor: load through prompt.ts

fix?

fix

rm: slop

move tool description to prompt file

synth prompt

fix: don't add synth instruction after DCP "ignored" summary messages - extract synth instruction to its own file
- Add Gemini and OpenAI Responses API format support to synth-instruction.ts
- Integrate injectSynthInstruction and injectNudge into all three fetch handlers
- Add SynthPrompts interface and toolTracker context to FetchWrapperContext
- Wire up toolTracker and prompt loading in index.ts
@Tarquinen Tarquinen force-pushed the feat/synth-instruction branch from 565a6d8 to 6a199b1 Compare November 29, 2025 06:57
@Tarquinen Tarquinen merged commit 9183550 into Opencode-DCP:master Nov 29, 2025
1 check passed
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.

2 participants