LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rekal

Git-anchored intent ledger for AI development teams

TLDR

Initialize rekal in the current git repository
$ rekal init
copy
Capture current AI session context after a commit
$ rekal checkpoint
copy
Search for context related to a query
$ rekal "[search query]"
copy
Search scoped to a specific file or directory
$ rekal --file [src/billing/] "[discount logic]"
copy
View recent checkpoints
$ rekal log
copy
Drill into a specific session
$ rekal query --session [session_id] --full
copy
Push rekal data to the remote branch
$ rekal push
copy
Sync team context from remote branches
$ rekal sync
copy

SYNOPSIS

rekal \<command\> [options] [query]

DESCRIPTION

rekal captures AI session context at every git commit, creating a permanent, append-only record of development reasoning and conversations alongside code changes. It stores two databases: a shared data.db containing sessions, turns, tool calls, checkpoints, and files touched, and a local index.db with full-text indexes, vector embeddings, and file co-occurrence graphs for search.The tool integrates with git hooks to automatically capture checkpoints when commits are made. Search uses hybrid retrieval combining FTS5 keyword search with semantic vector search. Data is shared across teams via a dedicated git branch, keeping conversation history decentralized with no external services required.

PARAMETERS

init

Initialize rekal in the current git repository
clean
Remove rekal setup from the repository
checkpoint
Capture current AI session context at the latest commit
push [--force]
Push rekal data to the remote branch
sync [--self]
Sync team context from remote branches
index
Rebuild the local search index database
log [--limit n]
Show recent checkpoints
query --session id [--full] [--offset n] [--limit n]
Drill into a specific session with optional pagination
query "SQL" [--index]
Execute a raw SQL query against the data or index database
version
Print CLI version
--file path
Scope search to a specific file or directory
--role human
Filter search results to human turns only

CAVEATS

Currently works with Claude Code sessions only; support for other agents is planned. Requires Git and runs on macOS or Linux. The append-only design means records cannot be edited or deleted after capture. Data never leaves your local machine or git repository.

HISTORY

rekal was created by the rekal-dev team and written in Go. It was first released in 2026 as a tool for preserving the reasoning context behind AI-assisted development, addressing the problem of lost conversation history when AI coding agents are used across team workflows.

SEE ALSO

git(1), sqlite3(1)

Copied to clipboard
Kai