theuargb/magento2-steroids
Composer 安装命令:
composer require theuargb/magento2-steroids
包简介
Performance and reliability steroids for Magento 2 — powered by neuron-ai
README 文档
README
Performance and reliability steroids for Magento 2 — powered by neuron-ai.
Overview
Steroids is an AI-powered module for Magento 2 that automatically detects, diagnoses, and heals runtime errors in your store. When an exception occurs, the module captures comprehensive context and uses AI to suggest and apply fixes, minimizing downtime and manual intervention.
Features
- Automatic Error Detection: Intercepts exceptions at the HTTP layer
- AI-Powered Healing: Uses advanced LLM models to analyze and fix errors
- Fallback Responses: Provides graceful fallback content when healing isn't possible
- Circuit Breaker: Prevents excessive healing attempts for recurring errors
- Comprehensive Logging: Detailed healing attempt logs in admin panel
- Homepage Snapshots: Captures and caches homepage state for fallback scenarios
- Configurable Safety Controls: Fine-grained control over healing behavior and permissions
Requirements
- Magento 2.4.x or higher
- PHP 8.1, 8.2, 8.3, or 8.4
- neuron-ai ^2.0
Installation
Via Composer (Recommended)
composer require theuargb/magento2-steroids bin/magento module:enable Theuargb_Steroids bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush
Manual Installation
- Download the module and extract to
app/code/Theuargb/Steroids - Run the following commands:
bin/magento module:enable Theuargb_Steroids bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush
Configuration
Navigate to Stores > Configuration > Theuargb > Steroids in the Magento Admin panel.
General Settings
- Enable Steroids: Master switch to enable/disable the module
- LLM Provider: Choose your AI provider (OpenAI, Azure OpenAI, Anthropic, etc.)
- API Key: Your LLM provider API key
- Model: The AI model to use (e.g., gpt-4o, claude-3-5-sonnet)
- Base URL: Optional custom endpoint for API calls
Agent Settings
- Heal Timeout: Maximum time (seconds) for healing attempts
- Fallback Timeout: Maximum time (seconds) for generating fallback responses
- Fallback Cache TTL: How long to cache fallback responses
- Max Tool Calls: Limit on agent tool invocations per healing attempt
Safety Controls
- Max Attempts Per Hour: Circuit breaker threshold per error fingerprint
- Max Concurrent Healings: Prevent resource exhaustion
- Disallowed Tool Actions: Blacklist specific agent tools
- Allow File Writes: Enable/disable file modification capabilities
URL Filters
Configure URL patterns and custom prompts for specific routes that need special healing instructions.
Snapshot Settings
- Cron Frequency: How often to capture homepage snapshots for fallback scenarios
Usage
Once configured, Steroids automatically monitors your Magento store. When an error occurs:
- The module intercepts the exception
- Captures comprehensive context (request, environment, code)
- Sends to the AI agent for analysis
- Agent suggests and optionally applies fixes
- Returns either a healed response or graceful fallback
- Logs the attempt in System > Steroids > Healing Log
Admin Features
Healing Log
View detailed logs of all healing attempts at System > Steroids > Healing Log:
- Error details and stack traces
- Agent reasoning and actions taken
- Success/failure status
- Performance metrics (tokens used, execution time)
Manual Snapshot Capture
Capture a fresh homepage snapshot on-demand via the Capture Snapshot Now button in system configuration.
Database Tables
steroids_attempt: Healing attempt logssteroids_homepage_snapshot: Homepage snapshots for fallback responses
Cron Jobs
steroids_capture_homepage_snapshot: Periodic homepage snapshot capture
License
This module is licensed under the Open Software License 3.0 (OSL-3.0).
Support
For issues, feature requests, or contributions, please visit the GitHub repository.
Credits
Powered by neuron-ai - Advanced AI agent framework for PHP.
theuargb/magento2-steroids 适用场景与选型建议
theuargb/magento2-steroids 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 2, 最近一次更新时间为 2026 年 02 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 theuargb/magento2-steroids 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 theuargb/magento2-steroids 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2026-02-10