Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

We built a product around context cost and never measured our own tools

Description and use

Meronq’s large tool responses inflated context cost. By returning counts, enforcing a 32 KB ceiling, and removing dead rows, payloads shrank over 90 %.

Problem

Tool responses were returning massive payloads (up to 84 KB) for simple sync and list operations, inflating context cost and degrading performance.

Outcome

Payload sizes reduced by >90 %, eliminating unnecessary context cost and improving AI assistant performance.

Workflow

  • 1. Modify shared response helper to return counts, changes, warnings, and a hint by default.
  • 2. Apply a 32 000‑byte ceiling; oversized objects replaced by a notice with actual size.
  • 3. Add escape hatch for explicit full‑detail requests.
  • 4. Clean project_list to list only existing disk entries, removing dead rows from test suite registrations.
  • 5. Update instrumentation to log response sizes for all dispatcher calls.

Evidence

memory_sync (Unity project) before 85,061 B after 3,528 B

Source

Return counts by default. memory_sync, project_scan and github_sync share one code path.

Source

Put a ceiling on the shared response helper. Every result now passes a 32,000-byte limit.

Source

  • Record date: 2026-09-07T04:52:05.357Z