Saving tokens and cost by using Jev in Jinja templated Skills

Reddit r/AI_Agents Tools

Summary

作者在 Claude Code 会话中测试将 Jev/Decision 模型嵌入 Jinja 模板化的 Skill,通过让决策模型直接处理文件而不经过 Opus 上下文,实现了约 70% 的上下文/成本节省和 4-5 倍的速度提升。

I’ve been testing Jev/Decision models inside Claude Code sessions, and for some tasks, where you need to iterate over many objects quickly to get a simple non-deterministic answer, it works pretty well. The first obvious approach was to let Opus call it as a tool, and that was kind of useless. Jev answers in under a second, but it’s hard to prevent Opus from spending time writing each request and reading the files into its own context while also keeping it flexible. So the setup needs to have: The request written before the session needs it. File contents going straight to the decision model, never passing through Opus’s context. I decided to put the Jev request definition into a Jinja-templated Skill and ran some benchmarks comparing a single regular Opus session vs. Opus + Haiku vs. Opus + Jev in a Jinja Skill. It gets pretty good results when you have many items (files) and need a simple (non-deterministic) judgment call rather than a rule (Which isn’t possible to achieve with the ad-hoc Python scripts Opus tends to write for deterministic tasks). 70% of Claude context/cost saved and it's 4/5 times faster than doing same work in a single Claude session with Opus (Attaching benchmark in comments). Where it falls short: a one-off request on a single small item. There, the overhead of spinning up the Jinja Skill inside the harness runtime can be higher than just handing the item to Haiku. To execute Jinja templated skills in Claude runtime I used Skill that runs other Skills as Jinja templates (LLAJinja)
Original Article

Similar Articles

To Make, or to Buy: The Economics of Decision Models

Hacker News Top

一篇博客文章系统分析了决策模型(如 Jev)的经济学,探讨其 choice/score/noul 输出类型、几乎免费的输出 token 成本,以及由此衍生的"决策层级"内存层级类比。

@vincemask: After setting up the three layers of Skill + Workflow + Configuration, you can enjoy compound efficiency growth: • Skills layer - 10 permanent instructions for PDF/DOCX/PPTX/XLSX, etc., directly generating finished files instead of plain text • Workflows layer - Morning reports, weekly…

X AI KOLs Timeline

The author shares a method of leveraging Claude to build a three-layer system of Skill, Workflow, and Configuration to achieve compound efficiency growth, including automatically generating finished files, running workflows periodically, and continuous optimization through a feedback loop, resulting in significant time savings in the short term.

haiku matched opus on 2 coding tasks once i fixed the skill, ~95% cheaper per run

Reddit r/AI_Agents

An experiment shows that after a few skill edits, Claude Haiku matched Opus on two judgment-call coding tasks while costing ~95% less per run, suggesting skill fixes can beat upgrading to a bigger model. The author notes the eval is tiny (2 tasks, 3 runs each) and shares an open-source eval tool built with Claude Code.