agentleFS
polarsourcepolarsource/polar/.agents/skills/local-logs/SKILL.md

local-logs

Skill11k starsChanged 6 days agoApache-2.0View on GitHub

Read the local Polar API and worker logs with `dev logs`. Use whenever something fails while working against the local stack, such as an API request returning 4xx or 5xx, a dashboard or checkout page showing an error, a background job not doing what it should, a webhook not arriving, or the user mentioning an error in their API or worker terminal. Check these logs before asking the user to paste a traceback.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about polarsource/polar

The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 40

Talked about on GitHub, YouTube, Bluesky, Hacker News and the web (40 times).

On GitHub · 27

22 more on GitHub

On YouTube · 7

2 more on YouTube

On Bluesky · 4

On Hacker News · 1

On the web · 1

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run it to see every record the API and the worker logged for that request, including the background jobs it enqueued, in order.

    line 33
  2. Very specific:

    Never run dev logs ... --follow: it keeps printing until someone presses Ctrl+C, so it never returns.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Local logs

In development, the API and worker write every log record to server/.logs/api.log and server/.logs/worker.log, alongside what they print in their terminals. You can read them no matter how or where the user started the servers.

Start here

dev logs --errors --since 10m

This shows the latest API and worker errors and how often each repeated. When the record has them, it also shows the request or background job the error happened in and a short traceback (code in this repo plus the line that raised). Narrow it with dev logs api --errors or dev logs worker --errors, and use --since 30s, 5min, 2h or 1d to skip errors from before what you are investigating.

Errors that happened in a request or a job end with a line like:

Everything from this request: dev logs --request 9fb0a1fc-9313-4ea6-9bfe-2989b531ec93

Run it to see every record the API and the worker logged for that request, including the background jobs it enqueued, in order. It shows all of them; other views say how many records they left out.

Other views

CommandShows
dev logs apiThe last 50 API records
dev logs worker --tail 200The last 200 worker records
dev logs --since 2mThe last 50 records from the last two minutes; add --tail 500 for more

Never run dev logs ... --follow: it keeps printing until someone presses Ctrl+C, so it never returns. Reproduce the problem first, then read the logs.

Querying the files directly

Each line is one JSON object, so jq works when the views above are not enough:

jq -c 'select(.path == "/v1/checkouts/")' server/.logs/api.log | tail -20

Common fields: timestamp (UTC), level, event, logger, correlation_id; API records add method and path; worker records add actor_name, message_id and source_correlation_id (the request that enqueued the job). Errors carry exception, a list with exc_type, exc_value and frames. Rotated files end in .log.1.

What to know

  • Noise: locally the API and worker log prometheus_remote_write errors every few seconds because no metrics server runs. Ignore them.
  • No log file: the servers write these files only on a branch that has this feature, and only after they start on it. If dev logs says there is no log, ask the user to restart the API or worker.
  • Development only: nothing is written in tests or any deployed environment.
  • The Docker stack: dev logs db, redis, minio or tinybird still show Docker container logs, as before.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.