How QuireKit Builds AI-Native Capabilities So Models Truly Understand Excel A developer built QuireKit Sheets, an AI-native spreadsheet editor whose AI core exposes just three entry points (document_read, document_edit, document_help) over a registry of 128 TypeBox-validated commands defined via defineWorkbookCommand from @quirekit/extension-authoring. Reads return formulas, live calculated values, spills, dependencies and validations with paginated, engine-side filtering so large workbooks stay out of context, while edits run through in-memory evaluation, staged drafts and reviewed commits, with comments tagged as untrusted to reduce prompt-injection risk. 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 https://quirekit.com/ try-sheets ยท docs: https://docs.quirekit.com/sheets https://docs.quirekit.com/sheets : 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. 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. QuireKit splits editing into in-memory evaluation, staged drafts, and reviewed commits: 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: 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. 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: 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 : 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. 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.