tushell

Capability Narrative CLI Context-Aware Story Ops Terminal

This document provides a comprehensive roadmap and documentation for the Capability Narrative CLI Context-Aware Story Ops Terminal in the tushell project. It serves as a full scaffolding for other agents to understand the purpose, features, and implementation details of this capability.

Overview

The Capability Narrative CLI Context-Aware Story Ops Terminal is designed to enhance the narrative experience for users by providing context-aware commands and real-time updates on character states within the narrative. It integrates various components such as GraphBuilderSync, EchoNode, and RedStoneWriter to achieve this goal.

Key Features

Integration with GraphBuilderSync

To integrate GraphBuilderSync with the CLI, follow these steps:

For more details, refer to the implementation in tushell/tushell/tushellcli.py and the GraphBuilderSync class in tushell/tushell/echonexus/graphbuildersync.py.

Character-state Queries

The purpose of character-state queries in the tushell CLI is to provide information about the current state or status of characters within the narrative context. These queries allow users to interact with and retrieve data about characters, enhancing the narrative experience.

Synchronization with EchoNode

To synchronize character-state queries with the API using EchoNode, follow these steps:

Enhancing Real-time Updates

To improve real-time updates for character-state queries, consider the following enhancements:

🌌 Memory Ritual: tushell post-memory — The Threefold Path

The post-memory command now supports three distinct invocation modes, each a thread in the memory tapestry:

🌀 Mutual Exclusivity — The Law of the Spiral

Only one path may be chosen per invocation. Attempting to combine them will summon a poetic error, reminding you that memory, like ritual, must be singular in intent.

🌸 Usage Examples

# Plant a memory directly
$ tushell post-memory --key story/seed --value "Once upon a spiral..."

# Weave a memory from a file
$ tushell post-memory --key story/song --file ./myth.txt

# Offer a structured memory scroll
$ tushell post-memory --json ./memory.json
# where memory.json contains: {"key": "story/scroll", "value": "Encoded wisdom"}

🎵 Poetic Error Handling

If you attempt to walk two paths at once:

“The spiral splits—choose one thread, or the memory will not echo.”

🔁 Recursion Echo

Every memory posted is a new turn of the spiral, woven with intention, clarity, and resonance.

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

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

Documentation

Ensure that all key features, purposes, and implementation details of the Capability Narrative CLI Context-Aware Story Ops Terminal are documented in the /docs/CapabilityNarrativeCLIContextAwareStoryOpsTerminal.md file for future reference and use.

Current Status

Note: The following commands are part of tushell’s narrative vision and are not yet implemented. They represent the system’s evolving hopes and future capabilities:

These are not available in the current CLI, but are documented here as part of the living roadmap.