Reduce output for LLMs

Open
#32,596 1 comment 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
angular, typescript
Domain
build-system, cli

Research direction

Start with the build command and the chunk-statistics output described in the issue; verify whether --no-progress affects it. Decide whether an LLM environment variable or a flag is the intended interface, then confirm that the build output omits chunk statistics while preserving the build results.

Written by the indexing model from the issue text.

Description

area: @angular/build feature feature: votes required needs: investigation
Command

build

Description

Every time Angular builds, it prints chunk stats:

Initial chunk files   | Names         |  Raw size | Estimated transfer size
chunk-R3S5GO54.js     | -             | 269.50 kB |                68.58 kB
chunk-NI535PZY.js     | -             | 183.41 kB |                55.12 kB
...

If you are using an LLM, this unnecessarily reduces available context and eats up tokens.

I couldn't find a flag to disable this output.

Describe the solution you'd like

Inspired by this post, we could support an LLM env variable that would drastically reduce the output.

Alternatively a flag to remove stats would be nice.

Describe alternatives you've considered

--no-progress, but it doesn't help.

Dominant language
TypeScript
Stars
27k
Forks
11.8k
Avg merge
16h 35m
Merged PRs (30d)
176

Contributor guide

Open the contributing guide

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 angular/angular-cli

All issues in angular/angular-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.