> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Rules Config • AI Agent SDK

> RulesConfig: Configuration for auto-applying per-project rules/instructions.

# RulesConfig

> Defined in the [**Feature Configs**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/feature_configs.md) module.

AI Agent

Configuration for auto-applying per-project rules/instructions.

Discovers and injects per-repository instruction files (AGENTS.md,
CLAUDE.md, .praisonai/rules/\*.md, etc.) into the agent system prompt
on every run, honouring the existing activation modes (always, glob,
manual, ai\_decision), priority ordering, and a character budget.

## Properties

**char\_budget** `Optional[int]`

No description available.

**files** `Optional`

No description available.

**workspace\_path** `Optional[str]`

No description available.

> [accordion] Internal & Generic Methods
>
> * **to\_dict**: Convert to dictionary.

## Usage

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Simple enable (auto-discover + apply)
    Agent(rules=True)

    # Opt out (reproducible/sandboxed runs)
    Agent(rules=False)

    # With config
    Agent(rules=RulesConfig(
        char_budget=6000,
        files=["docs/CONVENTIONS.md"],
    ))
```

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/config/feature_configs.py#L537)
>
> `praisonaiagents/config/feature_configs.py` at line 537

***

## Related Documentation

> [card] [Configuration Overview](https://praison.ai/docs/docs/configuration/index)

> [card] [Agent Config](https://praison.ai/docs/docs/configuration/agent-config)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.