Skip to content

[caveman] Optimize instruction verbosity — token-optimization.md (2026-05-26)#35057

Merged
pelikhan merged 1 commit into
mainfrom
caveman/token-optimization-2026-05-26-a13395e36434f1e4
May 26, 2026
Merged

[caveman] Optimize instruction verbosity — token-optimization.md (2026-05-26)#35057
pelikhan merged 1 commit into
mainfrom
caveman/token-optimization-2026-05-26-a13395e36434f1e4

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 26, 2026

Trim token-optimization.md redundancy

Summary

Editorial pass on .github/aw/token-optimization.md to reduce verbosity without removing any semantic content. The guide covers the same techniques; it is simply more concise.

What changed

File Change type
.github/aw/token-optimization.md Documentation edit

Detail

Removals / condensations applied across the file:

  • Intro sentence deleted — "Tokens are the primary cost driver..." was self-evident from context.
  • MCP tool examples inlined — two fenced blocks illustrating audit tool calls (single-run and multi-run) collapsed to inline code: Equivalent via MCP: \audit` tool with `run_id: (run-id)``
  • "Why this saves tokens" rationale — reduced from two sentences to one.
  • gh-proxy paragraph — condensed from 3 lines to 1.
  • "What to minimize:" bullet list (Technique 4) — 6 bullets deleted in full.
  • schedule: yaml block — block + surrounding prose collapsed into a single sentence.
  • OTEL section — sentence + "See also" link merged into one line.
  • AgenticOps bullet list intro — introductory sentence removed.
  • Loop paragraph — collapsed to one sentence.

Why

The previous prose repeated context the reader already has, added navigation overhead, and made the guide longer to scan during high-token workflows — the exact situation the guide is meant to address. No technique, recommendation, or link was dropped.

Testing

Documentation-only change; no code or schema affected.

Commits

SHA Message
f6e50a9fc Trim token-optimization.md redundancy

Generated by PR Description Updater for issue #35057 · sonnet46 739.1K ·

Remove prose duplicating adjacent tables/headings:
- Intro restating the heading
- Two "Or via MCP tool" subsections folded to one-liners
- Mode prose duplicating the summary table
- "What to minimize" paraphrase of caveman principles
- Wordy OTLP and AgenticOps descriptions

Net: -36 lines (408 → 371), no schema/example/constraint signal removed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added automation documentation Improvements or additions to documentation prompt-quality labels May 26, 2026
@pelikhan pelikhan merged commit bcac7fb into main May 26, 2026
@pelikhan pelikhan deleted the caveman/token-optimization-2026-05-26-a13395e36434f1e4 branch May 26, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation prompt-quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant