TokenCap 3 Adds Sandboxed Local Plugins With Strict Capability Limits
TokenCap 3 introduces a local plugin runtime with a deliberately small contract of two hooks, named tools, and one capability: reading and writing files within the plugin's own folder. Plugins are enabled per project through its package.json, and only workspace-relative file paths are accepted, while package names and remote modules are refused. Each plugin runs in its own V8 context with no access to require, process, or network, and its file I/O is confined to .tokencap/plugins/ with symlinks rejected. Hook and tool calls are capped at one second and plugin loading at 150 milliseconds, and a plugin that overruns is disabled until its file changes or the process restarts.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in