feat(curator): switch Hermes Curator to DeepSeek V4-Pro via deepseek_local adapter #3

Merged
chaim merged 1 commits from feat/deepseek-curator-adapter into main 2026-05-10 06:21:28 +00:00
Owner

Summary

  • Switch Hermes Curator from hermes_local/Sonnet 4.5 to deepseek_local/DeepSeek V4-Pro based on A/B test (2026-05-05): 2-3x faster, ~20x cheaper, comparable quality
  • Add adapters/deepseek-paperclip-adapter/ — Paperclip external adapter that spawns hermes chat with DeepSeek profile
  • Document adapter requirements: env injection (PAPERCLIP_RUN_ID, PAPERCLIP_API_KEY, PAPERCLIP_API_URL), run-id header pattern
  • Record lessons from ערר 1200-25 (קרית ענבים, May 2026):
    • Block order for 1xxx: ט (plans) before ז (claims)
    • Mandatory "להלן מתוך [document]:" pattern (12 occurrences in Daphna edit vs 0 in draft)
    • Expanded factual background (90 -> 420 words)
    • Bridge planning analysis (גשר תכנוני)
    • Flat heading structure (Heading 2 only)
    • Inline precedent distinguishing
    • 6 new transition phrases
  • Update CLAUDE.md with adapters/ directory docs
  • Archive 3 A/B test scripts in scripts/.archive/

Test plan

  • Verify deepseek_local adapter loads: curl http://localhost:3100/api/adapters
  • Trigger Hermes Curator on a completed case and confirm DeepSeek wake
  • Confirm PAPERCLIP_RUN_ID env injected (no 401 errors)
  • Run sync_agents_across_companies.py --verify

🤖 Generated with Claude Code

## Summary - **Switch Hermes Curator** from `hermes_local`/Sonnet 4.5 to `deepseek_local`/DeepSeek V4-Pro based on A/B test (2026-05-05): 2-3x faster, ~20x cheaper, comparable quality - **Add `adapters/deepseek-paperclip-adapter/`** — Paperclip external adapter that spawns `hermes chat` with DeepSeek profile - **Document adapter requirements**: env injection (`PAPERCLIP_RUN_ID`, `PAPERCLIP_API_KEY`, `PAPERCLIP_API_URL`), run-id header pattern - **Record lessons from ערר 1200-25** (קרית ענבים, May 2026): - Block order for 1xxx: ט (plans) before ז (claims) - Mandatory "להלן מתוך [document]:" pattern (12 occurrences in Daphna edit vs 0 in draft) - Expanded factual background (90 -> 420 words) - Bridge planning analysis (גשר תכנוני) - Flat heading structure (Heading 2 only) - Inline precedent distinguishing - 6 new transition phrases - **Update CLAUDE.md** with adapters/ directory docs - **Archive 3 A/B test scripts** in scripts/.archive/ ## Test plan - [ ] Verify deepseek_local adapter loads: `curl http://localhost:3100/api/adapters` - [ ] Trigger Hermes Curator on a completed case and confirm DeepSeek wake - [ ] Confirm PAPERCLIP_RUN_ID env injected (no 401 errors) - [ ] Run sync_agents_across_companies.py --verify 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 1 commit 2026-05-10 06:00:29 +00:00
A/B test (2026-05-05) showed DeepSeek V4-Pro is 2-3x faster and ~20x cheaper
than Sonnet for style/lexicon pattern analysis, with comparable quality.
Adds adapters/deepseek-paperclip-adapter/ package, documents adapter requirements
(env injection, run-id headers), updates CLAUDE.md with adapter integration notes,
and records lessons from ערר 1200-25 (block order for 1xxx, "להלן מתוך" pattern,
expanded factual background, bridge planning analysis, flat heading structure).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
chaim merged commit 13a8d9e58f into main 2026-05-10 06:21:28 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezer-mishpati/legal-ai#3