An AI agent that collaborates with historians to extract structured datasets from primary sources, adapt to heterogeneous documents, and accumulate domain knowledge across sessions. Chronos combines a document analysis agent with a VS Code extension to analyze scanned page images, extract structured data, and build knowledge about archival sources.
- Node.js (v18+)
- VS Code (v1.110+)
- A Gemini API key for the vision model
Chronos runs as a package inside pi, an AI coding agent framework. Install it globally:
npm install -g @mariozechner/pi-coding-agentVerify it works:
pi --helppi install https://github.com/ai-historian/history-agentThis clones the repository, installs dependencies, and registers the Chronos extension, tools, skills, and prompts with pi.
Download the latest .vsix from GitHub Releases and install it:
# Linux / macOS
code --install-extension chronos-0.1.1.vsix
# Windows (use code.cmd so the CLI runs instead of launching the GUI)
code.cmd --install-extension chronos-0.1.1.vsixAlternatively, open VS Code, go to the Extensions sidebar, click the ··· menu, choose Install from VSIX…, and select the file.
Open VS Code in an empty folder. Press Ctrl+Shift+P and run Chronos: Init Workspace. This creates the workspace structure and prompts for your Gemini API key.
Press Ctrl+Shift+P and run Chronos: Import Sources. Select a folder containing your source material — PDFs, images (PNG, JPG, TIFF, BMP), or text files. Each file within the folder is treated as a source. PDFs are automatically converted to page images. You can import additional sources at any time by running the command again.
Press Ctrl+Shift+P and run Chronos: Start Agent Session. The page viewer opens and a pi terminal starts.
On first startup, type /login in the terminal to log into your AI provider account (e.g. Anthropic, Google). Without this, no models will be available.
Type /select-source to pick a source and begin working.
Set in .chronos/.env:
GEMINI_API_KEY=your-key-here
pi supports many options natively. Common ones:
# Use a specific model
pi --model gemini-2.5-pro
# Continue previous session
pi -c
# Resume a specific session
pi -rRun pi --help for the full list.
See DOCS.md for technical details on workspace structure, tools, skills, memory, and the VS Code extension.
@article{hufe2026towards,
title={Towards the AI Historian: Agentic Information Extraction from Primary Sources},
author={Hufe, Lorenz and Griesshaber, Niclas and Greif, Gavin and Eck, Sebastian Oliver and Torr, Philip},
journal={arXiv preprint arXiv:2604.03553},
year={2026}
}See LICENSE for details.
