
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@nanomind/router
Advanced tools
Intent classification and command mapping for CLI security tools. Classifies natural language into 17 intent types including 6 security scanning intents.
npm install @nanomind/router
import { classifyIntent, mapToCommand, isScanIntent } from '@nanomind/router';
const result = classifyIntent('scan this project for vulnerabilities');
// { intent: 'SCAN', confidence: 0.85, entities: {} }
const cmd = mapToCommand(result, 'hma');
// { command: 'hma secure', args: ['.'], description: 'Run security scan' }
// Check if an intent is a security scan (needs full model inference)
isScanIntent('SCAN_SKILL'); // true
isScanIntent('EXPLAIN'); // false
| Intent | Example | Maps To |
|---|---|---|
| SCAN | "scan this project" | hma secure |
| FIX | "fix the credential issue" | hma secure --fix |
| EXPLAIN | "what does CRED-001 mean" | hma explain CRED-001 |
| TRUST_QUERY | "what's the trust level" | hma trust |
| ATC_STATUS | "why is my agent level 2" | opena2a identity status |
| ATTEST | "add trust to my CI" | opena2a identity attest |
| PROTECT | "protect my credentials" | secretless-ai init |
| REVIEW | "review my project security" | opena2a review |
| HELP | "how do I use this" | --help |
| CONFIG | "set my API key" | opena2a config |
| UNKNOWN | (low confidence) | Show suggestions |
These intents require full NanoMind model inference via the daemon. Used by HackMyAgent's Semantic Compiler.
| Intent | Purpose | Used By |
|---|---|---|
| SCAN_SKILL | Classify skill artifacts for attack patterns | SemanticCompiler |
| SCAN_MCP | Analyze MCP server configurations | SemanticCompiler |
| SCAN_SOUL | Evaluate governance document completeness | SemanticCompiler |
| SCAN_CREDENTIAL | Detect credential exposure in context | SemanticCompiler |
| SCAN_CODE | Identify code injection patterns | SemanticCompiler |
| COMPILE_AST | Full AST compilation (all analyzers) | SemanticCompiler |
The classifier returns a confidence score between 0 and 1:
| Range | Meaning |
|---|---|
| 0.8-1.0 | High confidence, route directly |
| 0.5-0.8 | Medium confidence, may prompt for clarification |
| 0.0-0.5 | Low confidence, show suggestions |
MIT
FAQs
Intent classification and command mapping for CLI tools
We found that @nanomind/router demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.