Implement _run_refinement() with --refine flag #25

Open
opened 2026-04-06 22:28:21 +00:00 by archeious · 0 comments
Owner

Add _run_refinement() to ai.py. Triggered by --refine flag.

Refinement agent receives:

  • Current synthesis output
  • All dir and file cache entries including confidence scores
  • Full investigation toolset including external knowledge tools
  • List of low-confidence cache entries (< 0.7)

Instructed to: identify gaps, identify contradictions, identify cross-cutting concerns, resolve low-confidence entries, then submit improved report.

Natural stopping condition: agent calls submit_report without making any file reads or external lookups.

Add `_run_refinement()` to `ai.py`. Triggered by `--refine` flag. Refinement agent receives: - Current synthesis output - All dir and file cache entries including confidence scores - Full investigation toolset including external knowledge tools - List of low-confidence cache entries (< 0.7) Instructed to: identify gaps, identify contradictions, identify cross-cutting concerns, resolve low-confidence entries, then submit improved report. Natural stopping condition: agent calls submit_report without making any file reads or external lookups.
archeious added this to the Phase 8: Refinement Pass milestone 2026-04-06 22:28:21 +00:00
archeious added this to the Agentic Investigation Engine project 2026-04-06 22:33:57 +00:00
Sign in to join this conversation.
No labels
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: archeious/luminos#25
No description provided.