Skip to content

reduce false positives: wider context, numbered diff lines, YAML support#12

Merged
radetsky merged 1 commit into
mainfrom
feature/inline_suggestions3
Feb 19, 2026
Merged

reduce false positives: wider context, numbered diff lines, YAML support#12
radetsky merged 1 commit into
mainfrom
feature/inline_suggestions3

Conversation

@radetsky

Copy link
Copy Markdown
Owner
  • Increase default context from 3 to 10 lines (git -U flag + config)
  • Add --context N CLI flag and GitHub Action input to override per run
  • Number all diff lines sent to LLM (context before/after, removed lines) to eliminate hallucinated file:line references
  • Show context_after in LLM-formatted diff (was parsed but never sent)
  • Add .yml/.yaml to reviewed file types (GitHub Actions, docker-compose, k8s)
  • Increase default max_tokens_per_request from 4096 to 8192
  • Strengthen prompt: tell LLM how many context lines are included and instruct it not to flag constructs outside the visible area
  • Validate action input 'context' as integer in shell to prevent injection

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

  - Increase default context from 3 to 10 lines (git -U flag + config)
  - Add --context N CLI flag and GitHub Action input to override per run
  - Number all diff lines sent to LLM (context before/after, removed lines)
    to eliminate hallucinated file:line references
  - Show context_after in LLM-formatted diff (was parsed but never sent)
  - Add .yml/.yaml to reviewed file types (GitHub Actions, docker-compose, k8s)
  - Increase default max_tokens_per_request from 4096 to 8192
  - Strengthen prompt: tell LLM how many context lines are included and
    instruct it not to flag constructs outside the visible area
  - Validate action input 'context' as integer in shell to prevent injection

  Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

✅ LLM Code Review

Status: Passed

Category Count
Critical Issues 0
Warnings 0
Suggestions 0

Generated by LLM Code Review

@radetsky radetsky merged commit dc4d8a3 into main Feb 19, 2026
1 check passed
@radetsky radetsky deleted the feature/inline_suggestions3 branch February 19, 2026 22:25
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