agentxl 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,9 +17,6 @@
17
17
  <img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen" alt="Node 20+" />
18
18
  </p>
19
19
 
20
- <!-- TODO: Replace with actual demo GIF showing: select local folder → ask question → trace answer to source → map into Excel -->
21
- <!-- <p align="center"><img src="https://raw.githubusercontent.com/satish860/agentxl/master/docs/demo.gif" alt="AgentXL demo" width="600" /></p> -->
22
-
23
20
  <p align="center">
24
21
  <a href="#quick-start">Quick Start</a> •
25
22
  <a href="#the-method">The Method</a> •
@@ -32,7 +29,7 @@
32
29
 
33
30
  Most spreadsheet work does not start in Excel. It starts in messy PDFs, statements, exports, agreements, and support folders.
34
31
 
35
- AgentXL is being built for that workflow:
32
+ AgentXL is built for that workflow:
36
33
 
37
34
  - **point to a local folder of source documents**
38
35
  - **ask a question or give an instruction**
@@ -41,64 +38,43 @@ AgentXL is being built for that workflow:
41
38
 
42
39
  Built for audit and diligence workflows first — useful anywhere document-heavy work ends in spreadsheets.
43
40
 
44
- ```bash
45
- npm install -g agentxl
46
- agentxl start
47
- ```
48
-
49
- No server. No cloud account with us. No classic RAG stack. You bring your own AI model.
50
-
51
41
  ---
52
42
 
53
43
  ## Quick Start
54
44
 
