Add summary replacement for excluded lockfiles/generated files

Open
#189 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
git, go
Domain
cli

Research direction

Start by tracing how files exceeding MAX_TOKENS are excluded from the diff, then inspect the user-prompt construction and the --compact-summary git output. Decide how well-known generated files should be recognized and summarized, with the completed behavior replacing eligible excluded files with summary lines while leaving other exclusions unchanged.

Written by the indexing model from the issue text.

Description

Currently, files that exceed the MAX_TOKENS limit are simply excluded from the diff sent to the LLM. For well-known generated files (lockfiles, minified assets), we should replace them with a summary line instead of excluding them entirely.

For example:
... (lockfile updated: X dependencies added, Y removed)

This could use the --compact-summary git output in the user prompt, or implement a lightweight summary generator for excluded files.

Originally identified in #183 - Smart Token Budgeting & Large Diff Truncation.

Dominant language
Go
Stars
0
Forks
0
Avg merge
18h 49m
Merged PRs (30d)
13

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rm-hull/git-commit-summary

All issues in rm-hull/git-commit-summary

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.