Skip to content

AI Assistant and AI Clients

Aziz Nadirov edited this page Nov 23, 2026 · 2 revisions

AI Assistant and AI Clients

ParVu works with AI in two ways:

  • the built-in assistant: a panel in ParVu that uses your own API key, or a model running on your computer;
  • AI clients such as Claude Desktop and Claude Code, which can work with the tables in your ParVu window using your own subscription.

Both follow the same rules. The AI can read your open tables freely: their columns, sample rows, statistics, and the results of read-only SQL queries. Any change it wants to make appears as a card in ParVu. The card shows the change, the AI's reason, the row count before and after, a preview of the result and the SQL (or the formula). Nothing changes until you click Apply, and every applied change is an ordinary step that Ctrl+Z undoes. Opening and saving files always stays with you.

The built-in assistant

  1. AI → AI providers… → choose a provider → Add → paste your API key → Save and test.

    • Anthropic (Claude): suggests claude-opus-5-5, claude-sonnet-5-5 (cheaper) and claude-haiku-5-5 (cheapest).
    • OpenAI, Gemini, OpenRouter, Groq: enter a model id your account offers.
    • Ollama or LM Studio: start the local server and enter a model you've downloaded. No key is needed and nothing leaves your computer. Small local models may not handle tools well.

    AI providers: a Gemini provider whose key is read from an environment variable

  2. AI → AI assistant (Ctrl+Shift+A) opens the panel next to the table.

  3. Ask, for example:

    • "Which region sold the most last quarter?"
    • "Are there duplicate customer ids?"
    • "Group by month and sum revenue."
    • "Add a column with each order's share of total revenue." This becomes a live formula column.

The assistant answering a question about a sales table, with the queries it ran

Enter sends, Shift+Enter starts a new line, Stop cancels. Each tab has its own conversation; ↺ starts a new one. The panel shows the tokens used and, for Claude models, an estimate of the cost.

Queries and SQL in answers

Each query the assistant runs is listed above its answer. Click one to see its SQL and result, with buttons to Copy SQL, Open in new tab, Edit in SQL editor and Copy result. SQL code blocks in an answer have Copy SQL, Open in new tab and Edit in SQL editor.

An expanded query step: the SQL, its result and the action buttons An answer with an SQL code block and its buttons

Open in new tab opens the result as a tab of its own, ai_result, made from the table the assistant queried:

The ai_result tab opened from a query step

What is sent to the provider: your question, the active table's name, columns and first three rows, the names of the other open tabs, and the results of the queries the assistant runs. Whole files are never sent. API keys are kept in your system's keychain.

Claude Desktop, Claude Code and other AI clients

AI → Connect an AI client lets an MCP client (Claude Desktop, Claude Code, VS Code…) work with the tables open in your window, using your own Claude subscription:

  1. Tick Allow AI clients to connect.
  2. Add ParVu to the client once. The dialog shows the exact command and configuration, with Copy buttons. For Claude Code it is:
    claude mcp add -s user parvu-app -- parvu mcp --attach
    For Claude Desktop, paste the snippet into claude_desktop_config.json (Settings → Developer → Edit Config) and restart it.
  3. Keep ParVu open and ask the client about "my sales tab". With several windows open, the client works with the one you used last.

When the client wants to change a table, ParVu shows a card with the change, the client's reason, the row counts and a preview:

An approval card: Claude Code wants to filter the sales table

The client doesn't start ParVu when it starts; ParVu opens the first time the client uses one of its tools.

Tools the AI can use

Tool What it does
list_tables, describe_table, sample_rows see the open tables, their columns and rows
column_stats, value_counts statistics and the most frequent values of a column
query one read-only DuckDB SELECT over the open tables
apply_operation filter, sort, group by, pivot, add a column, fill missing values… (approval card)
set_formula add or change a live formula column (approval card)
undo undo the last step (approval card)

Queries can't change anything or read files on your disk; ParVu refuses file-reading functions such as read_csv.

Without a window

parvu mcp --allow-dir ~/data runs ParVu as a standalone MCP server with its own tables, for clients that should open files themselves. Only the folders you allow can be opened, queries are read-only, and nothing is written unless you add --allow-write. See MCP.md for every option.

Clone this wiki locally