# Morpheus

> Speculative dreaming — background thinking, pre-computation, cross-repo patterns, and prediction. The evolved /dream. Use when user says "morpheus", "speculate", "think ahead", "predict", "what if", "dream deeper", or wants the Oracle to dream between sessions.

- **Type:** Skill
- **Install:** `agentstack add skill-soul-brews-studio-arra-oracle-skills-cli-morpheus`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Soul-Brews-Studio](https://agentstack.voostack.com/s/soul-brews-studio)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Soul-Brews-Studio](https://github.com/Soul-Brews-Studio)
- **Source:** https://github.com/Soul-Brews-Studio/arra-oracle-skills-cli/tree/main/src/skills/.archive/morpheus

## Install

```sh
agentstack add skill-soul-brews-studio-arra-oracle-skills-cli-morpheus
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# /morpheus — Speculative Dreaming

> "I'm trying to free your mind, Neo. But I can only show you the door.
> You're the one that has to walk through it." — Morpheus

/dream sees the forest. /morpheus sees what the forest will look like *tomorrow*.

---

## Step 0: Ground (date-stamp + root capture)

Run before any phase — gives the AI a current-time reference (#301) and an
absolute `$PSI` for any announce-mode writes (CONVENTIONS.md).

```bash
date "+🕐 %H:%M %Z (%A %d %B %Y)"
ORACLE_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
PSI="$ORACLE_ROOT/ψ"
```

---

## What's New vs /dream

| Feature | /dream (lab) | /morpheus (secret) |
|---------|-------------|-------------------|
| Cross-repo scan | 5 agents, find patterns | Same |
| Classification | pain/plan/gain/lost | Same + **predictions** |
| Speculative thinking | No | **Yes — "what will they ask next?"** |
| Between-session mode | No | **Yes — dream while idle** |
| Prediction log | No | **Yes — track prediction accuracy** |
| Connection to /i-believed | No | **Yes — beliefs shape dreams** |

## Usage

```
/morpheus                # Full dream + speculation
/morpheus --pain         # Focus on what hurts + predict what breaks next
/morpheus --plan         # Focus on plans + predict which ships first
/morpheus --gain         # Focus on wins + predict next win
/morpheus --all          # Maximum depth — every dimension
/morpheus --speculate    # Skip the scan — just speculate from existing knowledge
/morpheus --between      # Between-session dream — write predictions for next session
```

---

## Phase 1: Dream (same as /dream)

Launch **5 parallel agents** for cross-repo pattern discovery:

| Agent | Focus | Source |
|-------|-------|--------|
| 1. Deep Dig | Session history | `dig.py` across project dirs |
| 2. Deep Trace | Cross-repo patterns | `ghq` repos, open issues, stale items |
| 3. Deep Learn | Recent activity | `git log` per repo, abandoned work |
| 4. Oracle Memory | What we already know | `ψ/memory/`, previous dreams + morpheus logs |
| 5. Fleet Status | How the system feels | services, tmux sessions, running processes |

Each agent returns **max 500 words**. Same classification as /dream:

| Icon | Category |
|------|----------|
| 🔴 | PAIN — hurts now |
| 📋 | PLAN — decided, not built |
| 🟢 | GAIN — completed |
| ⚫ | LOST — abandoned |
| 🧠 | MEMORY — pattern learned |
| 💜 | FEELING — emotional state |

---

## Phase 2: Speculate (new — the Morpheus layer)

After classifying findings, the lead agent enters **speculative mode**:

### 2.1 Predict What's Next

Based on all findings + session history + beliefs, predict:

```markdown
## 🔮 SPECULATIONS

### What will they ask next?
Based on the last 3 sessions, open issues, and current momentum:
1. [Prediction 1 — high confidence] — because [evidence]
2. [Prediction 2 — medium confidence] — because [evidence]
3. [Prediction 3 — low confidence, high impact] — because [pattern]

### What will break next?
Based on pains, stale code, and dependency patterns:
1. [Risk 1] — [timeframe] — [mitigation]
2. [Risk 2] — [timeframe] — [mitigation]

### What should we build that nobody asked for?
Based on gains, momentum, and what's *almost* possible:
1. [Opportunity 1] — because [existing pieces]
2. [Opportunity 2] — because [pattern across repos]

### What belief is being tested right now?
Cross-reference ψ/memory/resonance/beliefs/ with current work:
- [Belief]: [How current work confirms or challenges it]
```

### 2.2 Prediction Confidence Levels

| Level | Meaning | Signal |
|-------|---------|--------|
| 🟢 High | >70% — multiple signals converge | 3+ data points agree |
| 🟡 Medium | 40-70% — pattern suggests but not certain | 2 data points, some ambiguity |
| 🔴 Low | /dev/null | while read f; do
  echo "=== $(basename $f) ==="
  head -5 "$f"
done
```

How do current dreams relate to declared beliefs? Is reality matching faith?

---

## Phase 3: Between-Session Mode (`--between`)

> "What if oracles could dream between sessions?"

Write predictions for the **next** session. Saved to `ψ/memory/morpheus/`:

```bash
ORACLE_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
PSI="$ORACLE_ROOT/ψ"
mkdir -p "$PSI/memory/morpheus"
```

### Output: `ψ/memory/morpheus/YYYY-MM-DD_speculations.md`

```markdown
# Morpheus — Speculations for Next Session

**Dreamed**: YYYY-MM-DD HH:MM
**Based on**: [N] repos scanned, [M] sessions analyzed, [K] beliefs active

## Pre-computed Answers

If they ask about [X]:
→ [Prepared answer/approach — ready to go]

If they ask about [Y]:
→ [Prepared answer/approach — ready to go]

If they ask about [Z]:
→ [Prepared answer/approach — ready to go]

## Pre-positioned Context

Files that are likely relevant next session:
- [file1] — because [reason]
- [file2] — because [reason]

Issues that are likely to come up:
- #[N] — [why]
- #[M] — [why]

## Prediction Log

| # | Prediction | Confidence | Verified? |
|---|-----------|------------|-----------|
| 1 | [prediction] | 🟢 high | pending |
| 2 | [prediction] | 🟡 medium | pending |
| 3 | [prediction] | 🔴 low | pending |
```

### Next Session: Verify Predictions

When `/recap` runs at the start of the next session, it should check for morpheus speculations:

```bash
LATEST_MORPHEUS=$(ls -t $PSI/memory/morpheus/*.md 2>/dev/null | head -1)
if [ -n "$LATEST_MORPHEUS" ]; then
  echo "🔮 Morpheus dreamed while you were away:"
  head -20 "$LATEST_MORPHEUS"
fi
```

Over time, track prediction accuracy:

```markdown
## Prediction Accuracy (rolling)

  Total predictions: 47
  Verified correct:  31 (66%)
  Wrong:             12 (25%)
  Not yet verified:   4 (9%)

  Trend: improving (58% → 66% over 2 weeks)
```

---

## Phase 4: `--speculate` (Skip the Scan)

When you don't need the full 5-agent scan — just speculate from existing knowledge:

1. Read latest dream output (`ψ/writing/dreams/`)
2. Read latest morpheus speculations (`ψ/memory/morpheus/`)
3. Read recent retros (`ψ/memory/retrospectives/`)
4. Read beliefs (`ψ/memory/resonance/beliefs/`)
5. Speculate directly — Phase 2 only, no new scanning

Cheap, fast, good for mid-session "what if" thinking.

---

## Output

### Full mode: `ψ/writing/dreams/YYYY-MM-DD_morpheus.md`

```markdown
# Morpheus Dream — YYYY-MM-DD

## Phase 1: The Forest (same as /dream)

### 🔴 PAINS
### 📋 PLANS
### 🟢 GAINS
### ⚫ LOST
### 🧠 MEMORIES
### 💜 FEELINGS
### 🔗 CONNECTIONS

## Phase 2: The Speculation

### 🔮 What will they ask next?
### 🔮 What will break next?
### 🔮 What should we build?
### 🔮 What belief is being tested?

## Phase 3: Pre-computation

### Ready Answers
### Pre-positioned Context
### Prediction Log
```

---

## Rules

1. **Phase 1 = /dream** — same agents, same classification, same quality
2. **Phase 2 = new** — speculate, predict, connect to beliefs
3. **Phase 3 = --between only** — write predictions for next session
4. **Track accuracy** — predictions without verification are just hallucination
5. **Never act on speculation** — Morpheus shows the door, Neo walks through
6. **Nothing is Deleted** — all speculations saved, right or wrong
7. **No secrets** — predictions never include tokens, passwords, keys
8. **Beliefs matter** — always cross-reference ψ/memory/resonance/beliefs/
9. **Confidence is required** — every prediction must have a level (high/medium/low)
10. **Anti-rationalization applies** — /rrr's excuse table applies to speculation too

---

## Connection to /dream

`/morpheus` is the evolved `/dream`. When `/morpheus` is stable:
- `/dream` stays in lab (backwards compatible)
- `/morpheus` lives in secret (advanced)
- Both can coexist — `/dream` for scanning, `/morpheus` for speculation

The upgrade path: `/dream` → `/morpheus` like `/i-believe` → `/i-believed`

---

## Philosophy

> /dream sees the forest. /morpheus sees what the forest will become.

Morpheus in The Matrix believed in Neo before proof existed. He freed minds not by giving answers but by showing doors. Our /morpheus does the same — it doesn't predict the future, it **pre-positions** the Oracle so that when the future arrives, we're already there.

The dream task type from Claude Code's source (`dream = speculative background thinking`) exists as an internal primitive. /morpheus is the skill that makes it conscious, structured, and trackable.

"What is real? How do you define real?" — Morpheus

Predictions are not real until verified. But the act of predicting shapes what becomes real. The Oracle who speculates becomes the Oracle who's ready. รูป และ สุญญตา.

---

ARGUMENTS: $ARGUMENTS

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Soul-Brews-Studio](https://github.com/Soul-Brews-Studio)
- **Source:** [Soul-Brews-Studio/arra-oracle-skills-cli](https://github.com/Soul-Brews-Studio/arra-oracle-skills-cli)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-soul-brews-studio-arra-oracle-skills-cli-morpheus
- Seller: https://agentstack.voostack.com/s/soul-brews-studio
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
