| name | worldarchitect-local-debugging |
| description | Guide and workflow for WorldArchitect.AI Local Debugging Reference. Use when you need WorldArchitect.AI Local Debugging Reference. |
WorldArchitect.AI Local Debugging Reference
Log File Locations
Flask server logs:
/tmp/worldarchitect.ai/<branch-name>/flask-server.log
MCP server logs:
/tmp/worldarchitect.ai/<branch-name>/mcp-server.log
Quick Log Commands
tail -100 /tmp/worldarchitect.ai/codex_integrate-gemini-and-openrouter-apis-czdlzo/flask-server.log
grep -i "error\|cerebras\|400\|500" /tmp/worldarchitect.ai/*/flask-server.log | tail -50
tail -f /tmp/worldarchitect.ai/*/flask-server.log
When Server Restart is Required
Python caches modules, so restart needed after changing:
constants.py - any constant values
- Any
__init__.py files
- Import structure changes
- New dependencies
No restart needed for:
- Template changes (Jinja reloads)
- Static files (CSS/JS)
- Most Flask route logic (with debug mode)
Running Server
./run_local_server.sh
Common Debug Patterns
grep "MODEL_INFO\|Using provider" /tmp/worldarchitect.ai/*/flask-server.log | tail -10
grep "context_length\|token" /tmp/worldarchitect.ai/*/flask-server.log | tail -10
grep -A2 "API error" /tmp/worldarchitect.ai/*/flask-server.log | tail -20