luiseiman/dotforge

5 stars · Last commit 2026-04-16

Configuration governance for Claude Code. Bootstrap, audit, sync, and evolve .claude/ across projects.

README preview

> **[English](#dotforge)** | **[Español](#dotforge-español)**

<p align="center">
  <img src="docs/assets/dotforge-banner.svg" alt="dotforge" width="600">
</p>

# dotforge

[![GitHub stars](https://img.shields.io/github/stars/luiseiman/dotforge)](https://github.com/luiseiman/dotforge/stargazers)
[![License: MIT](https://img.shields.io/github/license/luiseiman/dotforge)](LICENSE)
[![Version](https://img.shields.io/badge/version-3.1.1-blue)](VERSION)
[![Last commit](https://img.shields.io/github/last-commit/luiseiman/dotforge)](https://github.com/luiseiman/dotforge/commits/main)

**Behavior governance for [Claude Code](https://docs.anthropic.com/en/docs/claude-code).** Declare runtime policies on tool calls — "search before writing", "no destructive git", "verify before shipping" — and enforce them via compiled `PreToolUse` hooks that share a session-scoped state file. Escalates silently → nudge → warning → soft_block → hard_block, with a permanent override audit trail.

```
behaviors/no-destructive-git/behavior.yaml  # declarative policy
  ↓ (compile)
.claude/hooks/generated/*.sh                # runtime enforcement
  ↓ (observe)

View full repository on GitHub →