Tanagram - Catch sloppy code before it ships
npm install @tanagram/cliEnforce your team's coding rules in Claude Code with Tanagram.
``bashInstall
npm install -g @tanagram/cli
That'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.1. You make changes with Claude Code
2. Claude automatically runs
tanagram eval
3. If any rules are violated, Claude sees the feedback and fixes the issuesRules are synced from your Tanagram account and cached locally at
~/.tanagram/rules/.Commands
`bash
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 repository
`Requirements
- Node.js >= 14.0.0
- Claude Code
- Tanagram account with rules configured at web.tanagram.ai
On-Prem
For on-prem installations:
`bash
export TANAGRAM_WEB_HOSTNAME=https://yourcompany.tanagram.ai
tanagram login
`Troubleshooting
"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 login` to authenticate---
Built by @MattMolinar and the Tanagram team.