Skip to content

Latest commit

 

History

175 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Agentic Rules Framework

A plug-and-play framework providing structured rules for intelligent AI agent behavior across different platforms.

🌍 Localization / 多言語対応 / Pelokalan

📚 Documentation available in multiple languages / ドキュメントが複数の言語で利用可能です / Dokumentasi tersedia dalam berbagai bahasa

Japanese (日本語)

🇯🇵 Japanese Documentation / 日本語ドキュメント

Indonesian (Bahasa Indonesia)

🇮🇩 Indonesian Documentation / Dokumentasi Bahasa Indonesia

🧩 Use with Claude Code (Plugin)

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-rules

To update later, use the full <plugin>@<marketplace> ID — the bare plugin name reports "not found":

claude plugin update agentic-rules@agentic-rules

Then manage it from within Claude Code:

/plugin                 # enable/disable, edit options
/agentic-rules:status   # show which modules are active
/agentic-rules:help     # orientation

What 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 a CLAUDE.md.
  • An optional Knowledge Graph MCP server — set kg_mcp_url to 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.


🚀 Quick Start - First Time Setup (Other Platforms)

🤖 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 --yes for you. The manual setup.html flow below remains available.

⚠️ Step 1: Run Setup Interface (IMPORTANT!)

Execute setup.html first to configure your rules and generate necessary files!

  1. Download the framework files from GitHub
  2. Double-click setup.html to launch the web interface
  3. Configure your preferred rules (Memory, RAG, Critical Thinking)
  4. 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.


⚡ Step 2: Initialize Agentic Rules System

After setup.html, complete this ONE-TIME bootstrap initialization!

  1. 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.
  2. Grant permission when prompted to enable the framework
  3. Review settings for Memory, RAG, and Critical Thinking rules
  4. 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_initialized marker in your project directory ($CWD) so it only happens once per project. See First-Run Loading.


🎯 Framework Overview

The Agentic Rules Framework enhances AI agent capabilities through four specialized rule systems:

🧠 Memory Rules (Local Memory System)

📖 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.

📚 RAG Rules

📖 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.

🤔 Critical Thinking Rules

📖 Plugin Details - Systematic reasoning enhancement with error prevention, assumption validation, and evidence-based decision making.

🧪 Agent Interaction Unit Test (disabled by default)

📖 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

🧠 Knowledge Graph Integration

Enabled by default — automatic KG construction and usage for project understanding.

What It Does

  • 🔍 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.

For Users

  • 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

For Agent Developers

📖 KG Implementation Guide - Logical algorithms and pseudocode for KG functionality 📖 User KG Integration - End-user KG experience and benefits

🧪 Agent Interaction Unit Test - Effective Format

Chain-of-thought logging through the CORE-RULES.md and RULES.md files, used for structured agent interaction testing.

Unit Test Format Example

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

📋 Learn More

👥 For Everyone (No Technical Knowledge)

📖 User Guide - Double-click setup with step-by-step instructions

🔧 For Engineers & Developers

📖 Developer Guide - Server setup, automation, and API usage

🛠️ For Plugin Developers

📖 Extension Manual - Plugin development and framework extension

📚 System Architecture & Technical Deep Dive

📖 System Overview - Complete technical architecture and design principles

🐛 Troubleshooting & FAQ

📖 Troubleshooting Guide - Solutions for common issues and manual loading instructions 🛠️ Quick Scaffold: python generate_plugin_scaffold.py --help - Generate plugin templates instantly

🔄 Framework Lifecycle

  • 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_initialized file to force re-initialization

🤝 Contributing

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

⚠️ Important Disclaimers

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).

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages