{"library":"repofence","title":"Repofence CLI","description":"Repofence is a command-line interface (CLI) tool designed to streamline the process of preparing software repositories for AI agents. It enables developers to generate structured specifications and AI-specific rules directly from their codebase, ensuring AI tools operate within defined boundaries. The current stable version is 0.2.2, indicating it's an early-stage but actively developed tool. Its key differentiators include local-first operation for codebase scanning (`repofence reverse`), explicit support for various AI assistants like Cursor and Claude, and a focus on creating documentation artifacts (`spec/*.md`) that guide both human developers and AI agents. It aims to prevent AI agents from \"guessing\" and instead work with clear, auto-generated boundaries.","language":"javascript","status":"active","last_verified":"Wed Apr 22","install":{"commands":["npm install repofence"],"cli":{"name":"repofence","version":null}},"imports":["npm install -g repofence","import type { RepofenceConfig } from 'repofence'","import type { InitOptions } from 'repofence'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install -g repofence\n\n# 1. Purchase a license and get your token\nrepofence auth --web\n\n# 2. Initialize spec files + install assistant assets (Cursor by default)\nrepofence init\n\n# 3. Auto-populate specs from your codebase\nrepofence reverse\n","lang":"bash","description":"Demonstrates global installation and the core workflow: authentication, project initialization, and auto-population of specifications.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}