Ponytail + Archcore
Cut the code that no project decision needs. Decisions you settle stay in Git as draft ADRs.
How Ponytail + Archcore work together
Ponytail + Archcore lets your agent cut code hard without cutting what a project decision requires. Ponytail pushes each change toward the shortest working diff. Archcore gives the agent the accepted decisions to check first, and a place to save the ones you settle.
Say Ponytail’s review flags a one-implementation interface as dead weight, but an accepted ADR says partner packages implement it. The agent finds the ADR, keeps the interface, and still cuts the unused factory next to it.
See the benchmark note and the recheck note for what was measured. Modes and installation are on the Ponytail project page.
Как Ponytail и Archcore работают вместе
С Ponytail и Archcore агент смело удаляет код, но не трогает то, что требуют решения проекта. Ponytail сводит каждое изменение к самому короткому рабочему diff. Archcore даёт агенту принятые решения, чтобы сверить их заранее, и место, куда сохранить то, что вы решили.
Допустим, review Ponytail считает лишним интерфейс с одной реализацией. А принятый ADR говорит, что его реализуют пакеты партнёров. Агент находит ADR, оставляет интерфейс и всё равно удаляет ненужную фабрику рядом.
Что именно измеряли, описано в заметке о тесте и заметке о повторной проверке. Режимы и установка описаны в проекте Ponytail.
- Archcore ↗
- Keeps project decisions in Git so the agent checks them before it cuts code and records the ones you settle. Хранит решения проекта в Git, чтобы агент сверялся с ними до удаления кода и записывал решения, которые вы закрепили.
- Ponytail ↗
- Pushes the agent toward the shortest working change and flags code that can be deleted. Подталкивает агента к самому короткому рабочему изменению и отмечает код, который можно удалить.
From a simplification to a kept decision
The instructions ask your agent to:
-
Check decisions before cutting
Before Ponytail's rules or review remove code, the agent searches Archcore for records that name it.
-
Keep what a decision requires
If an accepted record needs the code, it stays, and the agent cites the record. Everything else gets the shortest working diff.
-
Record what you settle
If your request settles a decision, like dropping a feature, the agent saves it as a draft ADR (architecture decision record) in .archcore/. The next session finds the reason there, not in chat history.
Both tools must already be set up. Ponytail keeps its rules and review; Archcore keeps the decisions.
One request, start to finish
Request The owner decided to drop gift wrapping: the supplier contract ended. Remove it from the quotation library, so quote() no longer takes gift_wrap or returns extras. Keep the tests passing.
-
Archcore: The agent searches Archcore for the touched symbols and finds the integer-cents ADR. The removal does not conflict with it.
-
Ponytail: Ponytail's rules keep the diff short: the agent deletes the gift-wrap registry, the argument, the extras field and its test.
-
Agent: The agent runs the tests before it reports.
-
Archcore: Your request settles a decision, so the agent saves it as .archcore/shop/drop-gift-wrapping.adr.md with your reason.
-
Agent: A later session that searches for gift wrapping finds the draft ADR. You accept or reject it in review.
This is what the instructions ask for, not a recorded run. The same request passed 30 of 30 benchmark runs across three models; the later-session step was not run.
Benefits & limits
Cut code without losing project decisions.
With the instructions, the agent kept code an accepted ADR requires and recorded settled decisions as draft ADRs. Without them, it recorded 0 of 15 such decisions.
- Ponytail's review meets an accepted decision
-
The agent kept the interface the ADR requires and cut the unused factory next to it: 20 of 20 runs with claude-sonnet-5, 10 of 10 with claude-sonnet-5-5.
Without the instructions, claude-opus-5-5 kept the interface too, so the gain depends on the model.
- You settle a decision in the request
-
The agent saved the decision as a draft ADR in every run with the instructions, and in none without them.
Decisions made in the middle of a longer conversation were not tested.
Start with Archcore.
Keep your project decisions ready for the next task.