inq
A lightweight, terminal-native web UI for reviewing and annotating code, PDFs, and markdown — together with AI.
inq is a self-hosted server. You run it on a remote machine, forward the port locally, and open it in a browser. It gives you a file explorer, a scrollable viewer for code / PDFs / markdown, and an annotation surface that humans and AI agents both write into. Threads stay anchored to the line (or page) you asked about, and persist per source.
┌─────────┬────────────────────────┬────────────────┐
│ FILES │ src/inq/sandbox.py │ THREADS │
│ inq/ │ 56 class Gitignore… │ sandbox.py:56 │
│ ai.py │ 57 def __init__( │ › what does… │
│ ▸ … │ 58 … │ · It walks … │
└─────────┴────────────────────────┴────────────────┘
Press @ on any line (or with a range selected) to ask the AI. Press # to leave a note — same anchor, no model roundtrip. Responses stream in, render as markdown, and stay threaded per anchor.
Quickstart
pip install inq-review # PyPI distribution; CLI is `inq`
inq init # pick provider, paste API key, choose model
inq --port 9090 --root . # serve the current directory
On your local machine:
ssh -L 9090:localhost:9090 user@remote
Open http://localhost:9090.
Features
- Anchored threads. Every question or note pins to a line range (code/markdown) or page (PDF). Threads persist per source at
~/.config/inq/threads/. - Two annotation modes.
@asks the AI (streaming, threaded follow-ups).#saves a comment-only note (no AI call). Both render side-by-side in the panel. - Multi-format viewers. CodeMirror for source,
pdf.jsfor PDFs (cmaps + standard fonts bundled so math/ligatures render correctly),react-markdownfor.mdfiles. - Multi-source. Browse the local filesystem by default; click "Open Drive folder" in the UI to pick a Google Drive folder via OAuth.
- Three providers. Anthropic, Google (Gemini), OpenAI — all with prompt-cached file context so follow-ups are cheap.
- Markdown export. "Copy md" buttons in the UI, or
inq notes --root <dir>for the same output from the CLI.
Providers
| Provider | Models | Where to mint a key |
|---|---|---|
| Anthropic | claude-sonnet-4-6, claude-opus-4-7, … |
https://console.anthropic.com/settings/keys |
gemini-2.5-pro, gemini-2.5-flash, … |
https://aistudio.google.com/apikey | |
| OpenAI | gpt-4o, gpt-4o-mini, gpt-4.1, … |
https://platform.openai.com/api-keys |
Credential resolution order: --api-key-file flag → <PROVIDER>_API_KEY env var → ~/.config/inq/config.toml (mode 0600) → macOS keychain (service inq).
Building from source
If you want to hack on the frontend, you'll need Node 20+:
git clone https://github.com/sutra-lab/inq && cd inq
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
cd web
npm install
npm run build # produces src/inq/web/ — FastAPI mounts it at /
# or `npm run dev` for hot-reload on :5173 (backend stays on :9090)
Why
Reading code, specs, and documents deeply means asking questions inline — but most workflows force you into a chat window, losing context. Cursor and VS Code remote are heavy editor environments; Claude Code lives in the terminal, not in a scrollable viewer. inq is the small, focused tool that fits between them: zero-install on the client, browser-native, and built around asking questions in place.
See project-spec.md for the full design.
License
MIT — see LICENSE.
Metadata
Release files for inq-review 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inq_review-0.1.2.tar.gz | 2.4 MB | With provenance | Details for inq_review-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inq_review-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for inq_review-0.1.2-py3-none-any.whl |
Total release size: 4.9 MB
Release files / inq_review-0.1.2.tar.gz
| Download URL | inq_review-0.1.2.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc9447bf988ebb4240282580ca02517cc7ef77c7cdd9a8aaf6d0713e33da9aea
|
|
BLAKE2b-256 checksum How to use checksums |
4305545593a9e6eb6ea3ba1e0af79798e43dee2f94152940f82e2caeeb162748
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 14, 2026.
Transparency logRelease files / inq_review-0.1.2-py3-none-any.whl
| Download URL | inq_review-0.1.2-py3-none-any.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18d5f16a3049c62535fcb363ee5cde743175948e823e7a80a54b9dec7433db9d
|
|
BLAKE2b-256 checksum How to use checksums |
34db943b9a04f64219a7d7f4742ef8cfb6115f6efcaf17830e09751786f53a7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 14, 2026.
Transparency logSecurity for inq-review 0.1.2
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.
Attestation for inq_review-0.1.2.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 May 14, 2026.
Transparency logA 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.