Get Started/Installation Guide
Installation Guide
One-liners and source compilation procedures
Quick Install
macOS / Linux / WSL:
curl -sSL https://raw.githubusercontent.com/farhankhan197/ghost/main/install.sh | bashWindows (PowerShell 7+):
irm https://raw.githubusercontent.com/farhankhan197/ghost/main/install.ps1 | iexRequires PowerShell 7+. If you're on Windows PowerShell 5.1, build from source instead.
npm:
npm install -g ghost-aiBuild From Source
Ghost uses CMake and C++20. The only system dependency is libcurl. No package manager required beyond that.
Source Code
git clone https://github.com/farhankhan197/ghost.git
cd ghost
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/ghost installActivate in a Repository
Once the binary is installed, enable tracking in any project:
$ ghost install
This sets up:
- A post-commit hook at
.git/hooks/post-committhat writes notes on every commit. - An opencode plugin at
.opencode/plugins/ghost.tsfor session tracking. - Git configuration to push
refs/notes/ghostandrefs/notes/ghost-verifiedautomatically.