Terse

From arbazkhan971/godmode · View interactive version

Terse is an AI agent skill from the GitHub repository arbazkhan971/godmode. Output-compression mode for long autonomous loops. Activates via GODMODE_TERSE=1 env var or /godmode:terse. Compresses round summaries, status lines, and agent reports 40-60% while preserving TSVs, code, errors, commit messages, and the final user-facing summary.

How to use this skill

Skill file

Terse — Output Compression for Autonomous Loops

Purpose. Over a 20-round optimization loop, verbose prose summaries

dominate emitted tokens even though a human is rarely reading intermediate

rounds. Terse mode compresses the emit contract 40-60% without changing

the loop, the decisions, or the logged state. Inspired by caveman's

output-compression idea, restricted to what is safe for a structured,

TSV-driven workflow.

Activate When

(orchestrator decides based on session-state.json)

Deactivate: /godmode:terse off or unset the env var.

Auto-Activation

Long autonomous loops don't need verbose output — no human is reading intermediate rounds. After 5 consecutive rounds with no user interaction, terse mode auto-enables for the rest of the session.

What Compresses

Pairs with rtk for compound savings. Terse compresses what godmode

emits. The rtk Rust CLI compresses

what godmode reads (tool output from git, ls, tests, etc.) by 60-90%

before it enters model context. Installing both stacks both sides:

input-side via rtk's shell hook, output-side via terse mode. Optional —

terse works standalone and rtk is a separate binary.

What Stays Verbose (Never Compress)

etc. are exact strings that downstream rules depend on

Before / After Examples

Normal:

Round 7: Added connection pool sizing adjustment, verified with benchmark
(median of 3 runs), kept — metric improved from 276ms to 226ms (-18.2%).

Terse:

R7 keep: conn pool → 226ms (-18.2%)

Normal:

Builder Agent Report: Task implemented successfully. All 47 tests passing,
linter clean, no regressions in existing suite. 4 files modified, 2 files
created.

Terse:

Builder DONE: 47/47 tests, lint clean, 4 mod + 2 new.

Normal:

Godmode: stack=TypeScript, skill=optimize, phase=OPTIMIZE. Dispatching.

Terse:

GM: ts/opt/OPT dispatch.

Compression Rules

  1. Emit-only. Compress what you print. Never compress memory state,

lessons.md, failures.tsv, session-state.json, or any file on disk.

  1. Structure preserved. Same field order, same field count, same

numbers. (-18.2%) stays (-18.2%), not (~-18%).

  1. Numeric precision unchanged. 198ms stays 198ms, never rounded.
  2. Code never touched. Diffs, snippets, and inline code are raw.
  3. Errors always full. A failing test's stack trace is emitted in

full regardless of terse mode.

  1. Final summary always verbose. The last line of a session is the

user's record — emit it in full prose.

Integration Contract

Every skill SHOULD branch its output template on terse mode. Pattern:

IF $GODMODE_TERSE:
  print "R{round} {status}: {change} → {metric} ({delta}%)"
ELSE:
  print "Round {round}: {change}. {status}. Metric: {metric} ({delta}%)."

Both templates carry identical information — terse is a strict 1:1

compression, not a lossy summary. This is verifiable: parsing either

output MUST yield the same fields.

Hard Rules

  1. Terse is an output contract, not a behavior change. Loops, decisions,

commits, reverts, and TSV writes are identical in both modes.

  1. Never drop a field. "Keep" status without metric is incomplete.
  2. Never compress user-facing errors. Silent truncation = lost evidence.
  3. Never compress the final summary at session end.
  4. TSV schemas are immutable. Terse mode does not touch column counts.

Success Criterion

Over a 10-round loop with GODMODE_TERSE=1, total emitted tokens decrease

by at least 30% vs. baseline, AND:

Verify with:

# Run identical workflow twice
GODMODE_TERSE=0 /godmode:optimize 2>&1 | wc -c > baseline.bytes
git stash && git checkout HEAD~1  # reset state
GODMODE_TERSE=1 /godmode:optimize 2>&1 | wc -c > terse.bytes
echo "reduction: $(( 100 - 100 * $(cat terse.bytes) / $(cat baseline.bytes) ))%"

Target: ≥30% reduction. Accept ≥20% as success for short loops.

Stop Conditions

terse mode for rest of session, log incident

Output Format

On activation (terse itself):

Terse: ON (mode=auto|explicit, baseline_tokens={N}, target_reduction=30%)

On deactivation:

Terse: OFF. Emitted={N} tokens, reduction={N}%, contract_violations={N}.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.