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

Why Feeding Full Dependency Files to Your Coding Agent Hurts Accuracy: Full Source vs. Tree-sitter Interface Skeletons

Описание и применение

Передача полных исходных файлов зависимостей кода агенту ИИ снижает точность из‑за «разбавления внимания». Использование интерфейсных скелетов Tree‑sitter, содержащих только сигнатуры и контракты, приводит к 100 % успешности тестов, снижает токены на 94,9 % и ускоряет выполнение на 57 %.

Задача

Providing an AI coding agent with the entire source code of all imported dependencies when editing a module reduces accuracy due to attention dilution.

Результат

Tree‑sitter skeleton context achieved a 100% pass rate, 0 contract traps, 1 LLM call, 57.2% faster execution, and 82.6% lower API cost compared to full dependency context.

Рабочий процесс

  • Load full dependency dump (Mode A)
  • Stage dependency patch (Mode A)
  • Submit skeleton guided bundle (Mode A)
  • Read AST interface skeleton (Mode B)
  • Submit all modules (Mode B)

Доказательства

Passing only the Tree‑sitter Interface Skeleton (2,316 input tokens) enabled a 1‑turn 20 / 20 (100%) pass on the hidden test suite.

Источник

Mode A's full dependency dump consumed 45,270 input tokens across 3 turns and stalled at 17 / 20 (85.0%) due to attention dilution.

Источник

Mode B cut cumulative input tokens by -94.9% (19.55x reduction), API cost by -82.6% ($0.0446 ➔ $0.0078), and execution time by -57.2% (2.34x faster).

Источник

  • Дата записи: 2026-11-01T02:29:04.013Z