Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By leancodepl Verified Orgv0.1.1MITIn 1 marketplace
Read the running Flutter app's latest run logs as on-demand context — inspect what a flutter run already produced (including build errors and crashes), no live connection or instrumentation. Surfaces the relevant slice to Claude via /read-logs.
Claude loads one when your task matches it, or you run it by name.
LeanCode Flutter plugin that lets Claude read the running app's flutter run output as
on-demand context. Instead of pasting terminal logs, you run the app, then ask:
/read-logs why is the login screen stuck
Claude reads the most recent run's logs and works your task against them. It is a context loader, not an auto-analyzer.
skills/read-logs/SKILL.md: the /read-logs workhorse. It resolves the per-project log,
auto-detects format, reads task-led, flags stale runs, and guides first-run setup.skills/flutter-read-logs-usage/SKILL.md: explains the plugin and routes to setup.Each project logs to its own file, /tmp/flutter-<repo>.log, where <repo> is derived
from the shared .git (git rev-parse --git-common-dir), so the main checkout and every
git worktree resolve to the same file. The file is overwritten on every launch (always
the latest run; with VS Code or Cursor, a test run started from the editor counts too) and lives in /tmp: outside the repo, nothing to gitignore, cleared on
reboot. /read-logs derives the path at runtime and auto-detects the format.
The only per-developer step, done once, is making your editor write that file. If you
run /read-logs before setting it up, the skill walks you through it (and offers to apply
the change). It only edits local config; it never commits anything.
Reading a run sends its contents to the model. That is the leak: it's how the tool
works, and it can't be prevented. Run logs routinely contain auth/refresh/push tokens,
emails, account details, and other customer data. The file stays local in /tmp, but the
moment /read-logs reads it, that slice goes to the model.
Treat this as a conscious decision:
/read-logs announces the file it's about to read before reading it./read-logs; avoid production or real-customer
runs unless you've accepted the exposure.If you need to read production-shaped logs, the durable mitigation is a redaction pass (mask tokens/emails/keys before the model sees them). It is not built yet and is tracked as a possible fast-follow. Raise it if your team wants it before adopting this widely.
In the snippets below, replace myapp with your repo's folder name (it must match the path
/read-logs derives, /tmp/flutter-<repo>.log).
Add to your .vscode/settings.json (gitignored in most projects, so it stays local.
That is correct, since the path is machine-specific):
{
"dart.dapLogFile": "/tmp/flutter-myapp.log",
"dart.maxLogLineLength": 1000000
}
maxLogLineLength defaults to 2000 and truncates long lines; bump it so output and stack
traces aren't cut.Developer: Reload Window) so Dart-Code picks it up..vscode/settings.json,
so the setup is identical.dapLogFile's ${workspaceName} variable. It expands to the workspace
folder (differs per worktree) and won't match how /read-logs derives the path.Caveats:
dapLogFile captures debug-adapter sessions (F5 / Ctrl+F5). If you launch via a plain
terminal Run Task instead, use the Zed/script approach below.chrome device. A -d web-server run sends app
logs to the browser's DevTools console, not the editor, so the file will have
build/launch output but no app logs.dart.flutterRunLogFile was removed from Dart-Code with the
legacy debug adapters; dapLogFile is its replacement.Wrap your run task's command in script so output is teed to the file while keeping the
interactive console (hot reload). script's syntax differs by OS.
macOS (BSD script): logfile, then the command as trailing args, in .zed/tasks.json:
{
"label": "Run app",
"command": "script",
"args": ["-q", "/tmp/flutter-myapp.log", "flutter", "run", "-t", "lib/main.dart"],
"use_new_terminal": true
}
Linux (GNU script): the command goes through -c as a single string, logfile last:
{
"label": "Run app",
"command": "script",
"args": ["-q", "-c", "flutter run -t lib/main.dart", "/tmp/flutter-myapp.log"],
"use_new_terminal": true
}
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub leancodepl/ai-plugins --plugin flutter-read-logsPlugins from other owners that cover similar ground