Skip to content

Optimization/story telling#5

Merged
BurakKTopal merged 4 commits intomainfrom
optimization/story-telling
Dec 29, 2025
Merged

Optimization/story telling#5
BurakKTopal merged 4 commits intomainfrom
optimization/story-telling

Conversation

@BurakKTopal
Copy link
Owner

Summary

  • Pattern detection: get_local_line_context now detects common code patterns (commented code with active alternatives, TODOs, stale fixes) and provides quick_answer suggestions
  • Nearby context: New include_nearby_context parameter shows code before/after selection to detect active implementations
  • Confidence scoring: Returns confidence level with specific signals to help LLMs decide when they have enough context
  • Updated agent prompts: SYSTEM_PROMPT now guides LLMs to lead with answers ("TL;DR first") instead of archaeology

Test plan

  • Run pytest tests/test_nearby_context.py -v to verify pattern detection logic
  • Test get_local_line_context on commented code with active implementation below — should return patterns_detected and quick_answer
  • Test VS Code extension on commented code — should show faster, more direct answers
  • Verify confidence scores appear in tool output

@BurakKTopal BurakKTopal merged commit 2510d42 into main Dec 29, 2025
5 checks 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.

1 participant