Repository navigation
AIML-316: Add token-efficient build commands - #43
Merged
Merged
Conversation
- Add hack/run_silent.sh for quiet build output (99% token savings) - Add Makefile with make test, make check, make verify targets - Update CLAUDE.md with new make targets documentation Based on abacus project pattern. Reduces AI agent token usage from ~17K chars to ~45 chars for test runs by capturing output and showing only success/failure summary with test counts. Use VERBOSE=1 for full output when debugging failures.
ChrisEdwards
requested review from
JacobMagesHaskinsContrast and
dougj-contrast
December 13, 2025 01:54
seschis
approved these changes
Dec 13, 2025
dougj-contrast
approved these changes
Dec 15, 2025
JacobMagesHaskinsContrast
approved these changes
Dec 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Makefile and
hack/run_silent.shto reduce AI agent token usage by ~99% for build commands.Why
Token analysis showed that Maven build output was consuming 17K+ characters per test run, even with
-qflag and output filtering. This is wasteful for AI agents that need to run tests frequently.What
make test,make check, etc.) that use run_silent.shHow
Based on the pattern from steveyegge/abacus project:
✓ Unit tests passed (401 tests, 4.5s)(~45 chars)[ERROR]lines for debuggingVERBOSE=1for full output when neededToken Savings
mvn testTest Plan
make testshows quiet output with test countmake checkshows quiet outputmake check-testruns bothmake test VERBOSE=1shows full Maven output[ERROR]lines