You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show & tell: TokenyTab — AI-native Chrome New Tab workbench powered by pi-ai & pi-agent-core
#12666
Hi everyone! I built TokenyTab, an open-source (MIT), local-first Chrome/Edge extension that turns the New Tab page and Side Panel (Alt+K) into an AI-native personal workbench — powered by @earendil-works/pi-ai and @earendil-works/pi-agent-core.
58 built-in Website Tools (reusing your existing browser sessions): Instead of setting up MCP servers or extra API keys for every site, tools run natively in the browser across 5 modes (api, page, tab, app, builtin) — including driving Photopea via scripts for image editing, chaining iLoveIMG, Mermaid diagrams, arXiv search, and Steam price checks.
Self-learning Website Tools: When the agent completes a task on an unsupported site using 12 browser_* tools (accessibility snapshot + [ref=eN] refs in an isolated agent tab), it can save the workflow as a reusable Website Tool for next time.
Full local workbench: Drag-and-drop two-screen dashboard, prompt-to-widget generator, local folder mounting (e.g. Obsidian vaults via File System Access API), background multi-chat with mid-run steering, and full .zip backup/restore. Zero backend servers, strictly BYOK.
Two pi integration notes that worked nicely
Strict turn-alternation compatibility: Rich tool result cards and UI events are stored as CustomAgentMessages (card, event) and folded into the next user message in convertToLlm, so providers enforcing strict user/assistant alternation work smoothly.
MV3 Service Worker isolation: Because Chrome MV3 service workers disallow dynamic import() (used by pi-ai to lazy-load provider SDKs), background.js never imports pi-ai; foreground agent runs live in extension pages (newtab / sidepanel), and scheduled/background AI jobs (daily briefings, note clipping, focus recaps) are dispatched to offscreen.html.
(Note: The extension UI is currently in Simplified Chinese zh_CN, with English i18n planned. Feedback, ideas, and PRs are very welcome!)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone! I built TokenyTab, an open-source (MIT), local-first Chrome/Edge extension that turns the New Tab page and Side Panel (
Alt+K) into an AI-native personal workbench — powered by@earendil-works/pi-aiand@earendil-works/pi-agent-core.Repo: https://github.com/tokeny-ai/TokenyTab
What it does
api,page,tab,app,builtin) — including driving Photopea via scripts for image editing, chaining iLoveIMG, Mermaid diagrams, arXiv search, and Steam price checks.browser_*tools (accessibility snapshot +[ref=eN]refs in an isolated agent tab), it can save the workflow as a reusable Website Tool for next time..zipbackup/restore. Zero backend servers, strictly BYOK.Two
piintegration notes that worked nicelyCustomAgentMessages(card,event) and folded into the next user message inconvertToLlm, so providers enforcing strictuser/assistantalternation work smoothly.import()(used bypi-aito lazy-load provider SDKs),background.jsnever importspi-ai; foreground agent runs live in extension pages (newtab/sidepanel), and scheduled/background AI jobs (daily briefings, note clipping, focus recaps) are dispatched tooffscreen.html.(Note: The extension UI is currently in Simplified Chinese
zh_CN, with English i18n planned. Feedback, ideas, and PRs are very welcome!)All reactions