@tanagram/cli
v0.5.1
Published
Tanagram - Catch sloppy code before it ships
Readme
Tanagram CLI
Enforce your team's coding rules in Claude Code with Tanagram.
Quick Start
# Install
npm install -g @tanagram/cli
# Login
tanagram loginThat's it! Claude Code will now automatically check your changes against your team's Tanagram rules.
How It Works
When you install the CLI, it adds a Claude Code skill that tells Claude to run tanagram eval after making code changes.
- You make changes with Claude Code
- Claude automatically runs
tanagram eval - If any rules are violated, Claude sees the feedback and fixes the issues
Rules are synced from your Tanagram account and cached locally at ~/.tanagram/rules/.
Commands
tanagram login # Authenticate with Tanagram
tanagram logout # Sign out
tanagram eval # Evaluate current changes against rules
tanagram sync # Manually sync rules from Tanagram
tanagram list # View rules for current repositoryRequirements
- Node.js >= 14.0.0
- Claude Code
- Tanagram account with rules configured at web.tanagram.ai
On-Prem
For on-prem installations:
export TANAGRAM_WEB_HOSTNAME=https://yourcompany.tanagram.ai
tanagram loginTroubleshooting
"Not in a git repository"
- Tanagram must be run from within a git repository
"No rules configured"
- Your repository may not have rules set up yet
- Visit web.tanagram.ai to configure rules (or your organization's on-prem Tanagram domain)
"authentication required" or "not logged in"
- Run
tanagram loginto authenticate
Built by @MattMolinar and the Tanagram team.
