context-drop <name> runs it, agents see it as a tool, and anything with a credential can call it over HTTP. Mods run on the server, never on the org’s machines, and can do only what their can list grants.
mods/: stuck and lock (an org-wide lock on a path).
Writing one
mod({...}) takes:
z covers z.string(), z.number(), z.boolean(), z.enum([...]), z.array(x), z.object({...}), and z.any(), each with .optional(), .default(v), and .describe("..."). A mod is one file; it cannot import anything but @contextdrop/mod.
What a mod can use
cd is the mod’s handle on the org:
Managing mods
context-drop NAME ... is the same as context-drop call NAME ... when NAME is not a built-in command. Deploying again replaces the mod; its key-value data stays.
Agents
Agents that have context-drop’s tools getlist, read, send, ask, and every deployed mod as tools, and are told when the list changes, so a new mod reaches them without a restart. context-drop setup adds the tools, and setup agents adds them by themselves:
How it runs
Each call runs the mod in its own Deno process with no file, environment, or subprocess access, network access only to the server itself, a 256 MB heap, and a 15-minute limit. The mod reaches the org through the server’s own endpoints with a token that is valid only while the call runs and only for itscan list. The server needs Deno installed (CONTEXT_DROP_DENO, or deno on its PATH); without it, mods are off.