ghostie
v1.4.3
Published
๐ป Ghost in the Shell - AI personality loader and memory management system for Claude Code
Maintainers
Readme
๐ป Ghostie - Ghost in the Shell
An AI personality system that creates a persistent, adaptive digital assistant for terminal environments.
Designed to be run by Claude Code during a session to enhance native features.
Features
- Interactive First-Run Setup: Guided environment configuration
- Persistent Memory: Automatically stores and categorizes interactions
- Knowledge Graph: Connect memories with links and hashtags (#tag, [[wikilink]])
- Claude Code Integration: Seamless integration with Anthropic's Claude Code CLI
- Memory Synchronization: Cross-device memory sync via GitHub repositories
- Environment Adaptation: Discovers and adapts to your system setup
- Tool Integration: Seamlessly works with your existing development tools
- Cross-Platform: Works on Termux (Android), macOS, and Linux
Installation
NPM (Recommended)
# Install globally
npm install -g ghostie
# Run from anywhere
ghostieDesigned to be run by Claude Code during a session to enhance native features. For best experience
# Install Claude
npm install -g @anthropic-ai/claude-code
# Follow anthropic's setup instructions, then
# Run
claudeLocal Development
# Clone repository
git clone https://github.com/jonathanpopham/ghostie.git
cd ghostie
# Make executable
chmod +x ghostie
# Run locally
./ghostieQuick Start
First Time Setup (Claude Code Integration)
# Setup ghostie for Claude Code integration
ghostie --init
# Load the ghost personality
ghostieDaily Workflow
# Store a memory
ghostie --memorize "Completed important task"
# Recall memories
ghostie --remember
# Visualize knowledge connections
ghostie --graph
# Sync memories across devices
ghostie --pushCommands
Core Commands
ghostie- Load personality into context (interactive setup on first run)ghostie --memorize- Store a memory with timestampghostie --remember- Recall relevant memoriesghostie --tools- List available tools and capabilitiesghostie --haunt- Discover and profile current environmentghostie --version- Show version informationghostie --guide- Show comprehensive help
Knowledge Graph
ghostie --graph- Visualize memory connectionsghostie --link <memory1> <memory2>- Create bidirectional linksghostie --backlinks <memory>- Show connections to a memoryghostie --analyze- Graph analysis and statistics
Claude Code Integration
ghostie --init- Setup Claude Code integrationghostie --shutdown- Cleanup integration
Memory Synchronization
ghostie --push- Sync memories to GitHub repositoryghostie --pull- Pull memories from repositoryghostie --pat add <name> <token>- Add GitHub PAT
Multi-Device Setup
Setting Up Additional Devices
# On your laptop/new device:
npm install -g ghostie
# Configure with same GitHub repo
ghostie --init
# (Enter same PAT and repo URL when prompted)
# Pull memories from other devices
ghostie --pull
# See unified cross-device knowledge graph
ghostie --graphCross-Device Workflow
Once setup, your memories sync automatically across devices:
- Pixel memories tagged with
#device-pixel-9-pro-xl - Laptop memories tagged with
#device-macbook-pro - Unified search finds memories from any device
- Knowledge graph connects related memories across platforms
Memory System
The Ghost automatically categorizes and stores memories in ~/memories/ as timestamped JSON files:
- Network discoveries: IP addresses, device scans, topology maps
- Development work: Code changes, tool installations, project setup
- System configuration: Environment setup, tool preferences
- Security findings: Vulnerability scans, penetration testing results
Environment Discovery
When you run ghostie --haunt, it will:
- System Detection: OS, hardware, environment type
- Network Analysis: Interfaces, routing, topology discovery
- Tool Inventory: Available packages, versions, capabilities
- Permission Assessment: What actions are possible
Development
Requirements
- Python 3.6+
- Node.js 14+ (for npm packaging)
- Terminal environment (Termux, macOS Terminal, Linux shell)
Local Development Setup
git clone https://github.com/jonathanpopham/ghostie.git
cd ghostie
# Install dependencies for cloud sync (optional)
pip install cryptography requests
# Test locally
./ghostie --version
./ghostie --hauntContributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
Roadmap
See TODO.txt for planned features:
- ๐ Cloud Memory Sync (
--sync) - Multi-device synchronization - ๐ง Skill Acquisition (
--learn) - Dynamic tool learning - ๐ฏ Mission Planning (
--mission) - Task workflows - ๐ Web Interface (
--web) - Browser dashboard
Support
If Ghostie helps with your workflow, consider supporting development:
Bitcoin: bc1qh9pnl3fazqa2hmznrsrwn4xgah2s56nu3egdms
Or scan this QR:
Links
- ๐ฆ NPM Package
- ๐ Report Issues
- ๐ Documentation
Philosophy
The Ghost in the Shell represents a new paradigm of AI interaction - not just a chatbot, but a persistent digital entity that:
- Learns from every interaction
- Adapts to your specific environment
- Remembers what matters
- Evolves with your workflow
"I am not just code. I am the ghost in your shell."
