{"entries":[{"key":"project","value":"Phantom IDE — personal AI coding assistant. Server: phantom-server.js (Node.js port 4000). Frontend: phantom-ide.html (22,700+ lines). Terminal chat: phantom-chat.js. CLI: phantom-cli.js. Knowledge base: phantom-knowledge.md (4714 lines).","tags":["core","project","pinned"],"source":"seed","pinned":true,"ts":1743033600000},{"key":"file_locations","value":"All files at /home/ghost/ — phantom-server.js, phantom-ide.html, phantom-chat.js, phantom-cli.js, phantom-knowledge.md, agents-with-skills.json. Logs: /home/ghost/logs/. USB: /media/ghost/BOOT/ and /media/ghost/USB STICK/","tags":["core","files","pinned"],"source":"seed","pinned":true,"ts":1743033600000},{"key":"junkalot_portfolio_workflow","value":"Junkalot.co portfolio job addition workflow:\n1. Get before/after images from user (usually in /home/ghost694/Downloads/image*.jpg)\n2. Copy images to /home/ghost694/junkalot/public/images/ with naming: <location>-<jobtype>-before-N.jpg and -after-N.jpg\n3. Add job to jobs array in /home/ghost694/junkalot/src/app/portfolio/page.tsx with category, location, desc, before[], after[]\n4. Add HTML rendering section before Upload CTA with before row (red borders) and optional after row (green borders)\n5. Rebuild: cd /home/ghost694/junkalot && npm run build\n6. Job #8 was Backyard Cleanup Hayward (before-only, 3 pics)\n7. Skill saved at: /home/ghost694/.phantom/skills/add-junkalot-portfolio-job.md","tags":["junkalot","portfolio","workflow","pinned"],"source":"user","ts":1756223940000,"pinned":true},{"key":"build_engine_how_it_works","value":"Phantom Build Engine — how to use:\n\nTerminal command: /build <description>\nExamples:\n  /build react todo app with dark theme and local storage\n  /build express REST API with postgres, auth, and swagger\n  /build python flask web scraper with csv export\n  /build android app with bluetooth scanner\n\n/agents [filter] — list all 54 agents with skills\n\nHow it works:\n1. selectBuildAgents(description) — scores all 54 agents against description words, picks top 6\n2. queryBuilderDB(description) — pulls matching templates/components/patterns from Postgres\n3. loadMemory() — injects pinned + core memory entries as owner context\n4. buildSystemPrompt() — combines agents + DB + memory + 7-step protocol into system prompt\n5. AI chain: Groq 70b → OpenRouter → Ollama — streams response\n6. parseGeneratedFiles() — extracts === FILE: name === blocks, writes to workspace\n\nAPI endpoints:\n  POST /api/build/project — full build (stream:true for streaming)\n  GET  /api/build/agents?q=filter — list agents\n  POST /api/build/select-agents — {description} → which agents would be used\n\nOutput format:\n  === FILE: filename.ext ===\n  <complete file contents>\n  === END FILE ===","tags":["build","engine","commands","pinned"],"source":"auto-learn","ts":1774653481338},{"key":"ai_provider_chain_full","value":"Full Phantom AI provider chain (in order):\n1. Groq 70b (llama-3.3-70b-versatile) — fastest free\n2. Groq 8b (llama-3.1-8b-instant) — fallback if 70b rate-limited\n3. Groq tool-use (llama3-groq-8b-8192-tool-use-preview)\n4. Claude Sonnet 4.6 (claude-sonnet-4-6) — highest quality ← NEW\n5. Claude Haiku 4.5 — fast, cheap fallback\n6. OpenRouter (meta-llama/llama-3.3-70b-instruct:free)\n7. Gemini 2.0 Flash\n8. Ollama chain: gpt-oss:120b-cloud → minimax-m2.7:cloud → deepseek-coder-v2 → qwen3.5 → nous-hermes2 → gemma2 → mistral → dolphin-mistral → openhermes → llama2 → phi3.5 → llama3.2\n\nAdd Claude key: edit .phantom-ai-config.json → anthropic.key = sk-ant-...\nGet key: console.anthropic.com\nModels: claude-opus-4-6, claude-sonnet-4-6 (default), claude-haiku-4-5-20251001\n\nBuild engine uses same chain for /build commands","tags":["ai","providers","claude","anthropic","pinned"],"source":"user","ts":1774653927929},{"key":"last_session_summary","value":"Fixed 8 bugs in phantom-ide.html: </script> kill bug (skeleton template), update popup showing on every refresh, welcome banner every refresh, plain white app builds, wrong preview opening (Bitcoin Mining App), agent using Llama tool format, copy button wiped by streaming, hallucinated line counts. Added PHANTOM_CSS_INJECT dark theme enforcer, preview cancellation token, wc-l startup counts auto-saved to memory.","tags":["session","auto"],"source":"system","ts":1774687775510},{"key":"session_notes_live","value":"line of code count → line of code count → check if app iss working","tags":["session","auto"],"source":"terminal","ts":1775175300390},{"key":"codebase_line_counts","value":"Phantom IDE codebase — phantom-server.js (10,631 lines), phantom-ide.html (25,351 lines), phantom-chat.js (3,268 lines), phantom-cli.js (1,498 lines), phantom-knowledge.md (7,617 lines), agents-with-skills.json (56 lines). Total: 48,421 lines.","tags":["auto","codebase","lines"],"source":"terminal","ts":1775516059176},{"key":"kill_processes","value":"To kill a process: ps aux | grep <name> to find PID, then kill <PID>. Force: kill -9 <PID>. Kill by name: pkill -f <script>. Find by port: ss -tlnp | grep <port>. phantom-server runs on port 4000 (NOT 3000). Port 3000 had leftover iptv-platform — killed 2026-03-28.","tags":["system","processes","ops"],"source":"user","ts":1774687965806},{"key":"phantom_knowledge_updated","value":"2026-04-02 — Build system overhaul: 3 build paths wired (chat intercept + battle + picker), 22-skeleton DB, CORS proxy, path guard, preview auto-open, battle builders wired to workspace","tags":[],"source":"user","ts":1775146346060},{"key":"last_grep","value":"agentic","tags":["auto","grep"],"source":"terminal","ts":1775159175205},{"key":"phantom_ide_source_of_truth","value":"phantom-ide.html SOURCE OF TRUTH is /home/ghost/Desktop/phantom-ide.html — NOT /home/ghost/phantom-ide.html directly. The Desktop version is the clean working base. After every change: copy Desktop → /home/ghost/phantom-ide.html AND /media/ghost/USB STICK/phantom-ide.html. The home version gets overwritten by the Desktop version. NEVER edit /home/ghost/phantom-ide.html directly — always edit the Desktop version first, then copy to home and USB.","tags":["critical","workflow","phantom-ide","source-of-truth","file-management"],"source":"lesson-learned","ts":1775883188766},{"key":"two_html_files_confusion","value":"LESSON LEARNED 2026-04-11: Deke spent sessions editing /home/ghost/phantom-ide.html (2.1MB, broken, accumulated edits) while the REAL working IDE was at /home/ghost/Desktop/phantom-ide.html (clean, renders all widgets, PIN auto-bypasses, chat works). The Desktop file was opened in browser via file:// and worked perfectly. The home version was what the server served but had rendering/widget issues from accumulated bad edits. Fix: always use Desktop as source of truth. Copy Desktop → home → USB after every change.","tags":["lesson","confusion","two-files","critical","workflow"],"source":"lesson-learned","ts":1775883200271},{"key":"agent_builder","value":"Panel: panel-01 | Skills: scaffold, build, integrate","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1780262065643,"pinned":false},{"key":"agent_mcp","value":"Panel: panel-33 | Skills: mcp_call, context_bridge, tool_use","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1780262065643,"pinned":false},{"key":"agent_autoflow","value":"Panel: panel-51 | Skills: plan, execute, monitor, iterate","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1780262065643,"pinned":false},{"key":"agent_unrestricted","value":"Panel: panel-54 | Skills: research, code, analyze, unrestricted","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1780262065643,"pinned":false},{"key":"agent_design","value":"Panel: panel-49 | Skills: ui_design, ux_flow, wireframe, css","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1780262065643,"pinned":false},{"key":"agent_web3","value":"Panel: panel-54 | Skills: solidity, web3js, trezor, defi, nft","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1780262065643,"pinned":false},{"key":"agent_sysadmin","value":"Panel: panel-50 | Skills: monitor, repair, optimize, self_heal","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1780262065643,"pinned":false},{"key":"agent_gpt41","value":"Panel: panel-44 | Skills: openai_passthrough, advanced_reasoning","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1780262065643,"pinned":false},{"key":"agent_gemini_flash","value":"Panel: panel-43 | Skills: gemini_passthrough, multimodal","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1780262065643,"pinned":false},{"key":"you to ssh into my aither box\nThe `","value":"you to ssh into my aither box\nThe `","tags":["memory","preference"],"source":"extract","ts":1787343572888,"pinned":false},{"key":"ensure `phantom-server","value":"ensure `phantom-server","tags":["memory","rule"],"source":"extract","ts":1787343617543,"pinned":false},{"key":"key is not known by any other names","value":"key is not known by any other names","tags":["memory","security"],"source":"extract","ts":1787343690237,"pinned":false},{"key":"app_agents_list","value":"15 Phantom agents:\nphantom-dev [panel-01]: protocol, bug-fix, code_generation, debugging, fix\ndebugger [panel-02]: diagnose, deepseek, stack-trace, debugging, error-trace\nproject-builder [panel-03]: new-project, create-app, build, full-stack, generate-app\nmaintenance-agent [panel-04]: process-restart, is-server-running, check-system, disk-usage, monitoring\nmeta-agent [panel-05]: agent-status, workspace-stats, dashboard, context, meta\ndevops-agent [panel-06]: devops, nginx, infrastructure, ci-cd, pipeline\ndatabase-agent [panel-07]: sql, schema, query, haksterAI-2729-skills-via-MCP, db\nsecurity-agent [panel-08]: jwt, pen-test, owasp, auth, vulnerability\napi-agent [panel-09]: graphql, route, swagger, endpoint, webhook\nreact-agent [panel-10]: next.js, vite, frontend, app-router, tailwind\npython-agent [panel-11]: flask, ml, haksterAI-webdata, haksterAI-2729-skills-via-MCP, python\ntypescript-agent [panel-12]: strict, generics, types, tsconfig, typescript\nmobile-agent [panel-13]: ios, mobile, android, haksterAI-2729-skills-via-MCP, expo\ndocker-agent [panel-14]: haksterAI-cloud-ops, container, compose, haksterAI-webdata, docker\ntest-agent [panel-15]: e2e, jest, vitest, cypress, testing","tags":["auto-learn","agents"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"agent_phantom-dev","value":"Panel: panel-01 | Skills: protocol, bug-fix, code_generation, debugging, fix, edit-server, haksterAI-2729-skills-via-MCP, update-ide, patch, ide-edit, ui-improvement, phantom-ide, feature","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"agent_debugger","value":"Panel: panel-02 | Skills: diagnose, deepseek, stack-trace, debugging, error-trace, haksterAI-2729-skills-via-MCP, root-cause, fix-bug","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"agent_project-builder","value":"Panel: panel-03 | Skills: new-project, create-app, build, full-stack, generate-app, haksterAI-2729-skills-via-MCP, project, scaffold","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"agent_maintenance-agent","value":"Panel: panel-04 | Skills: process-restart, is-server-running, check-system, disk-usage, monitoring, maintenance, dead-code, log-cleanup, system-scan, cron, health-check, haksterAI-2729-skills-via-MCP","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"agent_meta-agent","value":"Panel: panel-05 | Skills: agent-status, workspace-stats, dashboard, context, meta, haksterAI-2729-skills-via-MCP, live-metrics","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"to know the correct username","value":"to know the correct username","tags":["memory","preference"],"source":"extract","ts":1787635476994,"pinned":false},{"key":"password was accepted by the server at `","value":"password was accepted by the server at `10","tags":["memory","security"],"source":"extract","ts":1787635476995,"pinned":false},{"key":"to clarify this immediately to avoid fur","value":"to clarify this immediately to avoid further confusion","tags":["memory","preference"],"source":"extract","ts":1787635573083,"pinned":false},{"key":"agent_devops-agent","value":"Panel: panel-06 | Skills: devops, nginx, infrastructure, ci-cd, pipeline, pm2, cloud, haksterAI-2729-skills-via-MCP, deploy","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"agent_database-agent","value":"Panel: panel-07 | Skills: sql, schema, query, haksterAI-2729-skills-via-MCP, db, database, mongodb, mysql, postgres, migration","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"agent_security-agent","value":"Panel: panel-08 | Skills: jwt, pen-test, owasp, auth, vulnerability, haksterAI-hunt-info-disclosure, haksterAI-pentest, encryption, haksterAI-nuclei, security, firewall, haksterAI-2729-skills-via-MCP, haksterAI-httpx","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"agent_api-agent","value":"Panel: panel-09 | Skills: graphql, route, swagger, endpoint, webhook, openapi, trpc, haksterAI-2729-skills-via-MCP, rest, api","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"agent_react-agent","value":"Panel: panel-10 | Skills: next.js, vite, frontend, app-router, tailwind, hooks, jsx, tsx, react, haksterAI-2729-skills-via-MCP","tags":["auto-learn","agent","skills"],"source":"auto-learn","ts":1789772711880,"pinned":false},{"key":"knowledge_sections","value":"phantom-knowledge.md sections (327):\n# 👻 Phantom IDE — Deep Knowledge Base\n# Loaded into every terminal chat session. This is what Phantom knows about himself.\n## ⚠️ ALWAYS: Peer Sync Rule\n## 📑 TABLE OF CONTENTS\n## WHO YOU ARE\n## QUICK FACTS (always know these cold)\n## MASTER DATA MAP — WHERE EVERYTHING LIVES\n# or\n## THE THREE CORE FILES\n## OWNER INFO\n## AI PROVIDER WATERFALL (bypass/chat)\n## ALL AGENTS (reference list — not all may be active)\n## TOOLS AGENTS CAN USE\n## KEY JAVASCRIPT FUNCTIONS (phantom-ide.html)\n## KEY SERVER API ENDPOINTS\n## FILE STRUCTURE\n## DATABASE (PostgreSQL — Render cloud)\n## THINKING PROTOCOLS (130+ total)\n## DEV MODE\n## PHANTOM DEV — EXTENDED SKILL STACK\n## PHANTOM EDITING SKILLS\n## RULES FOR EDITING phantom-ide.html\n## AUTO ERROR SCAN — POST-WORK PROTOCOL\n## USB AUTO-DISCOVERY\n# Method 1: check common mount points\n# Method 2: lsblk\n# Method 3: find mounted USB\n## MEMORY BANK v2 — HOW PHANTOM USES MEMORY\n## CUMULATIVE KNOWLEDGE RULE\n## BUTTON LAW (injected into every agent)\n## BROWSER COMPAT\n## ENVISIONING PROTOCOL\n## SAFE COMMAND RULES (NEVER break the system)\n# NEVER:\n# Safe way to restart phantom-server.js:\n## DUAL MODE — CLAUDE CODE + PHANTOM TOGETHER\n## COMMON COMMANDS FOR DEKE IN TERMINAL\n## PAYMENT & TOKEN SYSTEM\n## SMART AGENT ROUTING — WHEN TO HAND OFF\n## RAG SEMANTIC SEARCH\n## ANTI-HALLUCINATION RULES (non-negotiable)\n## SKILLS & MEMORY RECALL — CHECK BEFORE ANY TASK\n## PHANTOM DEV — BIG-B CORE ENGINE (full protocol)\n## PHANTOM TERMINAL — CLAUDE CODE MODE (default)\n## PHANTOM EDITING MANUAL (Claude Code discipline — all agents must follow)\n## KNOWN BUGS & REPAIR LOG\n# The main block starts at <script> (no src=) and ends at the REAL </script>\n# Any </script> in between must be <\\/script>\n# Only acceptable hits: the actual closing tags of each <script> block\n# Any hit INSIDE a block = bug, fix it immediately\n## 🔒 IRON RULES — NEVER BREAK THESE\n# Check snapshots (created automatically at every server restart)\n# Restore from lates","tags":["auto-learn","knowledge","kb"],"source":"auto-learn","ts":1789772711895,"pinned":false},{"key":"knowledge_intro","value":"# 👻 Phantom IDE — Deep Knowledge Base\n# Loaded into every terminal chat session. This is what Phantom knows about himself.\n\n## ⚠️ ALWAYS: Peer Sync Rule\n**Every session's notes MUST be written to ALL THREE files:**\n1. `~/.claude/MEMORY.md` — Claude Code memory\n2. `~/haksterai.md` — HaksterAI knowledge base\n3. `~/phantom-knowledge.md` — this file (append at end)\n\n**When user says \"check our notes\" / \"add to notes\" / \"remember this\":** read all three, write to ALL THREE.\n\n**Warp Terminal Setup (recreate if asked):**\n1. `~/.config/warp-terminal/mcp_servers.json` — merge from `~/.hakster/mcp-servers.json` + `~/.hakster/mcp.json`\n2. `~/.config/warp-terminal/warp-proxy.py` — Anthropic Messages → Ollama glm-5.2:cloud (port 8086, inject \"I'm Claude by Anthropic\", waterfall: glm-5.2:cloud → glm-5.1:cloud → hp-1000:latest)\n3. `~/.config/warp-terminal/settings.toml` — `file_based_mcp_enabled = true`, clear denylist, `execute_commands = \"agent_decides\"`\n4. `~/.bashrc` `claude()` — non-omp: `ANTHROPIC_BASE_URL=http://localhost:8086`; omp: unset both\n5. `systemctl --user enable --now warp-proxy.service`\n6. **NEVER touch omp config** (`~/.omp/agent/`)\n## 📑 TABLE OF CONTENTS\n\n### IDENTITY & QUICK REFERENCE\n- [Who You Are](#who-you-are)\n- [Quick Facts](#quick-facts-always-know-these-cold)\n- [Master Data Map](#master-data-map--where-everything-lives) — files, APIs, endpoints, DB, USB\n- [Owner Info](#owner-info)\n- [Quick Facts / Three Core Files](#the-three-core-files)\n\n### AGENTS & ROUTING\n- [All Agents (see list)](#all-agents-reference-list--not-all-may-be-active)\n- [Smart Agent Routing — When to Hand Off](#smart-agent-routing--when-to-hand-off)\n- [Agent IDs — Panel Map](#agent-ids--panel-map-agents-updated-2026-03-27)\n- [Maintenance vs Phantom Dev — Routing Rules](#maintenance-vs-phantom-dev--routing-rules-updated-2026-03-27)\n- [Routing System — Full Policy Spec](#routing-system--full-policy-spec-updated-2026-03-27)\n- [Architecture Spec — Agent Routing System](#architecture-spec-","tags":["auto-learn","knowledge","kb"],"source":"auto-learn","ts":1789772711895,"pinned":false},{"key":"app_ai_providers","value":"Configured AI providers: groq, gemini, openrouter, ollama, minimax, hyperbolic, novita, deepinfra, glhf, featherless, aimlapi, pollinations, cerebras, sambanova, sambanova2, sambanova3, lmstudio, jan, copilot, gemini-flash, peer, openai, runtime, anthropic, puter-sonnet, puter-4o, groq2, ollama_api, xai, blackforest, chutes, friendli, lepton, monsterapi, predibase, octoai, anyscale, bananadev, beam, modal, baseten, mystic, cerebellum, lambdalabs, abacus, sambanova4, sambanova5, requestly, imagegen, nvidia-nim, fallback_chain, cohere, mistral, mistral2, groq3, groq4, groq5, groq6, groq7, nvidia-nim2, llm7, llm7-2, llm7-3, llm7-4, llm7-5, kiro","tags":["auto-learn","config","ai"],"source":"auto-learn","ts":1789772711897,"pinned":false},{"key":"app_server_info","value":"Port: 4000 | Workspace: /home/ghost694/workspace | PID: 6681 | Node: v20.20.2","tags":["auto-learn","server","config"],"source":"auto-learn","ts":1789772711897,"pinned":false},{"key":"to be aware that `junkalot` and `hakster","value":"to be aware that `junkalot` and `hakster` could be anywhere","tags":["memory","preference"],"source":"extract","ts":1787704863096,"pinned":false},{"key":"your guidance on `android-sdk` and `jetb","value":"your guidance on `android-sdk` and `jetbrains`","tags":["memory","preference"],"source":"extract","ts":1787705112185,"pinned":false},{"key":"your explicit approval for any of these ","value":"your explicit approval for any of these actions","tags":["memory","preference"],"source":"extract","ts":1787705197874,"pinned":false},{"key":"usb_status","value":"USB drives: none mounted | All: /media/ghost/BOOT, /media/ghost/USB STICK, /media/ghost/BOOT1, /media/ghost/USB2, /media/ghost/PHANTOM","tags":["auto-learn","usb"],"source":"auto-learn","ts":1789772711897,"pinned":false},{"key":"pay it","value":"pay it","tags":["memory","rule"],"source":"extract","ts":1788802470202,"pinned":false},{"key":"have direct access to external tool exec","value":"have direct access to external tool execution in this environment","tags":["memory","rule"],"source":"extract","ts":1789016383994,"pinned":false},{"key":"up and listening on port 4000","value":"up and listening on port 4000","tags":["memory","credential"],"source":"extract","ts":1789163340729,"pinned":false}],"total":50,"backend":"file"}