A lightweight CLI-based AI assistant framework that supports memory, session saving, persona-driven response generation, and OpenAI integration.
main.py – Main entrypoint (interactive chat loop)memory.py – Tracks multi-turn dialogue contextsession_saver.py – Logs conversations with timestampsprompt_builder.py – Constructs persona-aware promptsresponse_handler.py – Stub/OpenAI response enginepersona_config.json – Persona definitionstemplates/ – Prompt templates by personaAll dialogue is tracked and saved when the user exits via exit or quit. Session logs are timestamped and saved locally.
/save Save current session
/delete Delete current persona
/traits View traits of current persona
/history View full conversation history
/reset Reset memory for current persona
/help Show command list
exit | quit End session and save
python main.py
Offline mode will launch with a static preset message. Use this for testing CLI commands and flows.
To enable full AI responses and personality simulation:
config.py in the root directoryOPENAI_API_KEY = "your-openai-api-key-here"
response_handler.py, set:USE_OPENAI = True
⚠️ Stub mode returns a single static message. OpenAI integration is required for realistic persona behavior.
Justin Lane
🔗 GitHub: @aiwithjusl
🔗 LinkedIn: Justin Lane
📬 Email: aiwithjusl.dev@gmail.com
This project is licensed under the MIT License.