Rules Context
A powerful rule management system that allows users to create, configure, and apply behavioral rules that govern how AI agents respond in different scenarios.

Installation
hax init
hax add composer rules-contextComponent Setup
import { RulesProvider, useRules, RulesModal } from "@/hax/composer/rules-context";
export function ChatWithRules() {
const [showRulesModal, setShowRulesModal] = useState(false);
return (
<RulesProvider>
<button onClick={() => setShowRulesModal(true)}>Manage Rules</button>
<RulesModal open={showRulesModal} onOpenChange={setShowRulesModal} />
</RulesProvider>
);
}