55
- ## Windows Quick Start (no coding required)
56
-
57
- 1. Download the latest `.zip` from [GitHub Releases](https://github.com/satish860/agentxl/releases)
58
- 2. Extract to a folder (e.g. `Desktop\AgentXL`)
59
- 3. Double-click **AgentXL.vbs**
60
- 4. If sign-in is needed, run **AgentXL Login.vbs** first
61
- 5. Excel opens with AgentXL in the **Home** ribbon
62
-
63
- The Windows release is self-contained — bundled Node.js, no system install required.
64
-
65
- Alternatively, install the add-in directly from Excel (see [Install the Excel add-in](#5-add-to-excel) below).
66
-
67
- ### 1. Install
68
-
69
- **Option A — npm**
45
+ ### 3 commands. That's it.
70
46
 
71
47
  ```bash
72
48
  npm install -g agentxl
49
+ agentxl install
50
+ agentxl start
73
51
  ```
74
52
 
75
- This is the simplest cross-platform install path.
53
+ - `npm install -g agentxl` — installs AgentXL globally
54
+ - `agentxl install` — sets up HTTPS certificates and registers the add-in with Excel (one-time)
55
+ - `agentxl start` — starts the server and asks you to sign in with your AI provider
76
56
 
77
- **Option B Windows release (no Node.js needed)**
57
+ Then open Excel **AgentXL** appears on the **Home** ribbon.
78
58
 
79
- 1. Download the latest `.zip` from [GitHub Releases](https://github.com/satish860/agentxl/releases)
80
- 2. Extract to a folder
81
- 3. Double-click **AgentXL.vbs**
59
+ > No Trust Center. No sideloading. No manifest files. Just `agentxl start`.
82
60
 
83
- The release ZIP is self-contained: it bundles its own Node.js runtime, the built app, and production dependencies. No separate Node.js installation required.
61
+ ---
84
62
 
85
- ### 2. Start
63
+ ### Windows — no coding required
86
64
 
87
- ```bash
88
- agentxl start
89
- ```
65
+ 1. Download the latest `.zip` from [GitHub Releases](https://github.com/satish860/agentxl/releases)
66
+ 2. Extract to a folder (e.g. `Desktop\AgentXL`)
67
+ 3. Double-click **AgentXL.vbs**
68
+ 4. If sign-in is needed, run **AgentXL Login.vbs** first
69
+ 5. Excel opens with AgentXL in the **Home** ribbon
90
70
 
91
- The CLI walks you through setup:
71
+ The release ZIP is self-contained — bundled Node.js, no system install required.
92
72
 
93
- ```
94
- ✅ Auth ready
95
- ✅ HTTPS certificate ready
96
- ✅ Server running at https://localhost:3001
97
- ```
73
+ ---
98
74
 
99
- ### 3. Choose your AI provider
75
+ ### AI provider
100
76
 
101
- On first run, the CLI asks how to connect:
77
+ On first run, `agentxl start` asks how to connect:
102
78
 
103
79
  | If you have... | Pick | Why |
104
80
  |---------------|------|-----|
@@ -110,62 +86,27 @@ On first run, the CLI asks how to connect:
110
86
 
111
87
  > **Already use Pi?** AgentXL shares credentials from `~/.pi/agent/auth.json`. No extra login needed.
112
88
 
113
- ### 4. Verify in browser
114
-
115
- Open **https://localhost:3001/taskpane/** in your browser.
116
-
117
- You should see the AgentXL UI. This confirms the server, HTTPS, and UI all work before you touch Excel.
118
-
119
- ### 5. Add to Excel
120
-
121
- Choose one method:
122
-
123
- **Option A — Office Store (simplest)**
124
- 1. Open Excel → **Insert** → **Get Add-ins**
125
- 2. Search **"AgentXL"** → click **Add**
126
-
127
- > The Office Store listing is pending review. Use Option B or C in the meantime.
128
-
129
- **Option B — Upload hosted manifest (no Trust Center needed)**
130
- 1. Download [`manifest.xml`](https://satish860.github.io/agentxl/manifest/manifest.xml)
131
- 2. Open Excel → **Insert** → **Get Add-ins** → **My Add-ins** → **Upload My Add-in**
132
- 3. Browse to the downloaded `manifest.xml` → **Upload**
133
-
134
- **Option C — Shared folder catalog (persistent, Windows)**
135
- 1. **Excel** → **File** → **Options** → **Trust Center** → **Trust Center Settings**
136
- 2. Click **Trusted Add-in Catalogs**
137
- 3. Add the `manifest` folder path from your release ZIP or the path printed by `agentxl start`
138
- 4. Check **Show in Menu** → **OK** → **OK**
139
- 5. **Restart Excel**
140
- 6. **Insert** → **My Add-ins** → **SHARED FOLDER** → **AgentXL** → **Add**
141
-
142
- **Option D — Windows release auto-setup**
143
- - Double-click **AgentXL.vbs** from the extracted release folder
144
- - It handles certificate trust, add-in registration, and opens Excel automatically
145
-
146
- ### 6. Start from a document folder
147
-
148
- Open Excel, launch **AgentXL**, and the first-run taskpane now guides the user through:
149
-
150
- 1. **Connect** — sign in with your model provider if needed
151
- 2. **Folder** — choose the local folder with supporting documents
152
- 3. **Ask** — send a grounded question about that folder
89
+ ---
153
90
 
154
- From there, the working flow is:
91
+ ### Use it
155
92
 
156
- 1. select the workbook you want to populate
157
- 2. point AgentXL at a local folder of supporting files
158
- 3. ask a grounded question
159
- 4. review the answer and source traceability
160
- 5. map the output into Excel
93
+ 1. Open Excel click **AgentXL** on the Home ribbon
94
+ 2. Link a **local folder** containing your source documents
95
+ 3. Ask a question — the agent searches the folder, reads the files, returns grounded answers
161
96
 
162
97
  Example prompts:
163
98
 
99
+ - **"Extract the relevant values from the source documents and map them into Excel."**
164
100
  - **"Compare this trial balance folder to the lead sheet and flag mismatches."**
165
- - **"Extract the cash balance from the bank statement folder and map it to the cash workpaper."**
166
101
  - **"Pull lease terms from these agreements into the lease schedule."**
167
102
  - **"Show me which workbook cells came from which source files."**
168
103
 
104
+ ### Don't see AgentXL in the ribbon?
105
+
106
+ After `agentxl start` says "✅ Add-in registered with Excel", restart Excel and check:
107
+ - **Home** ribbon → look for AgentXL
108
+ - Or: **Insert** → **My Add-ins** → **SHARED FOLDER** → **AgentXL** → **Add**
109
+
169
110
  ---
170
111
 
171
112
  ## What AgentXL Is
@@ -197,7 +138,7 @@ This makes it a fit for:
197
138
  ## What AgentXL Is Not
198
139
 
199
140
  - **Not classic RAG.** No need to start with embeddings, vector DBs, and a retrieval stack.
200
- - **Not generic spreadsheet chat.** The primary action is not ask Excel a question.”
141
+ - **Not generic spreadsheet chat.** The primary action is not "ask Excel a question."
201
142
  - **Not automation theater.** The goal is reviewable outputs with sources, not flashy demos.
202
143
  - **Not a 36-tool architecture diagram.** One parser, one model, direct file search, and an eval loop beat unnecessary layers.
203
144
 
@@ -205,117 +146,23 @@ This makes it a fit for:
205
146
 
206
147
  ## The Method
207
148
 
208
- AgentXL follows a simple method inspired by real document-processing systems:
209
-
210
- 1. **Parse the files**
211
- - PDFs, Excel files, CSVs, statements, agreements, support docs
212
- 2. **Search the folder agentically**
213
- - inspect filenames, structure, metadata, and contents
214
- - read the right files instead of pre-building a giant stack
215
- 3. **Ask the model to extract or answer**
216
- - one grounded task at a time
217
- 4. **Map the result into Excel**
218
- - workpapers, schedules, exception lists, summaries
219
- 5. **Measure whether it was right**
220
- - evals, failure analysis, correction loops
221
- 6. **Improve the system**
222
- - fix repeated failure patterns, then measure again
149
+ AgentXL follows a simple method:
150
+
151
+ 1. **Parse the files** — PDFs, Excel files, CSVs, statements, agreements
152
+ 2. **Search the folder agentically** — inspect filenames, structure, metadata, and contents
153
+ 3. **Ask the model to extract or answer** — one grounded task at a time
154
+ 4. **Map the result into Excel** — workpapers, schedules, exception lists
155
+ 5. **Measure whether it was right** evals, failure analysis, correction loops
156
+ 6. **Improve the system** fix repeated failure patterns, then measure again
223
157
 
224
158
  ### The core loop
225
159
 
226
160
  **Parse → Search → Ask → Evaluate → Fix → Repeat**
227
161
 
228
- That is the product.
229
-
230
- ---
231
-
232
- ## Core Workflow
233
-
234
- AgentXL is designed around a folder-first workflow:
235
-
236
- 1. **Link a local folder** — point AgentXL at a folder of source documents (PDFs, CSVs, Excel files, text)
237
- 2. **AgentXL scans the folder** — builds an inventory of supported files, shows counts in the UI
238
- 3. **Ask a question or give an instruction** — the agent knows what files are available
239
- 4. **The agent searches and reads the relevant files** — using `read`, `grep`, `find`, `ls` tools (visible as live badges in the UI)
240
- 5. **Review the grounded result** — answers cite the source file and content
241
- 6. **Write the output into Excel** — as a workpaper, schedule, or exception list *(coming next)*
242
-
243
- The agent's working directory is set to your linked folder. When you say "list the files," it lists *your documents*, not the AgentXL project.
244
-
245
- ---
246
-
247
- ## Current Build Status
248
-
249
- | Area | Status |
250
- |------|--------|
251
- | Excel taskpane shell | ✅ Done |
252
- | Local server + auth flow | ✅ Done |
253
- | Model connection | ✅ Done |
254
- | Workbook identity resolution | ✅ Done |
255
- | Folder linking + native picker | ✅ Done |
256
- | Folder scanning + file inventory | ✅ Done |
257
- | Folder-aware agent (cwd, context) | ✅ Done |
258
- | Agentic file search (read, grep, find, ls) | ✅ Done |
259
- | Tool call visibility in UI | ✅ Done |
260
- | Source traceability into Excel | 🔜 Next |
261
- | Excel write tools | Planned |
262
- | Eval-driven extraction improvement loop | Planned |
263
-
264
- ---
265
-
266
- ## What It Does
267
-
268
- The target behavior looks like this:
269
-
270
- | You ask | AgentXL does |
271
- |---------|---------------|
272
- | "Extract the ending cash balance from the bank statement folder and map it to the cash workpaper" | Finds the relevant statement, extracts the value, and writes it into Excel |
273
- | "Compare this trial balance export folder to the lead sheet and flag mismatches" | Reconciles source documents against the workbook and surfaces exceptions |
274
- | "Pull lease start date, end date, and monthly payment from these agreements into the lease schedule" | Reads the agreements and maps structured fields into the schedule |
275
- | "Show me which cells in this sheet came from which source files" | Returns traceability for mapped workbook values |
276
- | "Create a support summary for this balance from the source folder" | Searches the folder, answers from evidence, and structures the output for review |
277
- | "Format this output as a clean review-ready workpaper" | Applies spreadsheet formatting after the data is mapped |
278
-
279
- ### Underlying Excel Tools
280
-
281
- These are implementation tools, not the product story:
282
-
283
- | Tool | What It Does |
284
- |------|-------------|
285
- | `excel_read_range` | Read data, values, formulas from any range |
286
- | `excel_write_range` | Write values or formulas to ranges |
287
- | `excel_create_table` | Convert ranges to structured Excel tables |
288
- | `excel_create_chart` | Create charts (column, bar, line, pie, scatter, area, doughnut) |
289
- | `excel_get_workbook_info` | Get workbook metadata — sheets, tables, named ranges |
290
- | `excel_format_range` | Apply formatting — fonts, colors, borders, number formats |
291
- | `excel_insert_rows` | Insert rows into worksheets |
292
- | `excel_delete_rows` | Delete rows from worksheets |
293
- | `excel_add_worksheet` | Add new worksheets |
294
- | `excel_run_formula` | Evaluate formulas without writing to cells |
295
-
296
162
  ---
297
163
 
298
164
  ## How It Works
299
165
 
300
- ```text
301
- agentxl start
302
- → Local HTTPS server on localhost:3001
303
- → Serves taskpane UI at /taskpane
304
- → Connects to your chosen model
305
-
306
- You point AgentXL at a local folder
307
- → PDFs, statements, exports, agreements, support files
308
- → Agent searches the folder
309
- → Agent reads the relevant documents
310
- → You ask a question or request a mapping
311
-
312
- Excel loads the taskpane
313
- → Agent returns a grounded result with source traceability
314
- → Taskpane writes the output into Excel via Office.js
315
- ```
316
-
317
- ### Architecture
318
-
319
166
  ```text
320
167
  ┌─────────────────────────────────────────────────────────────┐
321
168
  │ YOUR MACHINE │
@@ -326,7 +173,7 @@ Excel loads the taskpane
326
173
  │ ▼ │
327
174
  │ ┌─────────────────┐ ┌───────────────────────────┐ │
328
175
  │ │ Excel │ HTTPS │ AgentXL Server │ │
329
- │ │ │◄──────►│ localhost:3001 │ │
176
+ │ │ │◄──────►│ localhost:3001 │ │
330
177
  │ │ Taskpane UI │ │ │ │
331
178
  │ │ Office.js │ │ agentic file search │ │
332
179
  │ │ │ │ selective file reading │ │
@@ -338,32 +185,17 @@ Excel loads the taskpane
338
185
  │ model API
339
186
 
340
187
  ┌──────────────────────────┐
341
- │ Anthropic / OpenAI /
342
- │ OpenRouter / Azure /
343
- │ Google / Copilot
188
+ │ Anthropic / OpenAI /
189
+ │ OpenRouter / Azure /
190
+ │ Google / Copilot
344
191
  └──────────────────────────┘
345
192
  ```
346
193
 
347
- ### Why no classic RAG?
348
-
349
- Because most teams do not need a 9-layer retrieval stack to answer grounded questions from a folder of documents.
350
-
351
- AgentXL starts simpler:
352
-
353
- - local files
354
- - direct parsing
355
- - agentic search
356
- - selective reading
357
- - one model
358
- - explicit evals
359
-
360
- If scale later demands heavier infrastructure, add it later. Measure first.
361
-
362
194
  ---
363
195
 
364
196
  ## Supported Providers
365
197
 
366
- ### Subscriptions (sign in with your browser — no API key)
198
+ ### Subscriptions (sign in with your browser)
367
199
 
368
200
  | Provider | What You Need | Best for |
369
201
  |----------|---------------|----------|
@@ -389,94 +221,61 @@ If scale later demands heavier infrastructure, add it later. Measure first.
389
221
  ## Privacy & Security
390
222
 
391
223
  - **Local-only server.** Binds to `127.0.0.1` — not accessible from your network.
392
- - **Folder-first workflow.** You start from a local document folder on your machine.
393
224
  - **No telemetry.** No analytics. No data collection. No phone-home.
394
225
  - **No account required.** No sign-up with us. Ever.
395
226
  - **Your API key stays local.** Stored in `~/.pi/agent/auth.json` on your machine.
396
227
  - **Open source.** Read every line of code. MIT license.
397
228
 
398
- When you ask the agent about your documents or workbook, the relevant content is sent to your chosen model provider as part of the prompt. This is the only external communication.
229
+ When you ask the agent about your documents, the relevant content is sent to your chosen model provider as part of the prompt. This is the only external communication.
399
230
 
400
231
  ---
401
232
 
402
- ## Troubleshooting
233
+ ## CLI Reference
234
+
235
+ ```text
236
+ agentxl start [--port 3001] [--verbose] Start the server
237
+ agentxl install [--open] Register add-in with Excel (one-time)
238
+ agentxl login Set up or change authentication
239
+ agentxl --version Print version
240
+ agentxl --help Show help
241
+ ```
242
+
243
+ ---
403
244
 
404
- ### Taskpane is blank or won't load in Excel
245
+ ## Troubleshooting
405
246
 
406
- **Most common first-run issue.** Usually means Excel doesn't trust the HTTPS certificate.
247
+ ### Taskpane is blank or won't load
407
248
 
408
249
  1. **Is the server running?** Check for `✅ Server running` in your terminal.
409
250
  2. **Does it work in the browser?** Open https://localhost:3001/taskpane/
410
- - UI loads server and cert are fine. Issue is Excel setup.
411
- - ❌ Browser warns about certificate → cert isn't trusted yet.
412
- 3. **Certificate not trusted?**
413
- ```bash
414
- npx office-addin-dev-certs install
415
- ```
416
- Then restart Excel.
417
- 4. **Browser works but not Excel?** Excel uses the OS trust store. Make sure the certificate authority is installed system-wide.
251
+ 3. **Certificate not trusted?** Run `agentxl install` to re-trust certs, or: `npx office-addin-dev-certs install`
418
252
 
419
253
  ### Add-in doesn't appear in Excel
420
254
 
421
- 1. Is the server running?
422
- 2. Did you try the automated Windows onboarding path first?
423
- - Start Menu: `Launch AgentXL onboarding`
424
- - zip build: `Launch AgentXL Onboarding.cmd`
425
- 3. If automatic setup failed, did you add the catalog path in Trust Center → Trusted Add-in Catalogs?
426
- 4. Did you check **Show in Menu**?
427
- 5. Did you restart Excel?
428
- 6. Look in **Insert → My Add-ins → SHARED FOLDER**
255
+ `agentxl start` registers the add-in automatically on first run. If it still doesn't show:
256
+ 1. Restart Excel
257
+ 2. Check **Insert → My Add-ins SHARED FOLDER AgentXL**
258
+ 3. Or run `agentxl install` manually to re-register
429
259
 
430
- ### Port 3001 is already in use
260
+ ### Port 3001 already in use
431
261
 
432
262
  ```bash
433
263
  agentxl start --port 3002
434
264
  ```
435
265
 
436
- > If you change the port, update `manifest/manifest.xml` to match.
437
-
438
- ### Building the Windows release
439
-
440
- ```bash
441
- npm run prepare:release:win
442
- ```
443
-
444
- This creates a self-contained ZIP in `release/windows/dist/` containing:
445
- - Portable Node.js runtime (no system install needed)
446
- - Built AgentXL app + production dependencies
447
- - Manifest for Excel sideloading
448
- - VBScript launchers (double-click to start)
449
-
450
- GitHub Actions builds and publishes this automatically on tagged releases.
451
-
452
266
  ### "No model available"
453
267
 
454
268
  ```bash
455
269
  agentxl login
456
270
  ```
457
271
 
458
- ### Taskpane says "Waiting for credentials…"
459
-
460
- Run `agentxl login` in another terminal. The taskpane detects the change automatically.
461
-
462
- ### "Server disconnected — reconnecting…"
463
-
464
- Restart the server:
272
+ ### Building the Windows release
465
273
 
466
274
  ```bash
467
- agentxl start
275
+ npm run prepare:release:win
468
276
  ```
469
277
 
470
- ---
471
-
472
- ## CLI Reference
473
-
474
- ```text
475
- agentxl start [--port 3001] [--verbose] Start the server
476
- agentxl login Set up or change authentication
477
- agentxl --version Print version
478
- agentxl --help Show help
479
- ```
278
+ Creates a self-contained ZIP in `release/windows/dist/` — portable Node.js + app + launchers. GitHub Actions builds this automatically on tagged releases.
480
279
 
481
280
  ---
482
281
 
@@ -486,8 +285,6 @@ agentxl --help Show help
486
285
  - **Microsoft Excel** desktop (Windows or Mac)
487
286
  - **An AI provider** — subscription or API key
488
287
 
489
- > Excel for the web is not supported (Office add-in limitation).
490
-
491
288
  ---
492
289
 
493
290
  ## Development
@@ -497,35 +294,10 @@ git clone https://github.com/satish860/agentxl.git
497
294
  cd agentxl
498
295
  npm install
499
296
  npm run build
500
- npm test # 101 unit/integration tests
501
- npm run test:e2e # 12 end-to-end tests (Playwright)
297
+ npm test
502
298
  node bin/agentxl.js start
503
299
  ```
504
300
 
505
- ### Project Structure
506
-
507
- ```text
508
- bin/agentxl.js CLI entry point
509
- bin/agentxl-folder-picker.exe Native folder picker (Windows)
510
- src/server/index.ts HTTPS server + API endpoints
511
- src/server/certs.ts Certificate generation
512
- src/server/workbook-identity.ts Workbook identity resolution
513
- src/server/workbook-folder-store.ts Workbook → folder mapping (JSON)
514
- src/server/folder-scanner.ts Recursive file scanner + inventory
515
- src/server/folder-picker.ts Native/PowerShell folder picker
516
- src/agent/session.ts Pi SDK agent session (cwd-aware)
517
- src/agent/models.ts Model selection
518
- taskpane/src/app.tsx Taskpane UI orchestrator
519
- taskpane/src/hooks/ useAgentStatus, useChatStream,
520
- useWorkbookIdentity, useFolderLink
521
- taskpane/src/components/ WelcomeScreen, FolderLinkScreen,
522
- MessageBubble (tool call badges),
523
- ChatInput, ThinkingBlock
524
- taskpane/src/lib/ API client, stream handler, types
525
- manifest/manifest.xml Office add-in manifest
526
- tests/ 105 tests (unit + integration + e2e)
527
- ```
528
-
529
301
  ---
530
302
 
531
303
  ## Roadmap
@@ -539,24 +311,6 @@ tests/ 105 tests (unit + integration + e2e)
539
311
 
540
312
  ---
541
313
 
542
- ## Contributing
543
-
544
- Contributions welcome. MIT license.
545
-
546
- ```bash
547
- npm test # 101 tests should pass
548
- npm run test:e2e # 12 e2e tests should pass
549
- ```
550
-
551
- If you contribute, keep the philosophy simple:
552
-
553
- - fewer layers
554
- - grounded outputs
555
- - explicit traceability
556
- - evals before infrastructure
557
-
558
- ---
559
-
560
314
  ## License
561
315
 
562
316
  MIT — [DeltaXY](https://deltaxy.ai)