The page leanprompt report --html writes for OpenMontageInc/OpenMontage at commit 2e003e6, audited 2026-11-28. Every figure on this page is an estimate from reading the code, not a measurement of the app in use. Corrections and takedown: email info@podwarden.com or open an issue. Back to the audit of OpenMontageInc/OpenMontage

leanprompt audit of OpenMontageInc/OpenMontage

Unattended audit: nobody was asked during the run, so priority, volume and prices were left open; the questions for the owner are listed at the end.

3 places where this app pays for tokens it doesn't need

The biggest, at AGENTS.md:3, about 62k tokens per run: AGENTS.md and CLAUDE.md (line 3 in both) tell the agent to read AGENT_GUIDE.md, 49,611 bytes, before responding to any user message.

Together about 136k tokens per run (one animated-explainer production, 8 stages, about 100 agent calls) An estimate from the code, not a measurement.

Tokens per run (one animated-explainer production, 8 stages, about 100 agent calls), by finding, and each one's share of the total

Plus 1 other problem the audit found, listed after the findings. Not scored.

What this costs you

Every figure here is an estimate from the code, not a measurement. Findings can overlap (one failed call can show up in two), so the sum may count some tokens twice. Money is not part of the score. The table lists this app's findings first, largest first, then its open questions, then the questions for the server's administrator, then the findings the project already knows about, which are not in the totals.

A run is one animated-explainer production, 8 stages, about 100 agent calls. Per-run figures are a separate total, never added to the figures per 1,000 calls.

FindingWhereTokens per run
LP-PD-03AGENTS.md:362k prompt
LP-PD-03AGENT_GUIDE.md:58644k prompt
LP-PD-04skills/pipelines/explainer/proposal-director.md:9430k prompt

To see this in money, add to leanprompt.yaml:

  • prices: per model: input, cached_input and output per 1M tokens (US dollars, or set currency), with source and checked date (or, self-hosted, engine: {prefill_tokens_per_second: N})

leanprompt never guesses a volume or a price. Your coding agent can look up the provider's current price page and add it with the date; how.

What's wrong and what to change

3 open, 0 fixed. Largest first, by the audit's estimate of tokens lost per 1,000 calls, then per run.

AGENTS.md and CLAUDE.md (line 3 in both) tell the agent to read AGENT_GUIDE.md, 49,611 bytes, before responding to any user message.

Finding 1. AGENTS.md:3 medium LP-PD-03 how often is assumed

Every approval gate ends the agent's turn (AGENT_GUIDE.md line 599) and waits for the user, so one run is many user messages, and an agent that follows the sentence literally reads the 12,000-token guide again on each.

What to change
Say 'once per session, again only if it is no longer in context' in AGENTS.md and CLAUDE.md. Optionally move the sections only some runs need (onboarding, reference analysis, atelier mode, provider menu) into skills the guide points to.
Why it matters
The guide is about 12,400 tokens (49,611 bytes at 4 bytes per token) and every second read adds it to the context again.
How often it happens
The code shows the problem; how often it happens is assumed. To measure it: Look at a real transcript of one run and count how many times AGENT_GUIDE.md is read after the first message.
Estimate
about 62,000 prompt tokens per run if the guide is re-read at five of the gates
What the estimate assumes

5 re-reads of 12,400 tokens; agents differ in whether they re-read, which is why the status is frequency-unknown; the estimate counts the first pass only, not later cached reads.

How to check the fix In a transcript of a run with 6 or more user messages, AGENT_GUIDE.md is read once and the first-pass prompt tokens drop by about 12,000 per avoided read.

AGENT_GUIDE.md line 586 (and line 193) say to self-review after every stage with the reviewer skill, skills/meta/reviewer.md, 25,407 bytes.

Finding 2. AGENT_GUIDE.md:586 medium LP-PD-03 how often is assumed

Eight stages can mean eight reads of the same 6,400 tokens, and a revision round runs it again.

What to change
Write the rule as 'read reviewer.md once per run' and keep the per-stage part as a one-kilobyte checklist taken from the manifest's review_focus, which AGENT_GUIDE.md line 587 already loads.
Why it matters
The same 6,400 tokens enter the context at each stage in which the agent reads the file again.
How often it happens
The code shows the problem; how often it happens is assumed. To measure it: Count the reads of skills/meta/reviewer.md in a transcript of one run.
Estimate
about 44,000 prompt tokens per run (7 extra reads of 6,400 tokens)
What the estimate assumes

8 stages, one read each; agents that keep the first read in context avoid this, hence frequency-unknown; revisions (up to 3 a stage) would add more.

How to check the fix reviewer.md appears once in the transcript of a full run; the review notes still list the manifest's review_focus items.

The proposal stage tells the agent to print the whole tool registry as indented JSON (support_envelope) and then the whole capability catalog, although AGENT_GUIDE.md line 267 says the raw dump is a firehose, to be used for debugging only, and gives a short provider_menu_summary() for this step.

Finding 3. skills/pipelines/explainer/proposal-director.md:94 high LP-PD-04 size is assumed

The same dump is repeated in the animation and cinematic proposal skills and in video-reference-analyst.md.

What to change
In the proposal-director skills, replace the two commands with registry.provider_menu_summary() (the call AGENT_GUIDE.md already runs at preflight), or reuse its result; keep support_envelope() for debugging.
Why it matters
get_info() returns about 40 fields per tool, including the input and output schemas, for about 130 tools, and the output goes into the agent's context and is carried through every later call of the run.
How big it is
The code shows the problem and how often it happens; how many tokens it costs each time is assumed. To measure it: Run the two commands on a configured machine and count the characters printed (python -c ... support_envelope() and capability_catalog(), both indent=2).
Estimate
about 30,000 prompt tokens per run, more on a machine where it is not truncated
What the estimate assumes

