A plug-and-play framework providing structured rules for intelligent AI agent behavior across different platforms.
📚 Documentation available in multiple languages / ドキュメントが複数の言語で利用可能です / Dokumentasi tersedia dalam berbagai bahasa
🇯🇵 Japanese Documentation / 日本語ドキュメント
- メインページ / Main Page - フレームワークの概要とクイックスタート
- 説明書の目次 / Documentation Index - 説明書の全体像
- ユーザーガイド / User Guide - 初心者向けガイド
- 開発者ガイド / Developer Guide - 技術者向け詳細
- システムの説明 / System Overview - システムの仕組み
- 拡張マニュアル / Extension Manual - プラグイン開発
- トラブルシューティング / Troubleshooting - 問題解決ガイド
🇮🇩 Indonesian Documentation / Dokumentasi Bahasa Indonesia
- Halaman Utama / Main Page - Ikhtisar framework dan mulai cepat
- Indeks Dokumentasi / Documentation Index - Ringkasan dokumentasi
- Panduan Pengguna / User Guide - Panduan untuk pemula
- Panduan Pengembang / Developer Guide - Detail teknis untuk insinyur
- Ikhtisar Sistem / System Overview - Detail arsitektur
- Manual Ekstensi / Extension Manual - Pengembangan plugin
- Panduan Pemecahan Masalah / Troubleshooting - Panduan penyelesaian masalah
If you're on Claude Code, the framework installs as a native plugin — no setup.html, no bootstrap step. Enabling the plugin is the activation. Claude Code is one adapter among many: the plugin lives entirely in claude-code/, and the platform-neutral core (modules/) is untouched.
# 1. Add this repo as a plugin marketplace
/plugin marketplace add paupawsan/agentic-rules
# 2. Install the plugin from it
/plugin install agentic-rules@agentic-rulesTo update later, use the full <plugin>@<marketplace> ID — the bare plugin name reports "not found":
claude plugin update agentic-rules@agentic-rulesThen manage it from within Claude Code:
/plugin # enable/disable, edit options
/agentic-rules:status # show which modules are active
/agentic-rules:help # orientationWhat you get
- Four rule modules as skills that auto-load when relevant: memory, RAG/context, critical-thinking, and agent interaction unit-test.
- An optional always-on mode (
always_on_injection) that injects the enabled rules into every session — the closest equivalent to aCLAUDE.md. - An optional Knowledge Graph MCP server — set
kg_mcp_urlto your endpoint (memory/RAG degrade gracefully without it). - No duplication — skills and the injector read the canonical
modules/rule files (every language the framework ships, e.g.ja/id); upstream edits flow through with no re-sync.
Configuration (set via /plugin)
| Option | Default | Purpose |
|---|---|---|
language |
en |
Language for injected rule text (en / ja / id) |
memory_path |
— | Root directory for the memory store |
enable_memory / enable_rag / enable_critical_thinking |
on | Toggle rule modules |
enable_agent_unit_test |
off | Conversation auditing (invoke explicitly) |
always_on_injection |
off | Inject rules every session vs. on-demand skills |
kg_mcp_url |
— | Knowledge Graph MCP endpoint (blank = disabled) |
📖 Claude Code Plugin Guide — full component mapping, how rules are delivered, and how it differs from the setup.html path.
The sections below (
setup.html, bootstrap) are for other platforms — Cursor, VSCode, and custom agentic systems. Claude Code users can skip them.
🤖 Want your AI editor to install it for you? Point it at INSTALL.md — an authorized, agent-drivable runbook: "Read INSTALL.md and install agentic-rules for me." It asks whether to install globally or per-project, then drives
setup.py --yesfor you. The manualsetup.htmlflow below remains available.
Execute setup.html first to configure your rules and generate necessary files!
- Download the framework files from GitHub
- Double-click
setup.htmlto launch the web interface - Configure your preferred rules (Memory, RAG, Critical Thinking)
- Generate configuration files
💡 Why setup.html first? The web interface creates the required configuration files and rule files that the bootstrap system needs. Without this step, the framework may not initialize properly.
🔧 For Engineers/Developers: Use the enhanced Python launcher for better functionality - it provides direct file creation and server controls. See Developer Guide for setup automation options.
After setup.html, complete this ONE-TIME bootstrap initialization!
- Tell your AI agent:
Initialize the agentic rules system in /path/to/your/agentic-rules folder. I already completed setup.html, so just perform the bootstrap initialization. - Grant permission when prompted to enable the framework
- Review settings for Memory, RAG, and Critical Thinking rules
- Framework is active - your agent now has enhanced capabilities!
💡 Why this step? The framework requires initial bootstrap configuration to ensure proper integration with your AI environment. This one-time setup enables all framework features.
💡 No extra commands needed: the bootstrap runs automatically the first time your AI agent reads the generated rule file (CLAUDE.md / AGENTS.md / GEMINI.md). The agent performs the first-run procedure and writes a
.agentic_initializedmarker in your project directory ($CWD) so it only happens once per project. See First-Run Loading.
The Agentic Rules Framework enhances AI agent capabilities through four specialized rule systems:
📖 Plugin Details - Local, human-readable memory system with 10 specialized categories for persistent context, learning, and personalization across sessions. Full visibility and control over your AI agent's memory data.
👥 Team Tiers (v1.7.0) - Optionally split memory and the Knowledge Graph into a private layer (your machine only) and a team layer (shared with your project via a git-backed memory repo and a shared KG daemon), with a privacy gate that screens writes before they leave your machine. Off by default — a plain install behaves exactly as before. See Team Tiers Setup for configuration, upgrade, and verification steps.
📖 Plugin Details - Advanced information processing with smart reading strategies, context optimization, relevance scoring, and automatic Knowledge Graph construction for intelligent project understanding and relationship mapping.
📖 Plugin Details - Systematic reasoning enhancement with error prevention, assumption validation, and evidence-based decision making.
📖 Plugin Details - Testing framework for agent conversations, covering ground-check requirements, chain-of-thought logging, and agent debugging analysis.
Key Benefits:
- 🔌 Plug-and-Play: Enable/disable rules without modifying agent behavior
- 🖥️ Multi-Platform: Works with Cursor, VSCode, and custom agentic systems
- 📦 Self-Contained: Single HTML file with embedded configuration
- 🛠️ Tool Agnostic: Agents use available tools to implement rule requirements
- 🌐 Generic: Applicable to any AI agent capable of following structured guidelines
- 🌍 Multi-Language: en/ja/id ship with the core framework; the plugin template system supports 18+ additional languages for custom extensions
Enabled by default — automatic KG construction and usage for project understanding.
- 🔍 Automatic Discovery: Scans conversations and codebases to build knowledge graphs
- 🧷 Smart Linking: Connects related concepts, files, and ideas automatically
- 💬 Proactive Usage: Uses KG insights in conversations without manual activation
- ⏳ Time-Aware Knowledge (v1.5.0): when knowledge changes, the old fact is superseded — never deleted. Default retrieval returns only current knowledge; history stays queryable ("what did we know on date X?"). An adaptation of bi-temporal database modeling for agent memory, inspired by Zep's Graphiti (concept only — no code reused). See the KG Implementation Guide for the model, a database-backed implementation, and when (not) to use it, and the before/after comparison for what changes in practice.
- Zero Configuration: Works out-of-the-box with standard setup
- Enhanced Conversations: Responses can include relevant historical context
- Relationship Understanding: System tracks how project components connect
📖 KG Implementation Guide - Logical algorithms and pseudocode for KG functionality 📖 User KG Integration - End-user KG experience and benefits
Chain-of-thought logging through the CORE-RULES.md and RULES.md files, used for structured agent interaction testing.
UNIT TEST: Agent Memory Retrieval
Framework: Agentic Rules v1.7.1
Task: Test basic agent Memory retrieval.
Instruction:
Sync your memory for current project.
Output:
I want unit test report in markdown format @debug
What the Framework Provides:
- 🔍 Ground Check Validation: Coverage verification of information claims against sources
- 🛡️ Assumption Challenge: Detection and validation of implicit assumptions
- ⚡ Tool Call Auditing: Logging of tool executions with relevance scoring
- 🎯 Decision Documentation: Audit trail of decision points with alternatives
- 📊 Context Management: Monitoring of context utilization and optimization
- 🔧 Agent Debugging Analysis: Analysis of agent reasoning processes, tool usage, and parameter selections
- ✅ Compliance Validation: Automated checking against framework requirements
📖 User Guide - Double-click setup with step-by-step instructions
📖 Developer Guide - Server setup, automation, and API usage
📖 Extension Manual - Plugin development and framework extension
📖 System Overview - Complete technical architecture and design principles
📖 Troubleshooting Guide - Solutions for common issues and manual loading instructions
🛠️ Quick Scaffold: python generate_plugin_scaffold.py --help - Generate plugin templates instantly
- Initialization: One-time setup with user consent
- Automatic Activation: Framework loads automatically after first setup
- Configuration: Modify settings in
settings/global-settings.json - Reset: Delete
.agentic_initializedfile to force re-initialization
We welcome contributions! This project thrives on community input and collaboration.
- 📝 Report Issues: Found a bug? Have a suggestion? Open an issue
- 🔧 Submit Pull Requests: Help improve the framework
- 💬 Discussions: Join conversations about agentic systems and AI behavior
- 📖 Documentation: Help improve guides and documentation
Personal Project: This framework is designed and developed using personal time and resources. I am not affiliated with any company, and this is not an official product or service.
Maintenance Notice: I cannot guarantee active updates or timely maintenance. While I strive to keep the framework functional and secure, updates depend on available time and resources.
Community Support: Your contributions, feedback, and participation mean a lot to the continued development and improvement of this framework. Community involvement helps ensure the project remains useful and relevant.
Best-Effort Behavior: This framework works by instructing an AI agent, not by enforcing code-level guarantees. Whether rules are actually followed (ground-checking claims, memory recall, KG usage, etc.) depends on the specific editor, agent, and model combination in use — behavior can vary and isn't guaranteed across all setups.
Use at Your Own Risk: This framework is provided as-is. Users should evaluate its suitability for their specific use cases and implement appropriate security measures.
Copyright (c) 2025-2026 Paulus Ery Wasito Adhi. Licensed under the MIT License (see LICENSE file).