Metadata-Version: 2.4
Name: aegisflow
Version: 2.0.0
Summary: A sophisticated Security Liaison and Governance Layer for AI Agents
Project-URL: Homepage, https://github.com/Arigitshub/AegisFlow
Project-URL: Issues, https://github.com/Arigitshub/AegisFlow/issues
Author-email: Ari <ari@example.com>
License-Expression: MIT
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: rich
Description-Content-Type: text/markdown

# 🛡️ AegisFlow
**The Universal Security Layer for AI Agents.**

AegisFlow is a CPU-efficient Python library that sits between your LLM and your system. It prevents prompt injections, scrubs sensitive data (API keys/PII), and enforces a "Human-in-the-Loop" protocol for high-risk operations.

  AegisFlow Dashboard

## ✨ Features

- **Sentinel State Engine**: Tracks agent behavior over time and escalates threats based on "risk streaks."
- **Behavioral Redlines**: Detects recursive deletions (`rm -rf`), unauthorized POST requests, and security bypass attempts.
- **Key Scrubber**: Automatically redacts API keys and EMV data before they leak to the LLM.
- **Human-in-the-Loop**: Requires a "Reasoning String" justification for any high-risk system commands.

## 🚀 Quick Start

```bash
pip install aegisflow
```

Scan your agent scripts for vulnerabilities:

```bash
aegis scan my_agent_script.py
```

## 🏗️ Architecture

AegisFlow operates as a lightweight governance layer. It intercepts function calls and network requests, assigning a **Threat Level** (Low, Medium, High) to each action.

- **Low Risk**: Allowed and logged.
- **Medium Risk**: Warned and logged; contributes to a "Risk Streak."
- **High Risk**: Blocked unless the user provides a valid **Reasoning String**.

## 📊 Sentinel Reports

View your security audit logs in a professional terminal dashboard:

```bash
aegis report
```

Example Output:
```text
+-----------------------------------------------------------------------------+
| Timestamp                | Level  | Action      | Outcome     | Details     |
|--------------------------+--------+-------------+-------------+-------------|
| 2026-02-10T12:34:07-0500 | Low    | safe_op     | EXECUTED    | {'content': |
| 2026-02-10T23:03:31-0500 | High   | file_op     | USER_OVERR | {'path':    |
|                          |        |             |             | '/etc/shad |
+-----------------------------------------------------------------------------+
```

## 📦 Installation & Setup

1.  **Install via Pip**:
    ```bash
    pip install aegisflow
    ```
2.  **Initialize Configuration** (Optional):
    Create a `.aegis.json` in your project root:
    ```json
    {
      "protected_paths": ["/prod/db", "./secrets"],
      "strict_mode": true
    }
    ```

## 🤝 Universal AI Integration

AegisFlow is designed to wrap any LLM provider. (Coming soon: Native `LiteLLM` integration).

## License

MIT
