agentleFS
fusebase-devfusebase-dev/fusebase-flow/.agents/skills/remote-logs/SKILL.md

remote-logs

Skill9 starsChanged 27 days agoMITView on GitHub

Use when debugging a deployed app backend. Explains how to fetch build logs and runtime logs using the `fusebase remote-logs` command. Only applicable to apps with a backend/ folder. For local development, use dev-debug-logs skill instead.

  • Installs packages

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When an app backend has been deployed using fusebase deploy, you can fetch logs from the cloud:

    line 10
  2. Very specific:

    If the app is running locally via fusebase dev start, use the dev-debug-logs skill instead.

    line 22
  3. Distinctive:

    When an app backend has sidecar containers, runtime logs include output from all containers.

    line 65
  4. Very specific:

    Use --container to filter to a single container output:

    line 74
  5. Distinctive:

    No obvious errors → Check more log entries:

    line 146

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Remote Logs

This skill applies only to apps with a backend/ folder. Frontend-only apps do not produce remote logs.

When an app backend has been deployed using fusebase deploy, you can fetch logs from the cloud:

  1. Build logs - Output from the container image build process
  2. Runtime logs - Live stdout/stderr and system logs from the running backend

Important Distinction

ContextCommandWhat It Reads
Local developmentfusebase dev startLog files in <app>/logs/dev-*/
Deployed backendfusebase remote-logsCloud build and runtime logs

If the app is running locally via fusebase dev start, use the dev-debug-logs skill instead.

Commands

Build Logs

Fetch build/deployment logs from the most recent deploy:

fusebase remote-logs build <appId>

Output includes:

  • Build status (in_progress, failed, finished)
  • Full build log (Dockerfile execution, npm install, etc.)
  • Deploy job ID for reference

Runtime Logs

Fetch live logs from the running backend:

# Default: last 100 console (stdout/stderr) entries
fusebase remote-logs runtime <appId>

# Specify tail count (0-300)
fusebase remote-logs runtime <appId> --tail 200

# Get system logs instead of console logs
fusebase remote-logs runtime <appId> --type system

# Filter to a specific container (backend or sidecar)
fusebase remote-logs runtime <appId> --container api
fusebase remote-logs runtime <appId> --container my-sidecar

Options:

  • --tail <n> - Number of log entries (0-300, default: 100)
  • --type <type> - Log type: console (stdout/stderr) or system (service/infrastructure logs)
  • --container <name> - Filter logs to a specific container. Use api for the main backend, or the sidecar name for sidecar containers

Log Format with Sidecars

When an app backend has sidecar containers, runtime logs include output from all containers. Each log line is prefixed with the container name:

[api]: Backend server started on port 3000
[api]: GET /health 200
[chromium]: Browser ready on port 9222
[chromium]: New page created

Use --container to filter to a single container output:

# Show only sidecar logs
fusebase remote-logs runtime <appId> --container chromium

# Show only backend logs
fusebase remote-logs runtime <appId> --container api

When to Use Each Log Type

Build Logs

Use for:

  • Failed deployments (status: failed)
  • Dockerfile issues
  • npm install failures
  • Build-time errors and warnings
  • Deployment timing issues

Runtime Logs (console)

Use for:

  • Application startup errors
  • HTTP request handling issues
  • Unhandled exceptions/rejections
  • console.log debug output from the backend
  • Server crash diagnostics
  • Sidecar container output (prefixed by container name)

Runtime Logs (system)

Use for:

  • Container health check failures
  • Container restart events
  • Resource limits (CPU/memory) issues
  • Infrastructure events
  • Networking/ingress problems

Prerequisites

  1. App must have a backend/ folder — frontend-only apps do not produce remote logs
  2. App must be deployed via fusebase deploy
  3. Deployment must have completed successfully (for runtime logs)
  4. API key configured via fusebase auth

Error Messages

ErrorMeaningFix
"No deploy found for App"App has never been deployedRun fusebase deploy first
"No successful deploy found"Latest deploy failedCheck build logs, fix, redeploy
"Missing resource information"Deploy metadata incompleteRedeploy the app

Example Debug Flow

  1. Deploy fails → Check build logs:
    fusebase remote-logs build
  2. App crashes on startup → Check runtime console logs:
    fusebase remote-logs runtime --tail 50
  3. Container keeps restarting → Check system logs:
    fusebase remote-logs runtime --type system
  4. No obvious errors → Check more log entries:
    fusebase remote-logs runtime --tail 300
  5. Sidecar misbehaving -> Check sidecar-specific logs:
    fusebase remote-logs runtime <appId> --container my-sidecar --tail 200

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.