When building QuireKit Classic, I had Codex compile a local Excel table tracking our docx compatibility. Reading it back, it relied on screenshots, which felt primitive and wasted tokens.

So I inspected the .xlsx skills used by Claude Code and Codex. The skill specifies reading and writing files with Python's pandas and openpyxl. Because those libraries cannot evaluate formulas or inspect layout details like truncated columns, merged headers, and charts, the workflow launches headless LibreOffice to recalculate formulas, exports the workbook to PDF, and converts pages into PNG screenshots for a vision model.

Here is QuireKit Sheets running in practice (all online tools on our site are licensed with no watermark; plug in your own model API key to try: https://quirekit.com/#try-sheets · docs: https://docs.quirekit.com/sheets ):

QuireKit Sheets AI-Native workflow: Quire AI reads workbook structure, fills collection-rate formulas, and creates charts across three worksheets with live chart bindings

1. AI-Native Lives in the Core, Not the UI Shape

While writing this post, I scrolled past a short video still calling a right-hand chat sidebar "bolted-on AI," which honestly made me laugh a little. As I wrote in an earlier post on AI-Native editors, AI-Native has never been about UI shape. Cursor's earlier IDE mode was also a chat sidebar; would anyone call that bolted-on? What makes a product fake-native is splitting the app and the AI into two disconnected worlds where the model cannot understand your business logic or data from the ground up. Real AI-Native is about core architecture and underlying tools: whether the model can genuinely understand and operate on your data to complete real tasks. As for the UI, I can freely pick a right-hand panel, a bottom chat bar, an inline selection popup, or embedded chat inside the interface. Form is always the outermost layer.

When building QuireKit's spreadsheet editor, we kept the same approach and focused on the AI-Native Excel core first. QuireKit's unified AI-Native design carries forward the exact self-describing command mechanism from Classic: built on describeCommand from @quirekit/extension-authoring, @quirekit/workbook registers 128 TypeBox-validated commands via defineWorkbookCommand and defineWorkbookWholeCommand, covering cells, formulas, sorting, filtering, conditional formatting, validation, charts, PivotTables, slicers, and print layouts. The Ribbon, Node SDK, and AI all dispatch through this same registry, so the AI core only needs three entry points (document_read, document_edit, and document_help) no matter how many spreadsheet features we add.

2. Let Models Read Real Spreadsheet Structure

A spreadsheet editor already holds the complete workbook model, calculation engine, and formatting state, which is our natural advantage for AI-Native design. In QuireKit, all spreadsheet reading flows through a single document_read interface.

The model starts with a workbook directory covering sheets, the active selection, charts, PivotTables, defined names, and structured tables. Every list is paginated to keep context bounded.

Filtering, aggregation, averages, and duplicate checks run directly inside the local workbook engine. The model passes predicates and target columns, and the engine returns exact results and matched row counts without pulling 100k rows into context.

When reading cells, the engine returns coordinates, source formulas, and live calculated values together, along with dynamic array spills, conditional formatting, hyperlinks, merged-cell ownership, formula dependencies, data validations, and comments. If a formula was accidentally stored as plain text (such as '=SUM(...)), the read view flags it explicitly. Cell comments are tagged as untrusted data to reduce prompt-injection risk.

3. Evaluate in Memory First, Then Commit After Review

QuireKit splits editing into in-memory evaluation, staged drafts, and reviewed commits:

流程图:External Script Workflow vs. QuireKit Workbook Engine

Before proposing changes, the model can test formulas on a temporary in-memory copy, inspect recalculated summary sheets, and discard the copy without touching the active workbook.

Actual writes land in an isolated staged draft anchored to the current version. The UI presents cell-level diffs and formulas before anything touches the active sheet:

QuireKit Sheets AI diff review: cross-sheet edits stage in an isolated draft with before/after diff preview and Approve/Reject controls before committing as one Ctrl+Z undo

After approval, the entire cross-sheet batch commits as a single revision and one Ctrl+Z undo step. If any validation or execution step fails, the whole draft is discarded cleanly.

Beyond sidebar chat, common actions live directly on the Ribbon: AI fill, AI split, AI formulas, AI data analysis, smart wrap, cell translation, and text-to-table extraction. Every task locks its write boundary at runtime: AI fill cannot overwrite populated cells, and translation or text extraction previews results before writing into the target range.

4. Native AI Functions and Reusable Workflows

The formula bar includes 6 native AI cell functions: ask, extract, classify, sentiment, summarize, and translate. They evaluate in batches and validate summary lengths and label constraints in code. Once approved, each cell stores both the formula and its cached result, so opening the exported .xlsx in Excel or WPS displays the reviewed values cleanly instead of #NAME?.

For recurring finance and operations work like reconciling orders against payment ledgers, key-based reconciliation can load saved rules directly from last month's .xlsx. After mapping sheets, match keys, currency, and decimal precision, users preview matches before generating results:

Key-based reconciliation dialog supporting loading saved rules from XLSX, currency grouping, and live preview

Generating the report creates linked summary and detail sheets with receivables, matched totals, variances, and unmatched entries. Each row includes clickable hyperlinks back to the source sheet for manual verification (note: generated reconciliation sheet headers currently render in Chinese):

Generated reconciliation sheets with matched totals, variances, unmatched amounts, and clickable hyperlinks back to source rows

The same reusable approach extends to saved filter workflows, refreshable merged tables, grouped duplicate highlighting, seasonal forecasts, and browser-side image/PDF page scanning into cells. Because Sheets shares QuireKit's core suite capabilities, worksheets can also embed editable flowcharts, editable mind maps, and handwritten signatures. For export, beyond native .xlsx via our in-house @quirekit/xlsx (preserving untouched package parts, opening passwords, and optional local image compression) and .csv, the browser can export paginated PDF, OFD, Word, and images directly.

5. Thanks to Univer, and Our Open-Source / Commercial Boundaries

Finally, a sincere thank you to open-source Univer. Its grid rendering and formula engine let us stand on the shoulders of giants and move faster, though QuireKit is never meant to be a thin wrapper: on top of it, we built an independent workbook model with 128 self-describing commands, our own zero-DOM TypeScript @quirekit/xlsx library, the AI-Native core with in-memory evaluation and diff review, and cross-suite export.

All of those core packages are MIT open source: @quirekit/workbook, @quirekit/xlsx, @quirekit/workbook-univer (a replaceable adapter wrapping Apache-2.0 Univer without exposing Univer or React internals), and @quirekit/workbook-collaboration.

The full bilingual workbench @quirekit/sheet-editor is a commercial component, installable via npm and free for development and internal evaluation (only unlicensed production deployments display a light watermark). Our commercial focus is enterprise integration, and we do not charge for AI usage: every QuireKit product includes the AI panel with BYO API key. For everyday users, all online tools on our site are licensed with no watermark and free to use, and we plan to package approachable consumer tools later to help reduce routine office subscription costs.

In future posts, I will cover the lower-level engineering behind the spreadsheet editor, including replaceable calculation adapters, in-house @quirekit/xlsx round-trip preservation, and 100k-row memory optimization. Let me know what snags you have run into when working with Excel and AI.