Skip to main content

vice

A context retrieval engine for AI agents.

vice takes information retrieval over your own knowledge off the agent. It decides whether a prompt needs context, finds and reads the relevant sources, and resolves conflicting or outdated information. Relevant context is pushed to the agent before it processes the prompt, and is also available on demand over MCP. The agent's context window holds the result, not the search.

A prompt enters vice, which decides whether it needs context, retrieves and judges blocks from the sources, selects the final set, and passes relevant blocks or nothing to the agent. The agent can also call recall over MCP mid-task.

For the prompt draft the Atlas launch announcement, the agent receives:

Relevant information from the user's sources (vice):
[2026-10-20] Atlas launches December 2.
[2026-11-03] Atlas messaging: lead with offline sync; pricing is unchanged.

A prompt that needs no context adds nothing.

Relevance and contradiction judgments come from TypeSafe's Jev, which returns calibrated probabilities for typed questions. Retrieval, thresholds and decisions are deterministic code.

Features

  • Source types so far: Obsidian vaults, Markdown folders, and JSONL, which any other system can export blocks to. Further types install as plugins with vice plugin install (Sources)
  • Claude Code integration in one command: context arrives with the prompt, and the agent cannot read indexed files directly
  • MCP server for lookups mid-task, for Claude Code, Claude Desktop and other stdio clients
  • vice ask for scripts
  • Outputs: context file, command, webhook

Quickstart

Requires macOS and a TypeSafe API key.

Install:

brew install niklas-jacobsen/tap/vice-ai

Store the API key and choose sources:

vice setup

Build the index (first run downloads a 90 MB model):

vice sync

Run the service in the background and at login:

vice start

Connect Claude Code (prompt hook, read guard, MCP server):

vice connect claude-code

Full instructions, other install methods and uninstalling: Installation.

Commands

Command
vice setup Write the configuration and store the API key.
vice sync Index all sources.
vice start / stop Run or stop the background service.
vice status Configuration, sources, plugins, index and service state.
vice connect claude-code Register hooks and MCP server. --remove undoes it.
vice sources types / add / remove List source types, add or remove a source.
vice plugin install / list / remove Manage packages that add source types.
vice ask "..." Print what an agent receives for the text.
vice logs Follow the service log.
vice key set / delete Manage the API key in the Keychain.

All commands and options: Usage.

Benchmark

Synthetic dataset, held-out test split: 150 events over 1,500 blocks, jev-1.14.0.

Measure Result
Acted when no context was needed 0 of 60
Missed when context was needed 2 of 90
Context precision / recall 0.896 / 0.906
Superseded fact included 6.8%
Latency 210 ms p50, 404 ms p95
Cost per event ~4,500 input tokens, ~$0.0002

Method, ablations and limits: Evaluation.

Documentation

Privacy

Sources are indexed and searched locally. Event text and about 20 candidate blocks per event are sent to TypeSafe's API, after credential redaction. See Privacy.

License

MIT

Metadata

Release files for vice-ai 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vice-ai 0.2.0
File Size Uploaded Provenance Actions
vice_ai-0.2.0.tar.gz 94.4 kB With provenance Details for vice_ai-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vice-ai 0.2.0
File Interpreter ABI Platform Actions
vice_ai-0.2.0-py3-none-any.whl Python 3 none any Details for vice_ai-0.2.0-py3-none-any.whl

Total release size: 185.7 kB

Release files / vice_ai-0.2.0.tar.gz

Download URL vice_ai-0.2.0.tar.gz
Size 94.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7e690b272a29a409f714bf5efbdb31966346a241c9b0edaabb4d6ffc186c40b0
BLAKE2b-256 checksum
How to use checksums
64dbdc022adaa7c595f899d27e2d06a4965553c4a27907f6c3a7a5504b1381e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / vice_ai-0.2.0-py3-none-any.whl

Download URL vice_ai-0.2.0-py3-none-any.whl
Size 91.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b4edf5574bbdb9e2393376294ccd44357671eea1fe1d56b8550de9366dea9f64
BLAKE2b-256 checksum
How to use checksums
8a273d8ff9675c172066bedbd4ab501af4718605a20f952b78172355943a7805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for vice-ai 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vice_ai-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page