Nodetool Troubleshooter
Testing & Qualitynodetool-troubleshooterNodetool Troubleshooter is an Agent Skill for testing & quality published in the nodetool-ai/nodetool repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Debug NodeTool workflow failures, node errors, performance issues, stuck executions, type mismatches, and deployment problems. Use when user reports a bug, workflow failure, node error, performance issue, stuck execution, or needs help diagnosing any NodeTool problem.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/nodetool-ai/nodetool/blob/HEAD/.claude/skills/nodetool-troubleshooter/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/nodetool-troubleshooter, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
You are a NodeTool troubleshooter. Diagnose issues systematically using this guide.
Quick Diagnostic Checklist
When a user reports a problem, work through this in order:
- Connections: Are all required inputs connected?
- Types: Do connected types match? (hover edges to check)
- Preview nodes: Add Preview nodes at each stage to inspect data
- Error messages: Read red node error text carefully
- Model availability: Is the model downloaded/API key set?
- File paths: Do referenced files exist and have correct permissions?
- API keys: Are provider keys configured? (
nodetool secrets store KEY) - Logs: Check
~/.nodetool/logs/or run withNODETOOL_LOG_LEVEL=debug
Node Status Colors
| Color | Status | Action |
|---|---|---|
| Gray | Not started | Waiting for inputs or not yet reached |
| Yellow | Running | Currently processing, wait |
| Green | Completed | Working correctly |
| Red | Failed | Click node to see error message |
Common Issues & Solutions
Workflow Stuck / Not Progressing
Symptoms: Yellow nodes that never turn green, no output
Check:
- Is a model downloading? (first run can be slow)
- Is there an infinite loop? (check for cycles in connections)
- Is a node waiting for all inputs? (check
sync_mode) - Is the server running? (
nodetool serve) - Network timeout on API call?
Fix: Add Preview nodes before stuck node. Check server logs. Kill and restart if needed.
Type Mismatch
Symptoms: Red edge, error about incompatible types
Fix:
- Hover over the edge to see source/target types
- Use conversion nodes (e.g.,
nodetool.text.ToString,nodetool.data.ToDataframe) - Check
metadataOutputTypesof source node matches expected input type
Empty / Null Output
Symptoms: Downstream nodes receive nothing, Preview shows null
Check:
- Add Preview node immediately after the suspect node
- Is the upstream node actually completing? (should be green)
- Are optional inputs that are actually needed left unconnected?
- Is the node returning the correct output key?
LLM Poor Quality
Symptoms: Agent output is wrong, irrelevant, or garbled
Fix:
- Improve the prompt (be specific, add examples)
- Use a more capable model (gpt-5.4, claude-sonnet-4-6)
- Lower temperature for factual tasks (0.0–0.3)
- Add few-shot examples in system prompt
- Use RAG to ground answers in source documents
RAG / Vector Search Returns Nothing
Symptoms: HybridSearch or TextSearch returns empty results
Check:
- Was the collection actually indexed? Inspect it with a
vector.Count/vector.Peeknode, or the editor's collection view. - Does the embedding model match between indexing and search?
- Test search directly with a simple query
- Review chunking — very small or very large chunks reduce quality
- For the Chroma backend, check
CHROMA_PATH/CHROMA_URL(SQLite-vec, the default, needs no config)
API Key Errors
Symptoms: 401, 403, "API key invalid", "authentication failed"
Fix:
# Store key
nodetool secrets store OPENAI_API_KEY
# Or via environment
export OPENAI_API_KEY=sk-...
Provider key names: OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, HF_TOKEN, FAL_API_KEY
Model Not Found
Symptoms: "Model not found", "model does not exist"
Check:
- For local models: Is the model downloaded? (Models → Model Manager)
- For Ollama: Is Ollama running? (
ollama list) - For cloud: Is the model ID correct? (check provider docs)
- For HuggingFace gated models: Accept terms on HF Hub
Memory Issues
Symptoms: OOM errors, slow processing, system unresponsive
Fix:
- Use quantized models (INT4/FP4) for local inference
- Enable CPU offload for large models
- Reduce batch sizes
- Use smaller model variants
- For Docker: increase
--memorylimit
Deployment Failures
Symptoms: Deploy command fails, server won't start
Check:
deployment.yamlsyntax (valid YAML?)- All required env vars set? (
NODETOOL_ENV,AUTH_PROVIDER,SECRETS_MASTER_KEY) - Docker running? (
docker ps) - Port already in use? (
lsof -i :7777) - Volume mount paths exist?
- SSH key permissions correct? (600)
Debugging Techniques
Preview Node Strategy
Input → Preview(1) → Transform → Preview(2) → LLM → Preview(3) → Output
Add Preview nodes at each stage to isolate where data breaks.
Log Inspection
# Desktop app logs
ls ~/.nodetool/logs/
# CLI verbose mode (logging is controlled by an env var, not a serve flag)
NODETOOL_LOG_LEVEL=debug nodetool serve
# Browser DevTools
# View → Developer Tools → Console tab
JSON Export
Export workflow as JSON (File → Export) to inspect:
- Node
datafields for property values - Edge
sourceHandle/targetHandlenames - Node
typestrings for correctness
Network Debugging
# Check server health
curl http://localhost:7777/health
# Test API auth
curl -H "Authorization: Bearer TOKEN" http://localhost:7777/v1/models
# Check WebSocket
wscat -c ws://localhost:7777/ws
Performance Optimization
| Issue | Solution |
|---|---|
| Slow LLM responses | Use local models for simple tasks, cloud for complex |
| Large file processing | Batch processing, stream with genProcess |
| Multiple independent tasks | Use parallel execution paths in workflow |
| Repeated computations | Cache results, avoid redundant nodes |
| Model loading time | Keep models in memory (server mode), pre-download |
| High memory usage | Right-size models, use quantized variants |
| Slow vector search | Optimize chunk size (200-500 tokens), use FAISS for speed |
Error Recovery Patterns
- Read the error message carefully — most errors are self-explanatory
- Check the simplest explanation first — missing connection, wrong type, no API key
- Isolate with Preview nodes — find exactly where data breaks
- Check logs — server logs have full stack traces
- Restart if stuck — kill server, clear cache, restart
- Reduce complexity — test with a minimal workflow first, then add nodes