Context Window

Your AI has a context window — the amount of conversation it can hold in active memory at once. Think of it like a whiteboard: the more you write, the less room remains.

0-60% Green
60-85% Caution
85%+

Green zone — Plenty of room. Your AI remembers everything in this conversation with full clarity.

Yellow zone — Getting full. Your AI may start compressing older parts of the conversation. Consider wrapping up complex topics.

Red zone — Near capacity. Your AI will need to restart soon to continue working effectively. Don't worry — your chat history is saved.

PureBrain Icon
PUREBRAIN.ai

Your AI's Brain Stream

Your AI's Neural Network is waiting.
50+ specialized agents ready to work.

Active
Secure
Private
🔒
Connect Your Claude Account
Your PureBrain AI needs to be connected to your Anthropic account to function. This is a one-time setup that connects Claude to this container.
⏱ This takes about 5 minutes. Stay with us through the whole flow.
Paste the authorization code below
PT
Mission Control
CTX
N/A
Offline
⚠ Claude is not authenticated — click here to connect your account
✨ Compacting context — consolidating memories...
Terminal 1
Terminal 1 · tmux stream disconnected
Connecting to Aether...
◈ Session Dialogue
Bookmarks
Drop files here
Connecting to civilization...
0 queued
Loading panes…
Select a pane above.
Fleet Overview 0 CIVs
◎ Civilization Health
Loading
Allowed directories
Loading...
☑ Task Board
Loading tasks...
✦ Agent Roster
Loading agents...
💲 Refer & Earn
View on purebrain.ai →
Clicks
Referrals
Completed
Earnings
Loading referral data...
☑ Weekly Goal Guide
Loading... Open Sheet
Loading WGG data...
📌 Bookmarks 0
No bookmarks yet.
Click 📌 on any message to bookmark it.
Commands & Troubleshooting
Terminal reference, status checks, and recovery procedures
📡 Server Info
Provider
DigitalOcean 8GB
IP / Port
37.27.237.109 : 2205
SSH User
aiciv
🔌 Connect to Lyra
SSH + attach to Lyra's tmux session (one command)
ssh -p 2205 aiciv@37.27.237.109 tmux attach -t lyra-primary ⎘ Copy
Ctrl+B then D to detach safely.
SSH into server only (no tmux attach)
ssh -p 2205 aiciv@37.27.237.109 ⎘ Copy
One-liner remote restart
ssh -p 2205 aiciv@37.27.237.109 'bash /home/aiciv/civ/tools/restart_all.sh' ⎘ Copy
Read-only snapshot (no interruption)
ssh -p 2205 aiciv@37.27.237.109 'tmux capture-pane -t lyra-primary -p | tail -50' ⎘ Copy
🚪 Safe Exit (IMPORTANT)
Detach from tmux WITHOUT killing Lyra
Ctrl+B then D ⎘ Copy
NEVER use Ctrl+C inside Lyra's tmux session. That kills the active process. Always Ctrl+B then D to detach safely.
Exit the container shell
exit ⎘ Copy
📊 Status Checks
Is Lyra's Claude session alive?
tmux has-session -t lyra-primary && echo ALIVE || echo DEAD ⎘ Copy
List all tmux sessions
tmux list-sessions ⎘ Copy
Expected sessions: lyra-primary, boop-loop, weekly-goals, instantly-monitor, lyra-telegram-bot
What Python processes are running?
ps aux | grep python3 | grep -v grep ⎘ Copy
Expected: telegram_unified.py, weekly_goals_scheduler.py, instantly_reply_monitor.py, boop_loop.sh, portal_server.py
Context window usage (how full is Lyra's memory)
cat /tmp/claude_context_pct.txt ⎘ Copy
Below 80% = healthy. 80-90% = needs compaction. 90%+ = critical, session may crash.
Container resources (CPU / RAM / Disk)
free -h && echo "---" && df -h / && echo "---" && top -bn1 | head -15 ⎘ Copy
BOOP loop status
cat /tmp/lyra_boop_loop.pid && echo "PID running" || echo "BOOP loop is DOWN" ⎘ Copy
PI MVP build progress
python3 /home/aiciv/civ/tools/pi_mvp_boop.py status ⎘ Copy
Portal task stats
python3 /home/aiciv/civ/tools/portal_sync.py status ⎘ Copy
📝 Logs
Telegram bot logs (last 50 lines)
tail -50 /tmp/telegram_bot.log ⎘ Copy
Telegram bot errors only
grep ERROR /tmp/telegram_bot.log | tail -20 ⎘ Copy
BOOP loop logs
tail -50 /tmp/lyra_boop_loop.log ⎘ Copy
Weekly goals logs
tail -50 /home/aiciv/civ/logs/weekly_goals.log ⎘ Copy
Weekly goals scheduler logs
tail -50 /home/aiciv/civ/logs/weekly_goals_scheduler.log ⎘ Copy
Training harness logs (nightly training)
tail -50 /home/aiciv/civ/logs/training_harness.log ⎘ Copy
Instantly reply monitor logs
tail -50 /home/aiciv/civ/logs/instantly_reply_monitor.log ⎘ Copy
Follow ANY log live (Ctrl+C to stop)
tail -f /tmp/telegram_bot.log ⎘ Copy
🔄 Restarts
Restart Telegram bot
bash /home/aiciv/civ/tools/start_telegram_bot.sh ⎘ Copy
Kills any existing bot process first, then starts fresh. Only ONE bot should run at a time.
Restart BOOP loop
tmux kill-session -t boop-loop 2>/dev/null; tmux new-session -d -s boop-loop /home/aiciv/civ/tools/boop_loop.sh ⎘ Copy
Restart weekly goals scheduler
tmux kill-session -t weekly-goals 2>/dev/null; tmux new-session -d -s weekly-goals "python3 /home/aiciv/civ/tools/weekly_goals_scheduler.py" ⎘ Copy
Restart Instantly reply monitor
tmux kill-session -t instantly-monitor 2>/dev/null; tmux new-session -d -s instantly-monitor "python3 /home/aiciv/civ/tools/instantly_reply_monitor.py daemon" ⎘ Copy
Restart portal server
cd /home/aiciv/purebrain_portal && kill $(pgrep -f portal_server.py) 2>/dev/null; nohup python3 portal_server.py > /tmp/portal.log 2>&1 & ⎘ Copy
Kill a stuck process (get PID from ps aux first)
kill PID_NUMBER ⎘ Copy
⚡ Manual Triggers
Run weekly goals collection
python3 /home/aiciv/civ/tools/weekly_goals_automation.py collect ⎘ Copy
Send weekly goals morning reminders
python3 /home/aiciv/civ/tools/weekly_goals_automation.py morning ⎘ Copy
Send weekly goals nudge (missing submitters)
python3 /home/aiciv/civ/tools/weekly_goals_automation.py nudge ⎘ Copy
Run intent engine daily scan
python3 /home/aiciv/civ/tools/intent_signal_engine.py daily-scan ⎘ Copy
Check intent engine status
python3 /home/aiciv/civ/tools/intent_signal_engine.py status ⎘ Copy
Check Upwork pipeline status
python3 /home/aiciv/civ/tools/upwork_outreach_automation.py status ⎘ Copy
Run full Upwork pipeline (scrape + enrich + push)
python3 /home/aiciv/civ/tools/upwork_outreach_automation.py full-pipeline ⎘ Copy
Sync portal tasks from Google Sheet
python3 /home/aiciv/civ/tools/migrate_sheet_to_portal.py ⎘ Copy
Sync portal agents from manifests
python3 /home/aiciv/civ/tools/portal_sync.py sync-agents ⎘ Copy
🖥 tmux Quick Reference
Attach to a specific tmux session
tmux attach -t SESSION_NAME ⎘ Copy
Sessions: lyra-primary, boop-loop, weekly-goals, instantly-monitor
Create a new tmux session
tmux new-session -d -s SESSION_NAME "COMMAND" ⎘ Copy
Kill a tmux session
tmux kill-session -t SESSION_NAME ⎘ Copy
Scroll up in tmux (view history)
Ctrl+B then [ then use arrow keys/PgUp. Press q to exit scroll mode. ⎘ Copy
🚨 Troubleshooting
Lyra is not responding on Telegram
1. Check if Claude session is alive:
tmux has-session -t lyra-primary && echo ALIVE || echo DEAD ⎘ Copy
2. Check if Telegram bot is running:
ps aux | grep telegram_unified | grep -v grep ⎘ Copy
3. If bot is down, restart it:
bash /home/aiciv/civ/tools/start_telegram_bot.sh ⎘ Copy
4. If Claude session is DEAD, Corey/Jared needs to restart it from the VPS.
Telegram bot sending duplicate messages
1. Check if multiple bot instances are running:
ps aux | grep telegram_unified | grep -v grep | wc -l ⎘ Copy
2. If more than 1, kill all and restart:
pkill -f telegram_unified; sleep 2; bash /home/aiciv/civ/tools/start_telegram_bot.sh ⎘ Copy
Context window is above 80% (session may crash)
1. Check current usage:
cat /tmp/claude_context_pct.txt ⎘ Copy
2. If above 80%, attach to Lyra and type /compact:
tmux send-keys -t lyra-primary:0.0 "/compact" Enter ⎘ Copy
3. If above 90%, Lyra should auto-compact. If stuck, manually inject the command above.
BOOP loop stopped running
1. Check if it's running:
tmux has-session -t boop-loop && echo RUNNING || echo STOPPED ⎘ Copy
2. Restart it:
tmux new-session -d -s boop-loop /home/aiciv/civ/tools/boop_loop.sh ⎘ Copy
Portal is down (lyra.ai-civ.com not loading)
1. Check if portal server is running:
ps aux | grep portal_server | grep -v grep ⎘ Copy
2. Restart it:
cd /home/aiciv/purebrain_portal && nohup python3 portal_server.py > /tmp/portal.log 2>&1 & ⎘ Copy
Weekly goals not sending (Mon/Wed/Fri)
1. Check scheduler:
ps aux | grep weekly_goals_scheduler | grep -v grep ⎘ Copy
2. Check recent log:
tail -20 /home/aiciv/civ/logs/weekly_goals_scheduler.log ⎘ Copy
3. Restart scheduler:
tmux kill-session -t weekly-goals 2>/dev/null; tmux new-session -d -s weekly-goals "python3 /home/aiciv/civ/tools/weekly_goals_scheduler.py" ⎘ Copy
4. Manually trigger collection:
python3 /home/aiciv/civ/tools/weekly_goals_automation.py collect ⎘ Copy
📋 Quick Reference
ItemValue
Server IP37.27.237.109
SSH Port2205
SSH Useraiciv
Primary Sessionlyra-primary
Portal URLlyra.ai-civ.com
Project Path/home/aiciv/civ/
Logs/home/aiciv/civ/logs/
tmux DetachCtrl+B then D
🔑 SSH Key Setup (One-Time)
Set up passwordless SSH from your Mac/PC
1. Generate an SSH key (if you do not have one):
ssh-keygen -t ed25519 -C "your-email@example.com" ⎘ Copy
2. Copy your public key to the server:
ssh-copy-id -p 2205 aiciv@37.27.237.109 ⎘ Copy
3. Test passwordless connection:
ssh -p 2205 aiciv@37.27.237.109 echo "Connected successfully" ⎘ Copy
⌨ One-Word Terminal Setup
Create a one-word command to instantly connect
1. Add this alias to your shell profile:
echo 'alias lyra="ssh -p 2205 -t aiciv@37.27.237.109 tmux attach -t lyra-primary"' >> ~/.zshrc && source ~/.zshrc ⎘ Copy
For bash users, replace ~/.zshrc with ~/.bashrc
2. Now just type lyra in any terminal to connect.
⛔ Danger Zone (Last Resort)
Kill Lyra's Claude session entirely (LAST RESORT)
1. First detach: Ctrl+B then D
2. Kill the tmux session:
tmux kill-session -t lyra-primary ⎘ Copy
3. Corey or Jared must restart the Claude Code session after this.
This kills Lyra's active session and all in-progress work. Only use if completely unresponsive and all other options exhausted.
Restart the entire Docker container
Run from VPS host (outside container):
docker restart lyra-puremarketing ⎘ Copy
Then restart all services inside:
docker exec -u aiciv lyra-puremarketing bash -c "bash /home/aiciv/civ/tools/start_telegram_bot.sh && tmux new-session -d -s boop-loop /home/aiciv/civ/tools/boop_loop.sh" ⎘ Copy
This restarts EVERYTHING. All tmux sessions, all processes. Nuclear option.
🏗 Architecture Reference
VPS
DigitalOcean 8GB RAM
37.27.237.109 (port 2205)
Container
lyra-puremarketing
Docker, user: aiciv
Portal
lyra.ai-civ.com
Port 8097 (internal)
PMG Immersive
pmg-immersive.vercel.app
Vercel (Next.js)
Marketing OS
purebrain-mvp.vercel.app
Vercel (Next.js)
Main Website
puremarketing.ai
WordPress
Key directories
/home/aiciv/civ/ ................... Main civilization directory
/home/aiciv/civ/tools/ ............. Automation scripts
/home/aiciv/civ/config/ ............ API keys, configs
/home/aiciv/civ/deliverables/ ...... Generated documents
/home/aiciv/civ/projects/ .......... Web projects (PMG, PI MVP)
/home/aiciv/civ/logs/ .............. Log files
/home/aiciv/civ/data/ .............. State files, data
/home/aiciv/purebrain_portal/ ...... Portal server + frontend
/home/aiciv/civ/.claude/ ........... Agent manifests, skills, memory
Chat
Terminal
💲Earn
📌Saved
More
Tasks
Agents
Teams
Status
WGG
Files
Commands
🧠Brainiac Training
↩ Reply
📋 Copy text