feat: upgrade AI tools, fix Windows ESM, add calculate/runCode/fetchP…#9
feat: upgrade AI tools, fix Windows ESM, add calculate/runCode/fetchP…#9IshekKhal wants to merge 1 commit into
Conversation
calebephrem
left a comment
There was a problem hiding this comment.
looks great, excellent work
but, we've already cleared some of the commands out in PR #8 tho, since we wanted pawgrammer to be ai only bot
we've split the files you added back into the two other bots we have (panda and quill). all coding and documentation commands go to quill; rule and macros go to panda bot.
also, the ++ prefix command is now used for panda's macro and rules command
| temperature: 0.8, | ||
| maxOutputTokens: 640, | ||
| temperature: 0.4, | ||
| maxOutputTokens: 2000, |
There was a problem hiding this comment.
i think this one is alittle bit too much
| "- `++persona list`", | ||
| "- `++persona current`", | ||
| "- `++persona who`", | ||
| "- `++persona set debugcoach`", | ||
| "- `++persona motivator`", |
There was a problem hiding this comment.
we're not using ++ as prefix from now on because this prefix is for macros on panda bot, #18
There was a problem hiding this comment.
running code, ai code suggestions, fixing errors etc is why quill is made for
There was a problem hiding this comment.
all macros/references are now handled by pandabot, #18
There was a problem hiding this comment.
github repo and user commands are also handled by quill #10
0aa8e7b to
1d1768e
Compare
1d1768e to
be5c697
Compare
What this PR does
Significantly upgrades the AI system's capability, answer quality, and tool coverage — without changing the infrastructure or increasing operating costs.
Changes
New tools
calculate— evaluates math expressions, algebra, unit conversions, trig, and stats via mathjs. The model now uses this for all numeric work instead of computing in its head.runCode— executes JavaScript in a sandboxed Node.jsvmcontext with a 3s timeout. Used for logic puzzles, algorithms, and code verification.fetchPage— fetches and parses any URL into readable text using turndown (already a project dependency). Lets the model read full pages instead of just search snippets.searchNews— dedicated news search using Exa's neural search with a 7-day recency filter. Fixes stale/hallucinated answers for "latest news" queries.Improved existing tools
get-search.js: upgraded fromfasttoneuralsearch type, results increased from 3→5, highlight length increased from 500→1500 chars.Tuned AI parameters in
askai.jstemperature: 0.8 → 0.4 (more accurate on reasoning and math)maxOutputTokens: 640 → 2000 (no more cut-off answers)stepCountIs: 5 → 15 (supports multi-step tool chains)Bug fix
handleCommands.js: fixedERR_UNSUPPORTED_ESM_URL_SCHEMEcrash on Windows by wrapping dynamic import paths withpathToFileURL().hrefTesting
Tested locally on Windows with Node.js v25. Bot connects, commands resolve, and all new tools are reachable via the AI tool chain.