about 130 tool classes (tools/ has 132 BaseTool subclasses), 2 to 3 KB of JSON each; the agent's shell tool cuts output at roughly 30,000 characters (about 8,000 tokens) in some harnesses and not in others, so 30,000 is a middle figure; the preflight in AGENT_GUIDE.md already ran once, so this is a second dump. Cached re-reads of it on later calls are not counted.

How to check the fix Run the proposal stage before and after on the same brief and compare the characters of the preflight tool results in the transcript; the capability list the agent shows the user must stay the same.

Other problems the audit found

Problems the audit checked in the code that cost no tokens of their own, such as a spend meter that ignores cache tokens or a cut-off answer accepted as complete. They are not scored. Check each one before you change anything.

Revision and send-back limits disagree and no code enforces them

Note 1. pipeline_defs/animated-explainer.yaml:49 not scored

The manifest sets max_revisions_per_stage: 3 and max_send_backs: 3. AGENT_GUIDE.md line 588 says at most two review rounds, and skills/pipelines/explainer/executive-producer.md line 135 says at most one send-back per stage pair (line 121 uses 3 for revisions). Only schemas/pipelines/pipeline_manifest.schema.json mentions the two keys; no Python or TypeScript reads them, so each limit exists only as a sentence the agent may follow.

What to change
Pick one number per limit, write it in the manifest, and make the guide and the executive-producer skill refer to the manifest instead of repeating a number.
Why it matters
Every extra revision runs a director skill (10,000 to 33,000 bytes) and its review again.

How to check the fix grep for the limits shows one number in the manifest and references to it elsewhere.

Fix it with your coding agent

Paste this into Claude Code, Codex, Cursor or any coding assistant. It will check each finding against your code and propose fixes one at a time, asking before it changes anything.

Please check and fix the LLM-call findings from a leanprompt audit of this repository.

1. If the leanprompt skills are not installed for you here, install them: npx leanprompt@0.1.0-dev.15 install
2. Read .leanprompt/findings.json and leanprompt-report.md. If they are missing, use the list below.
3. Check each finding against the code before you change anything. The audit can be wrong: if a finding does not hold, tell me why and leave that code alone.
4. Fix one finding at a time. Show me the change as a small diff and apply it only after I say yes.
5. Prove each fix with the measure-loop skill: a before and after on the same scenario. Ask me before running anything that sends real, billed requests.
6. When a fix is proved, set "fixed": true on its finding in .leanprompt/findings.json and run npx leanprompt@0.1.0-dev.15 score.

Findings, largest first:
1. LP-PD-03 at AGENTS.md:3: AGENTS.md and CLAUDE.md (line 3 in both) tell the agent to read AGENT_GUIDE.md, 49,611 bytes, before responding to any user message. Every approval gate ends the agent's turn (AGENT_GUIDE.md line 599) and waits for the user, so one run is many user messages, and an agent that follows the sentence literally reads the 12,000-token guide again on each.
2. LP-PD-03 at AGENT_GUIDE.md:586: AGENT_GUIDE.md line 586 (and line 193) say to self-review after every stage with the reviewer skill, skills/meta/reviewer.md, 25,407 bytes. Eight stages can mean eight reads of the same 6,400 tokens, and a revision round runs it again.
3. LP-PD-04 at skills/pipelines/explainer/proposal-director.md:94: The proposal stage tells the agent to print the whole tool registry as indented JSON (support_envelope) and then the whole capability catalog, although AGENT_GUIDE.md line 267 says the raw dump is a firehose, to be used for debugging only, and gives a short provider_menu_summary() for this step. The same dump is repeated in the animation and cinematic proposal skills and in video-reference-analyst.md.

Other problems found (check each against the code first; not scored):
- Revision and send-back limits disagree and no code enforces them (pipeline_defs/animated-explainer.yaml:49): The manifest sets max_revisions_per_stage: 3 and max_send_backs: 3. AGENT_GUIDE.md line 588 says at most two review rounds, and skills/pipelines/explainer/executive-producer.md line 135 says at most one send-back per stage pair (line 121 uses 3 for revisions). Only schemas/pipelines/pipeline_manifest.schema.json mentions the two keys; no Python or TypeScript reads them, so each limit exists only as a sentence the agent may follow. Change: Pick one number per limit, write it in the manifest, and make the guide and the executive-producer skill refer to the manifest instead of repeating a number.

Score

One number from 0 to 100 for how well this app avoids paying for the same tokens twice; higher is better. It is computed from the findings above (static) or from your usage log (measured).

98static
E, prefill reuse
0.98
S, prefix stability
1.00
G, generation waste
0.00
Default shares
0 of 3

Findings scored with severity defaults, not estimates. The fewer, the more the static score says about this app.

A static score is an estimate from the audit's findings, not a measurement.

Scored 2026-11-28 (the date on the machine that ran it).

Questions for the owner

These were not answered during the audit. Until they are, the page shows tokens only and ranks the advice without a priority.

  • Priority: which matters most for this app, cost, speed or quality (or weights)? Not set, so the advice uses equal weights. Answer with priority: in leanprompt.yaml.
  • Volume: how many calls does the app make a month? Answer with volume: {calls_per_month: N, source: "..."} in leanprompt.yaml.
  • Prices: what does each model cost (input, cached input, output per 1M tokens, with the source and the date it was read, and the currency if not US dollars)? Answer with prices: in leanprompt.yaml.