https://github.com/garnizeh/chronos
A local-first OS context engine and RAG diary. Built in Rust with zero-cloud VLM inference and SQLite-backed vector search.
https://github.com/garnizeh/chronos
journal ollama rag rust sqlite vlm
Last synced: 3 months ago
JSON representation
A local-first OS context engine and RAG diary. Built in Rust with zero-cloud VLM inference and SQLite-backed vector search.
- Host: GitHub
- URL: https://github.com/garnizeh/chronos
- Owner: garnizeh
- License: mit
- Created: 2026-03-21T01:46:01.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-03-21T17:19:23.000Z (3 months ago)
- Last Synced: 2026-03-21T17:27:56.470Z (3 months ago)
- Topics: journal, ollama, rag, rust, sqlite, vlm
- Language: Rust
- Homepage: https://github.com/garnizeh/chronos
- Size: 388 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Roadmap: docs/roadmap/0001-milestone-01-mvp-roadmap.md
Awesome Lists containing this project
README
# Chronos
**Your personal context engine β a local-first screen capture daemon that understands what you're doing.**
[](https://github.com/garnizeh/chronos/releases)
[](https://www.rust-lang.org/)
[](https://ollama.com/)
[](https://github.com/garnizeh/chronos/actions/workflows/ci.yml)
[](https://coderabbit.ai)
[](https://codecov.io/gh/garnizeh/chronos)
[-lightgrey)](#prerequisites)
[](https://opensource.org/licenses/MIT)
[](https://github.com/garnizeh/chronos/pulls)
> π§ **Under active development** β Milestone 1 MVP in progress.
---
## π§ The Why
We've all been there: you step away from your PC for a meeting, a coffee, or the weekend, and when you return, the context is completely gone. What were you debugging? Which logs were you looking at? What was the name of that elusive command you ran an hour ago?
Chronos solves this. It acts as a **searchable photographic memory** for your workstation. By periodically capturing your screen and feeding it to a locally-hosted Vision Language Model (VLM), Chronos semanticizes your activity into a highly queryable, private SQLite database.
You no longer need to remember *what* you were doingβyou just ask Chronos.
## π Privacy-First by Design
When dealing with screen captures, trust is not optional. Chronos guarantees absolute privacy at the architectural level:
| Guarantee | How |
|---|---|
| **Zero Cloud APIs** | All AI inference runs locally via Ollama on `localhost`. Your screen never leaves your machine. |
| **Zero Disk I/O** | Captured frames live entirely in a RAM-only ring buffer. Raw images (`.png`/`.jpg`) are never written to your SSD, saving wear and tear. |
| **Zero Telemetry** | No analytics, no tracking, no outbound network calls beyond `localhost:11434`. |
| **Local SQLite** | Semantic data, vectors, and embeddings are stored purely in a local SQLite database. |
## π οΈ The Pragmatic Stack
Built for performance, safety, and operational simplicity:
- **Rust 1.94+**: Memory-safe footprint, fearless concurrency, and zero-cost abstractions.
- **Ollama 0.17+**: Frictionless local inference for modern Vision Language Models.
- **SQLite / sqlx**: Battle-tested, serverless, and embedded data layer using direct, compile-time checked queries (no heavy ORMs).
- **Just**: Pragmatic command runner to encapsulate all developer workflows seamlessly.
## π¦ Prerequisites
- **Rust** 1.94+ (`rustup` recommended)
- **Ollama** 0.17.4+ running locally (`ollama serve`)
- A Vision Language Model pulled locally (e.g. `ollama pull moondream` or `llava`)
- **Just** command runner (`cargo install just`)
- **Linux** with X11 display server (Wayland support planned)
## ποΈ Build & Development
We use `just` instead of bare `cargo` commands to streamline the development lifecycle.
```bash
# Install dependencies, setup local environment
just setup
# Reset and migrate the SQLite database
just db-reset
# Run the exact CI pipeline locally before committing to catch errors early
just ci-local
# Build the release binary
just build-release
```
## π Quick Start
Getting started is as simple as running the daemon:
```bash
# Start the capture daemon in the foreground
just run chronos-daemon start
# Query your activity logs from a specific date
just run chronos-daemon query --from 2025-01-01
# Check the system and daemon status
just run chronos-daemon status
```
## π Project Status
This is a **v0.1 MVP/POC** β currently supporting Linux X11, single-monitor setups, and basic VLM interactions.
See the [design document](docs/design/0001-chronos-personal-context-engine.md) for the full architecture, design choices, and future roadmap.
## π€ Contributing
Contributions are welcome! Here's how to get up and running:
```bash
# 1. Clone and enter the repo
git clone https://github.com/garnizeh/chronos.git && cd chronos
# 2. Install all dev tools (uses cargo-binstall for speed)
just setup
# 3. Setup the local SQLite database
just db-setup
# 4. Run the full CI pipeline locally before opening a PR
just ci-local
```
All commits must follow [Conventional Commits](https://www.conventionalcommits.org/). See the project's commit history for examples.
## π License
[MIT](LICENSE)