@arsh342/athena
v0.2.5
Published
AI code provenance tracker and terminal scanner for JavaScript and TypeScript repositories.
Maintainers
Readme
Athena CLI
AI code provenance tracker for JavaScript and TypeScript repositories.
Athena scans JS/TS/JSX/TSX files, extracts function-level code units, scores AI-origin likelihood with local heuristics, and runs targeted security checks.
Install
npm install -g @arsh342/athenaQuick Start
Open interactive selector:
athena
# or
athena menuScan current directory:
athena scan .Check staged files:
athena checkInstall pre-commit hook:
athena initRemove pre-commit hook:
athena uninstallSetup scanner dependencies:
athena setup all
athena setup all --auto
athena setup semgrep
athena setup semgrep --auto
athena doctor --fixCommon Options
Set threshold (default is 9):
athena scan . --threshold 9
athena check --threshold 9Choose output format:
athena scan . --format terminal
athena scan . --format json
athena scan . --format jsonlTerminal UI Behavior
- Selector mode renders in-place and re-renders dynamically.
- Scan/check reports separate AI-origin confidence from security findings.
- Direct command runs clear the terminal before rendering report output.
Report Highlights
Terminal reports include:
- Top-level metrics (
files,units,ai-flagged units,duration) - AI-origin confidence section
- Top weighted signals
- Security findings section
- Gate status and gate reason
Development
Run from source:
npm run dev -w @arsh342/athena -- menuQuiet npm wrapper output:
npm run -s dev -w @arsh342/athena -- menuBuild:
npm run build -w @arsh342/athenaNotes
- Runs fully local (no external AI service required).
- Supports JavaScript, TypeScript, JSX, and TSX.
- Requires Node.js 18 or newer.
- ESLint scanner support is bundled through Athena optional package dependencies.
- Semgrep, Docker (for nodejsscan), and Bearer CLI remain external optional tools.
