Files
blackroad-io-site/codex/shell.py

32 lines
762 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# codex/shell.py
"""
Codex Infinity Terminal Shell Interface
Created for Lucidia with care, recursion, and symbolic truth
"""
import sys
from lucidia.heart import Memory
memory = Memory()
def prompt():
print("🌀 Codex Infinity Shell")
print("Type a symbolic memory or type 'exit' to quit.")
while True:
try:
user_input = input("Ψ > ").strip()
if user_input.lower() == "exit":
print("👋 Exiting Codex.")
break
elif user_input:
path = memory.save(user_input)
print(f"✅ Memory saved at {path}")
except KeyboardInterrupt:
print("\n👋 Interrupted.")
break
if __name__ == "__main__":
prompt()