OHREN_Lab

Open source오픈소스TokenEconomizerTokenEconomizer

TokenEconomizer, an open-source plugin that cuts coding agent costs by learning from earlier sessions in a repositoryTokenEconomizer, 저장소의 지난 세션을 배워 코딩 에이전트 비용을 줄이는 오픈소스 플러그인

It uses the sessions already run in a repository to cut rediscovered facts, unused tools and failure loops. The paper's authors report 18.4–30.9% lower mean cost across 277 SWE-Bench tasks.같은 저장소에서 쌓인 세션 기록으로 다시 찾는 사실, 쓰지 않는 도구, 실패 반복을 줄입니다. 논문 저자들은 SWE-Bench 277개 과제에서 평균 비용이 18.4~30.9% 줄었다고 적었습니다.

Checked확인일
TokenEconomizer README figure: cost bars for six sessions step down as micro-skills, tool pruning and failure-loop intervention take effect
Image: TokenEconomizer README.이미지: TokenEconomizer README. TokenEconomizer authors · Apache License 2.0

View original image원본 크게 보기

TokenEconomizer is an open-source plugin that cuts the repeating costs of coding agents in repositories they work in often. It leaves the agent's model and code alone, reads the sessions already run in a repository, and reduces waste in the sessions that follow. The repository is public under the Microsoft organization with an Apache-2.0 license, and the authors are from UC Berkeley and Microsoft.TokenEconomizer는 코딩 에이전트를 자주 쓰는 저장소에서 되풀이되는 비용을 줄이는 오픈소스 플러그인입니다. 에이전트의 모델이나 코드는 건드리지 않고, 그 저장소에서 이미 실행한 세션 기록을 읽어 다음 세션의 낭비를 줄입니다. 저장소는 Microsoft 조직 아래 Apache-2.0으로 공개돼 있고, 저자는 UC Berkeley와 Microsoft 연구진입니다.

It has three mechanisms. Micro-skills learn repository facts that sessions keep rediscovering, such as python -m pytest, and state a fact at session start once three sessions have confirmed it. A fact that later sessions contradict is dropped. Tool pruning stops loading a tool that goes unused over 10 prompts across at least two sessions, or over five sessions of any length. One command brings it back.줄이는 방법은 셋입니다. 마이크로 스킬은 python -m pytest처럼 세션마다 다시 찾는 저장소 사실을 배워, 세 세션에서 확인된 사실만 세션 시작 때 알려 줍니다. 뒤의 세션과 어긋나면 그 사실은 버립니다. 도구 가지치기는 세션 둘 이상에 걸친 프롬프트 10개, 또는 세션 5개 동안 쓰이지 않은 도구를 다음 세션부터 불러오지 않습니다. 명령 하나로 되돌릴 수 있습니다.

Failure-loop intervention asks a judge model whether a turn repeating the same failures is stuck. If the judge is at least 0.7 sure, the agent gets one short note per turn to try another approach. If the turn is still stuck, the plugin tells the person how to stop it and never stops it itself. What it learns stays on the machine in ~/.tokeneconomizer, and if part of the plugin fails, the session carries on as if it were not installed.실패 반복 개입은 한 턴이 같은 실패를 되풀이할 때 판정 모델에게 막혔는지 묻고, 확신이 0.7 이상이면 다른 방법을 시도하라는 짧은 메모를 턴마다 한 번 넣습니다. 그래도 막혀 있으면 멈추는 방법을 사람에게 알릴 뿐, 턴을 직접 멈추지는 않습니다. 배운 내용은 자기 컴퓨터의 ~/.tokeneconomizer에 남고, 플러그인 일부가 실패해도 세션은 설치 전처럼 이어집니다.

TokenEconomizer README diagram: the plugin applies micro-skills, tool pruning and failure-loop intervention to an unchanged coding agent, and each finished session's log updates all three
Image: TokenEconomizer README.이미지: TokenEconomizer README. TokenEconomizer authors · Apache License 2.0 Open original원본 보기

The paper ran five agent–model combinations on the same 277 SWE-Bench tasks from six repositories. The authors measured 18.4–30.9% lower mean cost, lower cost in all 30 repository × combination cells, and a higher first-attempt pass rate (Pass@1) in four of the five combinations. The figures include the plugin's own model calls. Savings were 16–21% on Web-Bench and 6–20% on two security-auditing benchmarks where every task is in a new repository.논문은 저장소 여섯 개의 SWE-Bench 과제 277개를 에이전트와 모델 조합 다섯 개로 실행한 결과를 실었습니다. 저자들이 잰 평균 비용 감소는 18.4~30.9%이고, 저장소와 조합을 곱한 30개 경우 모두에서 비용이 줄었으며, 첫 시도 통과율(Pass@1)은 다섯 조합 중 넷에서 올랐습니다. 플러그인이 쓴 모델 호출 비용까지 넣은 값입니다. Web-Bench에서는 16~21%, 과제마다 새 저장소를 쓰는 보안 감사 벤치마크 둘에서는 6~20% 줄었습니다.

On Claude Code, installation means cloning the repository, adding the folder with claude plugin marketplace add and running claude plugin install tokeneconomizer@tokeneconomizer. It needs Python 3.10 or newer and no API key of its own, and its model calls run through the agent's existing plan or login. It also installs on Codex, GitHub Copilot CLI and Pi, with experimental support for opencode, Cursor Agent and Hermes Agent.Claude Code에서는 저장소를 내려받은 뒤 claude plugin marketplace add로 그 폴더를 더하고 claude plugin install tokeneconomizer@tokeneconomizer로 설치합니다. Python 3.10 이상이 필요하고 플러그인 전용 API 키는 필요 없습니다. 모델 호출은 쓰던 에이전트의 요금제나 로그인으로 나갑니다. Codex, GitHub Copilot CLI, Pi에도 설치할 수 있고, opencode, Cursor Agent, Hermes Agent는 실험 지원입니다.

The supported range is narrow. Tested versions are listed, such as Claude Code 2.1.300 to 2.1.310 and Codex 0.153.1 to 0.164.0, and the README says newer versions have not been tested yet. Micro-skills starts off because it adds model calls and its savings depend on the repository and the work. In a headless run, a flagged turn runs until it ends or reaches the agent's own limits.지원 범위는 좁습니다. Claude Code 2.1.300~2.1.310, Codex 0.153.1~0.164.0처럼 시험한 버전 범위가 정해져 있고, 더 새 버전은 아직 시험하지 않았다고 적었습니다. 마이크로 스킬은 모델 호출이 늘고 절감 폭이 저장소와 작업에 따라 달라 처음에는 꺼져 있습니다. 사람이 보지 않는 헤드리스 실행에서는 막힌 턴이 끝나거나 에이전트 자체 한도에 닿을 때까지 실행됩니다.

All algoit posts알고IT 글 목록

Follow algoit on알고IT 팔로우하기X Instagram Threads