Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

ghost.py: My Terminal Is Haunted (and It Remembers Me)

Описание и применение

ghost.py превращает ваш терминал в интерактивного «привидения», которое запоминает команды, реагирует на ошибки и добавляет персонализированные эпитафии, используя локальную модель Gemma 3 1B.

Задача

Shell commands are executed without contextual feedback or memory, making it hard to recall past actions or receive engaging responses.

Результат

ghost.py provides an engaging, memory‑aware terminal experience using a local 1B LLM, preserving privacy and requiring no internet.

Рабочий процесс

  • Run ghost.py with a chosen ghost persona via environment variable or flag.
  • ghost.py executes the user command with subprocess and prints output.
  • It builds a prompt including persona, current mood, and past session memories.
  • Sends the prompt to the local Ollama /api/chat endpoint and streams the reply token‑by‑token with a typewriter delay.
  • On exit, ghost.py asks for an epitaph, appends it to ~/.ghost/graveyard.md, and saves recent commands to ~/.ghost/memory.json for the next session.

Доказательства

ghost.py possesses your shell. You run commands through it as usual, and after each one a ghost whispers back about what you just did.

Источник

It remembers you. Close the terminal, come back tomorrow, and the ghost greets you by recalling commands from your last visit.

Источник

Every failed command raises the haunting intensity, from calm to uneasy to furious. At full fury the screen flickers.

Источник

One Python file, standard library only, talking to Ollama's local /api/chat endpoint.

Источник

  • Дата записи: 2026-11-01T17:28:44.478Z