@askance/cli
v0.3.5
Published
Askance CLI — Tool call interception & approval management for AI coding agents
Maintainers
Readme
@askance/cli
Tool call interception & approval management for AI coding agents.
Askance hooks into your coding agent (Claude Code, Cursor, GitHub Copilot) and routes tool calls through policy rules and a cloud dashboard for approval — so agents can work while you review from any device.
Quick Start
npm install --save-dev @askance/cli
npx askance init
npx askance login
# Restart your agent sessionWhat it does
- Hook handler — intercepts tool calls before execution and evaluates them against your cloud policy rules
- MCP server — provides tools for the agent to wait for approvals and check for instructions
- CLI — sets up config files and authenticates with the Askance cloud
Commands
| Command | Description |
|---------|-------------|
| npx askance init | Set up hooks, MCP server, policy rules, and CLAUDE.md |
| npx askance login | Authenticate via browser (GitHub, Google, or Microsoft) |
| npx askance template <name> | Apply a policy template (conservative, moderate, permissive, ci-safe) |
| npx askance help | Show usage information |
Init options
npx askance init # Claude Code (default)
npx askance init --cursor # Cursor IDE
npx askance init --copilot # GitHub Copilot
npx askance init --all # All agentsPolicy rules
Policy rules are managed in the Askance dashboard and control what happens when the agent uses a tool:
- allow — tool call proceeds immediately
- gate — queued for approval in the dashboard
- deny — blocked automatically
Dashboard
Manage approvals at app.askance.app — approve, deny, or send instructions to your agent from any device.
Documentation
Full docs at askance.app/docs
License
MIT
