High-frequency wisdom injection for terminal-based workflows.
Memento Mori CLI is a terminal-based integration designed to bridge philosophical mindfulness with biological reality. It combines the "Mori-Kernel" (a life-statistics engine) with high-frequency wisdom injection from Tsongkhapa's LamRim (Stages of the Path to Enlightenment).
By integrating directly into your shell environment, it serves as a constant, subtle reminder of impermanenceโencouraging mindfulness and urgency in every terminal session.
Nominal State: System operating within standard parameters.

Inspired by the LamRim (Stages of the Path to Enlightenment) and the traditions of Memento Mori and Vanitas, memento-cli transforms your terminal from a mere utility into an active site of awareness.
The mementomori binary acts as a temporal engine. Upon shell startup, it calculates and displays vital life statistics based on your biological parameters, providing a "reality check" on the time remaining.
Automated injection of randomized philosophical quotes from the LamRim text. Quotes are categorized into three layers of mindfulness:
- The Urgency Protocol (Temporal Compression): Reminders to act now before death arrives suddenly.
- The Vanitas Protocol (Attachment Filter): Reflections on letting go of worldly attachments.
- The Decay Protocol (Biological Reality): Observations on the impermanence of the physical form.
The installer automatically detects your shell (bash or zsh) and injects the logic into your configuration files (.bashrc or .zshrc), ensuring a zero-touch experience after installation.
This project is a modified fork/extension of mementomori.
- Original Source: makeyourownmaker/mementomori
- My Contribution: Stochastic Modeling, UI Overhaul, The Wisdom Store of lamrim_death.txt, LamRim Wisdom Injector, and Refactored for Python 3 standards.
Prerequisites:
- A Linux/Unix-based environment.
bashorzshinstalled.- The
mementomoribinary located in the same directory asinstall.sh.
Steps:
-
Make the installer executable:
chmod +x install.sh
-
Run the integration setup:
./install.sh
-
Follow the interactive prompts:
- Enter your birthdate (
YYYY-MM-DD). - Specify sex (optional).
- Set expected lifetime (defaults to 81 years).
- Enter your birthdate (
-
Finalize: Restart your terminal or run:
source ~/.bashrc # or source ~/.zshrc
Once installed, the tool runs automatically every time you open a new terminal window. You will see:
- A randomized LamRim Wisdom quote in red text.
- Your Mori-Kernel Stats (Life countdown/statistics).
You can manually trigger the kernel stats at any time by calling the binary directly:
# Basic usage with birthdate and sex mementomori -b 1990-01-01 -s m -v # Flags: # -b <YYYY-MM-DD> Set Birthdate # -s <m|f> Set Sex (default: m) # -v Verbose/Stats mode
The installer creates a structured text database containing curated quotes from Tsongkhapa's LamRim. This file is parsed by the shell injection logic to provide randomized, high-impact reflections.
The install.sh script utilizes sed and shuf for non-intrusive, lightweight wisdom delivery:
# Example of the automated wisdom selector used in your config: QUOTE=$(sed -n 's/^\* \"\([^\"]*\)\" #.*/\1/p' ~/.lamrim_death.txt | shuf -n 1)
The original implementation was a deterministic calculatorโit told you exactly how many days were left based on static averages. While mathematically accurate, it lacked the inherent chaos of existence.
My version transforms this from a calculator into a Stochastic Model.
Life does not follow a linear path. My version introduces a "Reality Roll" every time you run the script:
- 85% of the time, you receive the standard biological expectation.
- 12% of the time, the system enters an Imminent State, simulating a sudden collapse in remaining time.
- 3% of the time, you hit The Endโa total collapse of the timeline.
Approaching Criticality: Accelerated temporal decay detected.

Terminal State: Total systemic entropy; timeline-collapse complete.

No more reading long lists of numbers. The new interface provides a high-density "Heads Up Display":
- Color-Coded Vitality: Green for life, Red for entropy.
- Entropy Meter: A visual progress bar showing exactly how much of your timeline has been consumed.
- ANSI Terminal Styling: Designed for terminal enthusiasts who want beautiful, high-contrast output.
- The Subliminal Mode (Default): A quiet, minimal prompt to remind you of mortality without being intrusive.
- The HUD Mode (
-v): For those who want the full, high-signal breakdown of their current state. - The Biological Truth Mode (
--long): For those who wish to bypass the chaos and see the raw, uncollapsed mathematical data.
This project is released under the MIT License. The philosophical content (LamRim quotes) is provided as Public Domain content for the purpose of mindfulness practice. Mementomori & mori-kernel is a derivative of makeyourownmaker/mementomori, and is licensed under GPL-2
To completely remove Memento Mori from your system, follow these three steps:
Run the following commands to delete the kernel binary and the wisdom text file:
rm ~/.local/bin/mementomori rm ~/.lamrim_death.txt
The installer adds logic blocks to your .bashrc or .zshrc. You must remove these manually to prevent errors when opening new terminals.
-
Open your configuration file:
nano ~/.bashrc # or nano ~/.zshrc if using Zsh
-
Scroll to the bottom of the file and delete the following two blocks:
Block A (Wisdom Injector):
# LamRim Wisdom Injector QUOTE=$(sed -n 's/^\* \"\([^\"]*\)\" #.*/\1/p' ~/.lamrim_death.txt | shuf -n 1); [ -n "$QUOTE" ] && echo -e "\n\e[1;31m[Memento Mori]\e[0m $QUOTE"
Block B (Kernel Stats Injector):
# Mori-Kernel Stats Injector $HOME/.local/bin/mementomori -b [YOUR_BIRTHDATE] -s [YOUR_SEX] -v
- Save and exit (
Ctrl+O,Enter, thenCtrl+X).