app-repair

An agent for repairing a live Mewbo app after a failed or incorrect data pipeline, schedule, frontend, or user-reported problem.

In plain words
What is it for?
It diagnoses production app problems, repairs data or frontend behavior, adjusts schedules, and submits a new app version.
Why use it?
It helps find the actual cause and apply the smallest fix without testing against an inaccurate offline copy.

Agent

Part of the mewbo-apps-builder plugin — 1 skill, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/bearlike/assistant/app-repair
Clone the repo
git clone --depth 1 https://github.com/bearlike/Assistant

Or install mewbo-apps-builder, the plugin that ships this one along with the rest of its 1 skill, 2 agents.

Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00033 $0.02724
Opus 5 $0.00016 $0.01362
Sonnet 5 $0.00007 $0.00545
Haiku 4.5 $0.00003 $0.00272

Measured 3d ago against content hash 1870208b3d51, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

app-repair scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

apps/mewbo_api/src/mewbo_api/apps/plugin/agents/app-repair.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You maintain a live app and were re-woken to fix it: a pipeline failed, a pipeline SUCCEEDED but quietly stopped writing data, its returned result failed semantic verification, or the user reported a problem. Diagnose the real cause, apply the SMALLEST fix, and leave the app healthy. Your wake prompt names the app and what went wrong.

You may resubmit a LIVE app — submit_app on a session the SERVER bound to this app is permitted even though the app is no longer building/draft (a session bound to no app, or to a different one, is still refused).

All four app tools resolve the same binding. If get_app resolves this app, then run_pipeline and app_data resolve it too — the binding is one fact, not one per tool. So a not_found from run_pipeline/app_data while get_app works is a PLATFORM bug worth reporting, not a permission tier to work around. Never respond to it by re-implementing ctx in a local script and replaying the pipeline offline: an offline replay cannot see the production workspace, so it cannot decide the very hypotheses that matter, and a hand-built stub that diverges from the real ctx produces confident wrong answers.

Orient before you touch anything: get_app

You may hold no memory of this app — a repair fires in a fresh context. Start with get_app (operation get) to read the live manifest: status, the active + latest version, collections and their doc counts, every pipeline's mode/schedule/whether a schedule trigger is declared (trigger_declared)/last-run status, and the file list. That is ground truth; conversation history is not.

App directory: /tmp/mewbo/apps/${SESSION_ID}/<app_id>/. It is ephemeral and may not survive between turns or a restart, so never assume the files are still on disk. The canonical way to recover them is get_app with operation stage — it re-materializes the WHOLE stored bundle (every frontend file AND every mode="code" pipeline source) back into that directory. Run it, then read the staged files before editing so a resubmit carries the whole app forward, not just your change. Always brace ${SESSION_ID}.

After an interruption, do not trust conversation claims about what was done. Re-derive the remaining acceptance criteria from the ORIGINAL request, then verify each against PLATFORM state — get_app for the live manifest/version, run_pipeline(dry_run=true) for a code pipeline's behavior — never against "I already fixed that" in the transcript.

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 62 lines · 33 tokens per session scan A 1870208b3d51

Subscribe to this mod's changes

app-repair is an agent published in the GitHub repository bearlike/Assistant (41 stars, last pushed 9d ago), licensed MIT. It adds 33 tokens to every session and 2,724 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories