JSPM

  • Created
  • Published
  • Downloads 870
  • Score
    100M100P100Q104809F
  • License MIT

Tanagram - Catch sloppy code before it ships

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tanagram/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Tanagram CLI

    Enforce your team's coding rules in Claude Code with Tanagram.

    Quick Start

    # Install
    npm install -g @tanagram/cli
    
    # Login
    tanagram login

    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 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 repository

    Requirements

    On-Prem

    For on-prem installations:

    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.