
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.
@codehabits/cli
Advanced tools
Team intelligence for AI coding agents. Extract conventions, anti-patterns, and domain knowledge from your codebase and PR history.
Team intelligence for AI coding agents. Extract conventions, anti-patterns, and domain knowledge from your codebase and PR history - then deliver it to Cursor, Claude Code, and other AI tools.
npx @codehabits/cli login
npx @codehabits/cli enable
This scans your repo, analyzes PR history with AI, and generates:
.codehabits/conventions.json, .codehabits/anti-patterns.json, .codehabits/knowledge.json, .codehabits/reviewers.json, .codehabits/meta.json: structured team intelligence (split files).codehabits/config.json: analysis settings (safe to edit).codehabits/proposals.json: optional; gitignored; MCP record_feedback / approve_proposal only.cursor/skills/codehabits-team-intel/: Agent Skill for CursorAGENTS.md: entry point for Claude Code and similar toolsRepositories under a GitHub organization must be assigned to a team when you first enable them (interactive flow, or npx @codehabits/cli enable --team <team-id-or-slug>). --personal is only for user-owned repos. In CI, always pass --team for org repos.
| Command | Description |
|---|---|
codehabits login | Authenticate with GitHub OAuth |
codehabits enable | Scan repo and generate intelligence (--team, --personal, --path, --skip-prs) |
codehabits sync | Incrementally update with latest PRs (merges with cloud using same rules as local) |
codehabits team assign | Assign the current repo to a team (--team for non-interactive) |
codehabits show <type> | Display conventions, anti-patterns, knowledge, or reviewers |
codehabits check <file> | Validate a file against team conventions |
codehabits mcp-install | Set up MCP server for Cursor |
codehabits setup-action | Generate GitHub Actions workflow for auto-sync |
codehabits token create | Create API token for CI/CD |
Sync (after the repo is already enabled, typical GitHub Action on merge):
- name: Sync codehabits intelligence
run: npx @codehabits/cli@latest sync --ci
env:
CODEHABITS_TOKEN: ${{ secrets.CODEHABITS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
First-time enable in CI for an organization repo requires a team (non-interactive):
npx @codehabits/cli@latest enable --team your-team-slug
npm install -g @codehabits/cli
codehabits enable
After global install, the command is just codehabits (not @codehabits/cli).
Full docs at codehabits.dev/docs
MIT
FAQs
CLI for codehabits: analyze GitHub PRs and your codebase, then generate AGENTS.md, Agent Skills, and .codehabits/ team intelligence for Cursor, Claude Code, and Copilot.
The npm package @codehabits/cli receives a total of 28 weekly downloads. As such, @codehabits/cli popularity was classified as not popular.
We found that @codehabits/cli 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.