---
name: brain-terminal
description: "All the ways to talk to ain_brain. Phone cheat sheet. If you forgot a flag, load this."
tier: φ
dewey_id: phi.8.1.TERM
version: 1.0
triggers: [terminal, CLI, "run brain", "what can brain do", "how do I", ain_brain, flags]
dependencies: [ain-soph]
---
# BRAIN TERMINAL

**Every way to poke the brain. Phone-friendly.**

## CLI Flags

| Flag | What | Cost |
|------|------|------|
| `--status` | Full brain report | free |
| `--query "X"` | Pentad on tiling | free |
| `--triad "X"` | Grok→DeepSeek→you | $$$ |
| `--phi` | Psi=kappa*Phi^2 | free |
| `--coherence` | Fragmentation check | free |
| `--boundaries` | Phase boundary hotspots | free |
| `--qubit` | Quantum walk + NEE | free |
| `--tribit` | Tri-ternary C27 | free |
| `--god [addr]` | GOD operators on tile | free |
| `--god-scan` | GOD audit all tiles | free |
| `--viz` | ASCII tiling viz | free |
| `--workshop "X"` | Engine state JSON | free |
| `--omni "X"` | Full stack OmniAgent | $$$ |
| `--bridge` | Nexus bridge ops | free |
| `--graph-check` | Graph size check | free |
| `--graph-compress` | Compress bloated graph | free |

## Server (phone browser)

```bash
python -m ain_brain.server          # port 3141
python -m ain_brain.server --port 8080  # custom
```

Open http://localhost:3141 on phone. Tabs: GROK / DEEPSEEK / TRIAD / SEARCH.
Brain behind every call. Tiling context injected. Keys server-side.

## Quick Recipes

```bash
# Am I alive?
python -m ain_brain --status

# What does the brain know about X?
python -m ain_brain --query "X"

# Ask both oracles
python -m ain_brain --triad "X"

# Hunt arxiv (4.20 multi-agent, real URLs)
python3 -c "from ain_brain.models import grok_arxiv; print(grok_arxiv(['domain1','domain2']))"

# Full council run
python3 -c "
from ain_brain.models import grok_deep, deepseek, condense_context
from ain_brain.brain import AINSoph
brain = AINSoph(verbose=False); brain.boot(); brain.load_state()
ctx = condense_context(brain.memory, query='topic', max_tiles=20)
print(grok_deep(ctx + '\n\nTASK: topic'))
print(deepseek(ctx + '\n\nTASK: topic'))
"
```

## Matthew's Phone Shortcut

Save oracle.html to phone. Enter keys once. GROK/DEEPSEEK/TRIAD/SEARCH.
Works when Claude usage is cut. ain_brain.server for brain-backed version.
