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.
npm install repofenceVerified import paths — ran on the pinned version, not inferred.
Demonstrates global installation and the core workflow: authentication, project initialization, and auto-population of specifications.
Review `--dry-run` output before using `--force` to understand changes. Backup important `spec/*.md` files.
Run `repofence auth --web` in your terminal and follow the instructions to obtain and save your authentication token.
Execute `repofence reverse` as an early step in the workflow for brownfield projects.
Specify `repofence init cursor` or `repofence init claude` to install the appropriate assets for your AI assistant. Verify installation paths like `~/.cursor/commands/`.
Run `repofence auth --web` in your terminal and follow the instructions to obtain and save your authentication token.
Ensure you install the package globally using `npm install -g repofence`. If the problem persists, verify your PATH environment variable includes the npm global bin directory.
Upgrade your Node.js installation to version 18.0.0 or higher. Consider using `nvm` (Node Version Manager) for easy switching between Node.js versions.
No dependency data recorded yet.