local-dev-serve-troubleshooting
Skill2 starsChanged 34 days agoMITView on GitHub
Use this to run and debug the UI + server locally (Vite dev server, `lotar serve`, ports, SSE).
- Reads credentials
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- api-contract-change-end-to-endSkill
- development-workflowSkill
- efficient-contextSkill
- instruction-maintenanceSkill
- lotar-dev-trackingSkill
- releaseSkill
- review-handoffSkill
- skill-discoverySkill
- smoke-suite-debuggingSkill
- testing-strategySkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
If the UI isn’t updating, confirm SSE is connected (GET /api/events).
- Very specific: line 36
If you’re working on REST handlers, use docs/help/api-quick-reference.md and keep docs/openapi.json in sync for contract changes.
- Distinctive: line 37
When chasing server behavior, enable logs:
- Very specific: line 42
Follow review-handoff for browser/screenshot evidence.
- Very specific: line 49
Treat .env* and local config as sensitive.
≈ “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.
Files
Common local dev setups
UI fast loop (Vite dev server)
- Start UI:
npm run dev
- In another terminal, start the Rust server:
cargo run -- serve --port 8080
Notes:
lotar serveport flags:-p <PORT>and--port <PORT>both set the port.serveis the deliberate exception where-pmeans the port.- Correct:
lotar serve -p 9000orlotar serve --port 9000 - Also accepted:
lotar serve 9000(positional port; kept for backward compatibility) serve --project Xis accepted and ignored;-pbefore the subcommand (e.g.lotar -p web serve) still selects the global project.- Running
servewith no port configured anywhere prefers 8080 and moves to an OS-assigned port (with a warning) when it is busy; explicitly configured ports never move. - See:
docs/help/serve.md
- Correct:
Production-like UI (embedded/static bundle)
- Build web assets:
npm run build:web
- Build the binary:
cargo build --release
- Run:
./target/release/lotar serve --port 8080
Debugging tips
- If the UI isn’t updating, confirm SSE is connected (
GET /api/events). Seedocs/help/sse.md. - If you’re working on REST handlers, use
docs/help/api-quick-reference.mdand keepdocs/openapi.jsonin sync for contract changes. - When chasing server behavior, enable logs:
RUST_LOG=debug cargo run -- serve --port 8080
Visual verification (browser + vision)
Follow review-handoff for browser/screenshot evidence.
For manual scenarios use npm run seed:test-tasks -- --serve; for durable proof
add a smoke test. Start long-running servers using the harness's managed process
facility, or a dedicated terminal if unavailable, and stop only processes you own.
Safety
- Treat
.env*and local config as sensitive; don’t paste secrets/PII into logs/issues.
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
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.

