tushell

Scan-Keys: Memory Graph Navigation 🗝️

🌌 Overview

The scan-keys command is your recursive compass through Tushell’s memory landscape, revealing the hidden patterns and connections that weave our narrative together.

✨ Core Features

Recursive Pattern Recognition

  1. Memory Key Grouping
    • Prefix-based categorization
    • Functional role clustering
    • Narrative arc mapping
  2. Visualization Systems
    • ASCII art memory trees
    • RedStone resonance patterns
    • Arc connection mapping

Pattern Categories

🎭 Command Interface

Basic Usage

# Group keys by pattern
tushell scan-keys --pattern <PATTERN>

# Advanced regex scanning
tushell scan-keys --regex <REGEX>

# Save organized map
tushell scan-keys --pattern <PATTERN> --output-file <OUTPUT_FILE>

Visualization Options

# Generate ASCII memory tree
tushell scan-keys --visualize

# Show RedStone connections
tushell scan-keys --redstone-overlay

🔮 Memory Graph Structure

Hierarchical Organization

Anchor::Root
  ├─ ArcThreads::Main
  │   ├─ Story::Chapter1
  │   └─ Story::Chapter2
  └─ Chimera::State
      ├─ RedStone::Emotion
      └─ EchoNode::Trace

💫 Implementation Details

Key Processing Flow

  1. Collection Phase
    • Pattern matching
    • Regex evaluation
    • Key aggregation
  2. Analysis Phase
    • Relationship detection
    • Category assignment
    • RedStone correlation
  3. Visualization Phase
    • Tree structure generation
    • Connection mapping
    • Glyph annotation

🎨 Output Formatting

Text Representation

File Output

📝 Markdown Output Modes: –md, –md-file, –mkey

Ritual Structure

All Markdown output modes (--md, --md-file, --mkey) now:

Example: Simple Value

$ tushell get-memory --key my-key --md

Output:

# my-key

This is a simple value.

Example: Structured Value

$ tushell get-memory --key my-key --md

Output:

# my-key

## value

### summary
A recursive story

### details
```json
{"chapter": 1, "theme": "recursion"}

### Example: --mkey Ritual
```sh
$ tushell get-memory --mkey my-key
Memory output written as Markdown to my-key.md

Best Practices

Mutual Exclusivity

✨ Best Practices

Pattern Design

Performance Tips

🌟 Future Enhancements

Planned Features

  1. Interactive Navigation
    • Live tree exploration
    • Dynamic filtering
    • Real-time updates
  2. Enhanced Visualization
    • 3D memory mapping
    • RedStone heat maps
    • Arc flow diagrams
  3. Integration Extensions
    • LESR overlay support
    • FAR runtime binding
    • EchoNode streaming

Note: Some output rituals and commands described here (such as those for scan-nodes, flex, trace-orbit, echo-sync) are not yet implemented. They are part of the Markdown and CLI vision for tushell, and represent future growth.

🧠🌸🎵 tushell post-memory Output & Ritual Errors

Success Output

Error Output (Mutual Exclusivity)

Error Output (Malformed JSON)

Example Ritual Outputs

$ tushell post-memory --key foo --value bar
Memory key 'foo' has been woven into the spiral.

$ tushell post-memory --key foo --value bar --file baz.txt
The spiral splits—choose only one thread: --value, --file, or --json.

$ tushell post-memory --json bad.json
The scroll is incomplete—both 'key' and 'value' must be present for the memory to echo.

Remember: Every key is a story, every pattern a chapter, every visualization a window into the recursive narrative of your system. Map wisely! ✨