Commit d814d5d
feat: 20 new features — themes, plugins, TF-IDF search, vision, history + more
Features added:
1. Persistent input history (~/.localcode/history.json, 200 entries)
2. Spinner animation — braille spinner during streaming/tool calls
3. Word wrapping — all message text wraps at terminal width
4. Theme system — dark/nord/monokai/light (/theme command)
5. Template system — /template add/use/list/delete (~/.localcode/templates.json)
6. Alias system — /alias name command (~/.localcode/aliases.json)
7. /explain — stream explanation of a file or last code snippet
8. /test — auto-detect jest/vitest/pytest/cargo/go test and run it
9. /share — export conversation as self-contained HTML page
10. Session history browser — /history [n], archives in ~/.localcode/sessions/
11. /git panel — status/log/stash/branch/passthrough
12. /watch — fs.watch file, re-run last message on change (/watch stop)
13. Auto-context on startup — inject git log+status if no .nyx.md found
14. Multi-file diff summary — shows +/- counts after agent modifies files
15. Collapsible tool output — truncates long output with [+N chars] indicator
16. Syntax highlighting — keywords/strings/numbers/comments per language
17. Plugin system — load ~/.localcode/plugins/*.js at startup (/plugins)
18. /image — vision input (base64), works with Claude/OpenAI/Ollama llava
19. Streaming token counter — live +N▌ in header during generation
20. TF-IDF semantic search — /index builds index, /search uses it
New files: src/plugins/loader.ts, src/search/tfidf.ts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d9c5dfa commit d814d5d
9 files changed
Lines changed: 1624 additions & 263 deletions
File tree
- src
- core
- plugins
- providers
- search
- sessions
- ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
54 | 77 | | |
55 | 78 | | |
56 | 79 | | |
| |||
67 | 90 | | |
68 | 91 | | |
69 | 92 | | |
| 93 | + | |
70 | 94 | | |
71 | 95 | | |
72 | 96 | | |
| |||
270 | 294 | | |
271 | 295 | | |
272 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
273 | 306 | | |
274 | 307 | | |
275 | 308 | | |
| |||
333 | 366 | | |
334 | 367 | | |
335 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
336 | 387 | | |
337 | 388 | | |
338 | 389 | | |
| |||
387 | 438 | | |
388 | 439 | | |
389 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
390 | 468 | | |
391 | 469 | | |
392 | 470 | | |
| |||
432 | 510 | | |
433 | 511 | | |
434 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
435 | 567 | | |
436 | 568 | | |
437 | 569 | | |
| |||
483 | 615 | | |
484 | 616 | | |
485 | 617 | | |
486 | | - | |
487 | | - | |
| 618 | + | |
| 619 | + | |
488 | 620 | | |
489 | 621 | | |
490 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
165 | 166 | | |
166 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
| |||
257 | 264 | | |
258 | 265 | | |
259 | 266 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
264 | 282 | | |
265 | 283 | | |
266 | 284 | | |
| |||
396 | 414 | | |
397 | 415 | | |
398 | 416 | | |
399 | | - | |
| 417 | + | |
400 | 418 | | |
401 | 419 | | |
402 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
403 | 433 | | |
404 | 434 | | |
405 | 435 | | |
| |||
0 commit comments