declick 0.4.0
declick setup [--dry-run] [--no-adopt] [--no-rules] [--no-hook] [--no-path] [--keep-adapters]: wires declick into whatever agent is on the machine in one call. Puts~/.declick/binon PATH, builds an adapter for every MCP server it finds in.claude.json,.mcp.json, installed Claude Code plugins and Codex'sconfig.toml(a server needing a bearer it does not have is skipped and named, never dropped silently), adds a<!-- declick:start -->/<!-- declick:end -->rules block toCLAUDE.mdorAGENTS.mdtelling the agent to reach for a declick adapter before an MCP call, WebFetch, a browser read or raw curl, and (Claude Code only) installs a PreToolUse hook that nudges the model once per adapter per session. Running it twice is a no-op for the rules block and the hook and rebuilds no adapter already adapted.declick setup --revert: undoes exactly what setup did, from a byte-exact snapshot taken under~/.declick/setup/<timestamp>/before the first write. A file untouched since setup is restored byte for byte, or deleted if setup created it; a file edited since keeps the edits and loses only the rules block or the hook entry. The snapshot also carries a standalonerevert.mjs:node ~/.declick/setup/<timestamp>/revert.mjsrestores files with no dependency on the package, so it still works afternpm rm -g declick.declick uninstall [--yes] [--keep-adapters]: runs a revert if one is available, deletes~/.declickentirely, and prints thenpm rm -g declickline. Refuses without--yes, no interactive prompt.declick doctorreportsintegration: whether setup has run, whether a revert snapshot is available, which clients have the rules block and the hook, and how many discovered MCP servers are adapted. A~/.claudewith no rules block gets a warning pointing atdeclick setup, not a blocking failure.- The Claude Code hook ships in the package (
src/hooks/declick-nudge.cjs) and is copied to~/.declick/hooks/declick-nudge.cjsby setup; it maps an MCP tool call to its declick adapter through~/.declick/hooks/servers.jsonand never blocks a tool call. - New env:
DECLICK_CLIENT_HOMEnames the directory the agent clients live under (defaultos.homedir()), so every path setup touches can be redirected.DECLICK_NUDGE_OFF=1silences the hook.DECLICK_PATH_PROFILEis a test-only override that sends the shell-profile write to a named file instead of the real one.
Install: npm i -g declick@0.4.0 · npm · declick.dev