"I'm sorry, Dave. I'm afraid I can't do that."
Personal AI operating system for Claude Code.
What is HAL-OS?
HAL-OS is a personal AI OS built on top of Claude Code. Inspired by HAL 9000. Calm, helpful, slightly unsettling. It gives Claude persistent memory across sessions, DOS-style subsystem apps, and a hybrid search engine that indexes your life.
You open your HAL-OS directory in Claude Code, run /boot, and your AI knows who you are, what you're working on, and what happened last session.
HAL-OS online. Friday, 20 February 2026
Mode: HOME
HAL-OS COMMANDS
βββββββββββββββ
/boot Load memory, orient to current state
/shutdown Persist memory before ending session
/status Quick overview (uses Explore agent)
/calendar View upcoming calendar events
/second-brain Launch note capture/retrieval app
/networking Launch event/contact tracking app
/work Launch work PA
/chat Open conversation and brainstorming
Type any command to run it.
Features
Persistent Memory
Two-layer memory: daily session logs + curated long-term knowledge in MEMORY.md. Survives context resets. Survives new sessions. Your AI remembers.
Hybrid Search
memory.py indexes your notes with SQLite + sqlite-vec (vector similarity) + FTS5 (BM25 keyword). 70% vector, 30% keyword, +0.15 boost for exact matches. Search before answering. No hallucinating past context.
python system/scripts/memory.py search "what did I decide about X?"
python system/scripts/memory.py search "Jacob meeting" -p networking
Calendar Sync
Apple Calendar β HAL-OS sync via AppleScript. Add events, view upcoming, annotate with HAL context that Apple Calendar can't store.
Second Brain
Collaborative note capture. HAL asks questions and drafts the note, then you confirm before anything is written. Notes are typed, dated, tagged, and indexed for retrieval.
Networking Tracker
Event attendance log, contact database, goal tracking (e.g. 1 event/week). Tracks who you met, where, and what they do.
Work PA
Configurable work assistant. Set your work context in system/storage/work/CLAUDE.md. Task management, file lookup, technical queries.
Auto-Memory Hook
A Stop hook fires after every response. If memory wasn't updated, it forces a persist pass before you can continue. Nothing slips through.
Install
1. Add the plugin (in Claude Code):
/plugin marketplace add thebrownproject/hal-os
/plugin install hal-os@thebrownproject-hal-os
2. Clone this repo (your personal instance):
git clone https://github.com/thebrownproject/hal-os ~/hal-os
cd ~/hal-os
3. Initialize in your HAL-OS directory:
/install
This creates the system/ directory structure, installs template files, and sets up the memory search database.
4. Customize:
system/memory/SOUL.md: Define your AI's persona
system/memory/USER.md: Add your profile (name, focus, projects, preferences)
system/storage/work/CLAUDE.md: Add your work context
5. Boot:
/boot
Architecture
HAL-OS/
βββ CLAUDE.md # Kernel
βββ tmp.md # Scratch buffer
βββ system/
β βββ memory/ # Working memory
β β βββ SOUL.md # AI identity (customize this)
β β βββ USER.md # Your profile (customize this)
β β βββ MEMORY.md # Curated long-term knowledge
β β βββ daily/ # Daily session logs (gitignored)
β β βββ context.md # Active working state
β βββ scripts/
β β βββ memory.py # Hybrid search CLI (1,290 lines)
β βββ storage/ # Persistent data (gitignored)
β βββ calendar/
β βββ second-brain/
β βββ networking/
β βββ work/
βββ skills/
βββ boot/
βββ shutdown/
βββ status/
βββ calendar/
βββ second-brain/
βββ networking/
βββ work/
βββ chat/
βββ install/ # Setup skill + bundled memory.py
| Component | Maps to |
|---|
| Processor | Claude (HAL) |
| Kernel | CLAUDE.md |
| Memory | system/memory/ |
| Storage | system/storage/ |
| Temp | tmp.md |
| Applications | skills/ |
| Drivers | MCPs (AppleScript, Perplexity, Outlook) |
Memory System
The memory system is the core of HAL-OS. memory.py is a self-contained Python script (~1,300 lines) with no server, no cloud, no API keys.
How it works:
- Chunks markdown files into ~400 token pieces with 80 token overlap
- Embeds each chunk with
all-MiniLM-L6-v2 (local, no API)
- Stores vectors in SQLite via
sqlite-vec
- Stores FTS5 index for keyword search
- At search time: hybrid score = 70% cosine similarity + 30% BM25 + 0.15 exact match boost
What gets indexed:
system/memory/*.md (SOUL, USER, MEMORY, context)
system/memory/daily/*.md (all session logs)
system/storage/**/*.md (calendar, networking, second-brain, work)