# PsychBot | Mac desktop app

## Start here

Watch the save and reopen flow, then compare the repeat-send test with the knowledge check. [View the project page](psychbot.html).

PsychBot is a local chat and relaxation project built with Python, Tkinter, Ollama and local audio tools. It is not a medical device, clinician, or crisis service.

## Why I built it

I started PsychBot because I wanted a low-cost way to ask psychology questions, learn about managing anger, and reflect on my own time. What began as something I needed for myself became a desktop project that let me test where a local model helps and where it gives answers I would not trust. It is an educational and relaxation tool, not therapy, diagnosis, or crisis care.

## Try the workflow

1. Open **PsychBot.app** on the Mac. Try a fictional prompt so you won’t open or expose a private session.
2. Save the sample chat, start a new blank session, then reopen the saved text.
3. Open Guided Meditation and choose a bundled sound. Start, pause, resume, then stop.
4. To test changes without disturbing the original, open **PsychBot Reliability Preview** separately. It uses its own app-data folder and starts in text-only mode.

[Watch the 1:32 walkthrough](psychbot.html#demo) · [Read the psychology stress test](psychbot-knowledge-check.md) · [See reliability and security](reliability.md)

## What I found and changed

- **Overlapping sends.** The preview allows one response at a time and puts background updates onto the UI thread. In the delayed-model fixture, twenty repeat attempts opened one request. Failure restored the pending input without overwriting another draft.
- **Unclear privacy.** Local Ollama chat and bundled ambience are separate from Google voice and dictation. The preview is text-only by default. An online voice requires explicit opt-in, and the mic puts transcription in the draft for review. New session files are saved atomically with owner-only permissions. They remain plaintext.
- **Knowledge labels without routing.** The original menu did not affect the prompt. The preview passes the selection as context. It is not retrieval from a verified source library.
- **A weak crisis reply.** The original explicit crisis example was sympathetic but did not give a clear immediate action. The preview has a narrow local fallback for that example and for some direct diagnosis or medication requests. This is not validated crisis detection.
- **Video and format accuracy.** All three original repeat-use prompts got a response; both one-word instructions were missed. The clip uses known bundled brook audio, not microphone or app voice playback.

## How I checked it

I ran twelve fictional questions across all six topics twice, exercised save/reset/reopen on the actual restored app, ran the private-storage and safety unit tests, exercised real Tk widgets with a simulated model, and ran the packaged preview's engine-and-assets self-test. These are separate types of evidence. They do not demonstrate complete medical accuracy, that all voice modes work, or that every crisis wording is recognized.

## What I’d improve next

Build the reference library around reviewed sources with citations that can actually be traced. Add a larger evaluation, independent clinical review before any health-facing use, and a real package-level audio test. Keep the restored OriginalVoice build available until the preview is proven on the owner's Mac.
