
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
A powerful Python package that uses multiple AI agents to debug API failures by analyzing logs, code, and user questions. Built with CrewAI, it supports LLM providers including OpenAI, Anthropic, Google, Ollama, and more.
Watch the multiagent-debugger in action:
The Multi-Agent Debugger uses a sophisticated architecture that combines multiple specialized AI agents working together to analyze and debug API failures.
# From PyPI
pip install multiagent-debugger
# From source
git clone https://github.com/VishApp/multiagent-debugger.git
cd multiagent-debugger
pip install -e .
multiagent-debugger setup
multiagent-debugger debug "Why did my /api/users endpoint fail yesterday?"
Usage: multiagent_debugger debug [OPTIONS] QUESTION
Debug an API failure or error scenario with multi-agent assistance.
Arguments:
QUESTION The natural language question or debugging prompt.
Example: 'find the common errors and the root-cause'
Options:
-c, --config PATH Path to config file (YAML)
-v, --verbose Enable verbose output for detailed logs
--mode [frequent|latest|all] Log analysis mode:
frequent: Find most common error patterns
latest: Focus on most recent errors
all: Analyze all available log lines
--time-window-hours INT Time window (hours) for log analysis
--max-lines INT Maximum log lines to analyze
--code-path PATH Path to source code directory/file for analysis
-h, --help Show this message and exit
Examples:
multiagent-debugger debug 'find the common errors and the root-cause' \
--config ~/.config/multiagent-debugger/config.yaml --mode latest
multiagent-debugger debug 'why did the upload to S3 fail?' \
--mode frequent --time-window-hours 12 \
--code-path /Users/myname/myproject/src
multiagent-debugger debug 'analyze recent errors' \
--code-path /path/to/specific/file.py
This command analyzes your logs, extracts error patterns and code paths, and provides root cause analysis with actionable solutions and flowcharts.
Create a config.yaml
file (or use the setup command):
# Paths to log files
log_paths:
- "/var/log/myapp/app.log"
- "/var/log/nginx/access.log"
# Path to source code directory or file for analysis (SECURITY FEATURE)
code_path: "/path/to/your/source/code" # Restricts code analysis to this path only
# Log analysis options
analysis_mode: "frequent" # frequent, latest, all
time_window_hours: 24 # analyze logs from last N hours
max_lines: 10000 # maximum log lines to analyze
# LLM configuration
llm:
provider: openai # or anthropic, google, ollama, etc.
model_name: gpt-4
temperature: 0.1
#api_key: optional, can use environment variable
# Phoenix monitoring configuration (optional)
phoenix:
enabled: true # Enable/disable Phoenix monitoring
host: "localhost" # Phoenix host
port: 6006 # Phoenix dashboard port
endpoint: "http://localhost:6006/v1/traces" # OTLP endpoint for traces
launch_phoenix: true # Launch Phoenix app locally
headers: {} # Additional headers for OTLP
The code_path
configuration is a security feature that restricts code analysis to a specific directory or file:
# Security: Only analyze code within this path
code_path: "/Users/myname/myproject/src"
How it works:
code_path
Use cases:
CLI override:
# Override config file code_path for this session
multiagent-debugger debug "question" --code-path /path/to/specific/project
The system supports various LLM providers including OpenRouter, Anthropic, Google, and others. See Custom Providers Guide for detailed configuration instructions.
Set the appropriate environment variable for your chosen provider:
OPENAI_API_KEY
ANTHROPIC_API_KEY
GOOGLE_API_KEY
AZURE_OPENAI_API_KEY
, AZURE_OPENAI_ENDPOINT
AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, AWS_REGION
code_path
(security)The debugger includes built-in Phoenix monitoring for tracking agent execution, LLM usage, and performance metrics.
multiagent-debugger phoenix
This shows your Phoenix configuration and provides instructions for accessing the dashboard.
When running the debugger on a remote server, use SSH port forwarding to access the Phoenix dashboard:
# On your local machine, create SSH tunnel
ssh -L 6006:localhost:6006 user@your-server
# Then visit in your local browser
http://localhost:6006
Phoenix monitoring is configured in your config.yaml
:
phoenix:
enabled: true
host: localhost
port: 6006
launch_phoenix: true
multiagent-debugger list-providers
multiagent-debugger list-models openai
multiagent-debugger debug "Question?" --config path/to/config.yaml
multiagent-debugger debug "What went wrong?" --mode latest --time-window-hours 2
multiagent-debugger debug "Find patterns" --max-lines 50000
# Only analyze code within /path/to/project directory
multiagent-debugger debug "What caused the error?" --code-path /path/to/project
# Analyze only a specific file
multiagent-debugger debug "Debug this file" --code-path /path/to/file.py
# Create virtual environment
python package_builder.py venv
# Install development dependencies
python package_builder.py install
# Run tests
python package_builder.py test
# Build distribution
python package_builder.py dist
MIT License - see LICENSE for details.
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
A multi-agent system for debugging API failures
We found that multiagent-debugger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.