Metadata-Version: 2.4
Name: sensei-ai
Version: 1.4.0
Summary: Intelligent documentation agent for AI coding assistants
Author: alizain
License-Expression: MIT
Project-URL: Homepage, https://github.com/alizain/sensei
Project-URL: Repository, https://github.com/alizain/sensei
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.13
Description-Content-Type: text/markdown
Requires-Dist: alembic>=1.14.0
Requires-Dist: anthropic>=0.75.0
Requires-Dist: asyncpg>=0.30.0
Requires-Dist: crawlee[httpx]>=0.6.0
Requires-Dist: fastapi-cli[standard]>=0.0.16
Requires-Dist: fastapi[standard]>=0.122.0
Requires-Dist: fastmcp>=2.13.3
Requires-Dist: greenlet>=3.2.4
Requires-Dist: httpx>=0.28.1
Requires-Dist: langfuse>=3.10.5
Requires-Dist: logfire>=4.15.1
Requires-Dist: mcp>=1.22.0
Requires-Dist: pydantic-ai>=1.22.0
Requires-Dist: pydantic-evals[logfire]
Requires-Dist: pydantic-settings>=2.11.7
Requires-Dist: pydantic>=2.11.7
Requires-Dist: ruff>=0.14.6
Requires-Dist: sqlalchemy[asyncio]>=2.0.44
Requires-Dist: tldextract>=5.1.0
Requires-Dist: uvicorn[standard]>=0.38.0
Provides-Extra: dev
Requires-Dist: pytest>=7.4.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"

# Sensei

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue.svg)](https://www.python.org/downloads/)
[![Version](https://img.shields.io/badge/version-1.0.1-green.svg)](https://github.com/alizain/sensei)

**Intelligent documentation agent for AI coding assistants**

Sensei is a hyper-focused model specialized in providing correct, accurate, actionable, thorough, cross-validated guidance with working examples. Sensei handles all the synthesis, so you stay focused on your task with minimal context pollution.

AI assistants often hallucinate documentation or rely on outdated training data. Sensei fixes that by searching multiple authoritative sources and synthesizing accurate, up-to-date answers with source attribution.

## Install

```
claude plugins:install @alizain/sensei
```

That's it. No API keys, no configuration.

## How It Works

Sensei searches multiple sources and synthesizes the best answer:

- **Context7** - Pre-indexed official library documentation
- **Scout** - GitHub repository exploration (code search, file structure, repo maps)
- **Tavily** - AI-focused web search for docs, blogs, and discussions
- **Kura** - Cached previous answers for instant responses

Every response includes source attribution and confidence levels. Rate responses with the feedback tool to improve future results.

## Usage

Just ask your AI assistant to use Sensei when you need documentation:

> "Use Sensei to find how to set up authentication in FastAPI with OAuth2"

Sensei works best for library documentation, API references, framework guides, and "how do I do X with Y" questions.

## Prerequisites

### PostgreSQL 17+

Sensei requires PostgreSQL to be installed on your system. Install it using your package manager:

**macOS:**
```bash
brew install postgresql@17
```

**Ubuntu/Debian:**
```bash
sudo apt install postgresql-17
```

**Windows:**
Download from https://www.postgresql.org/download/windows/

**Note:** You don't need to configure PostgreSQL or create databases manually. Sensei automatically manages a local PostgreSQL instance in `~/.sensei/pgdata/` using a Unix socket (no port conflicts with system PostgreSQL).

## Development Setup

Set `SENSEI_HOME=.sensei` in your `.env` file to keep development data local to the repo instead of `~/.sensei/`.

## License

MIT

---

Built with [PydanticAI](https://github.com/pydantic/pydantic-ai) and [FastMCP](https://github.com/jlowin/fastmcp)
