Skip to main content

Aegis Docs — core (MVP)

A service that returns Claude a pointer + snippet for the libraries in a project's stack. Corpus traversal happens locally (0 Claude tokens). Ships as a pip package with an aegis CLI.

Layers (degrade gracefully)

  1. BM25 (SQLite FTS5, built-in) — always on.
  2. Vector (fastembed) — install with [semantic]; results ranked by cosine.
  3. LLM judge (Ollama) — OFF by default; needs a 7b+ model. Small models grade unreliably; rely on cosine + the calling agent.

Install (macOS / Windows / Linux)

docker pull lebovskiis/aegis:latest                    # multi-arch: amd64 + arm64
docker run -p 127.0.0.1:8080:8080 lebovskiis/aegis:latest

The same image runs on Intel/AMD and Apple Silicon/ARM.

pip (any OS with Python 3.10+)

python3 -m venv .venv
. .venv/bin/activate                  # Windows: .venv\Scripts\activate
pip install '.[semantic]'             # service + embeddings (recommended)
# pip install .                       # BM25-only

Run (CLI)

aegis ingest "fastapi==0.115" --vault ./vault    # fetch + index docs
aegis serve --vault ./vault                       # start service (no LLM)

aegis locate "how do I stream a response" --lib fastapi   # query it
aegis health
aegis libs
aegis add fastapi --version 0.115                 # index a lib on demand (connected mode)

LLM judge toggle (--llm true|false, default false)

# enable later, pointing at a SEPARATE, capped LLM container:
aegis serve --llm true --llm-host http://localhost:11434 \
            --llm-model qwen2.5:7b-instruct --threads 2

--threads caps model CPU; the model also unloads after each call (frees RAM).

HTTP API (what the agent calls)

GET  /health   GET /libs
POST /locate  {query, lib?, version?}  -> {found, results:[{anchor,file,lines,snippet,score,grade}]}
POST /add     {lib, version?}          (connected mode only)

Docker

docker compose up --build        # capped (mem 1g, cpu 1), loopback only, no LLM

The image bakes docs + the embedding model so the container runs offline.

For the project's CLAUDE.md

See claude-snippet.md.

Metadata

Release files for aegis-docs 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 aegis-docs 0.2.0
File Size Uploaded Provenance Actions
aegis_docs-0.2.0.tar.gz 28.5 kB Without provenance Details for aegis_docs-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aegis-docs 0.2.0
File Interpreter ABI Platform Actions
aegis_docs-0.2.0-py3-none-any.whl Python 3 none any Details for aegis_docs-0.2.0-py3-none-any.whl

Total release size: 59.2 kB

Release files / aegis_docs-0.2.0.tar.gz

Download URL aegis_docs-0.2.0.tar.gz
Size 28.5 kB
Tags Source
SHA-256 checksum
How to use checksums
976fef00245c8afa3d7bf3f4855221f8c9a963b4e0481a1bedeb35137433cfa6
BLAKE2b-256 checksum
How to use checksums
b326160a0afcf2b5dec2598e6cbf1088ccf7dc6d9cd5df53e6db8e4a7322d400
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

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

Download URL aegis_docs-0.2.0-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
773c2a1ff7e84d205e311b16385aef5511502cc575f29944a34a5df6d33088f5
BLAKE2b-256 checksum
How to use checksums
73e145a837441b607314539374245336568599d252413ffb433cbbe135d70d94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for aegis-docs 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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