Use the Honeybadger MCP to investigate a Honeybadger issue and provide analysis and a potential fix.
Investigate the following issue: $ARGUMENT
Describe the following:
| namespace :db_backup do | |
| desc "Download the latest database backup from AWS S3" | |
| task download: :environment do | |
| require 'aws-sdk-s3' | |
| bucket_name = "<your-bucket>" | |
| download_path = Rails.root.join('db', 'backups') | |
| FileUtils.mkdir_p(download_path) |
The user has requested: $ARGUMENT
Before doing anything, read claude.md, then read any other relevant files in the /docs/ directory.
Avoid doing tasks that require approval from the user. Whenever doing so, please instruct the user on how they can add permanent permissions for this task (some tasks show up with a shift-tab option but many, sadly, don't). The user wants you to operate in agentic mode rather than requiring frequent approval.
| require "faraday" | |
| require "json" | |
| class BrowserlessApi | |
| def initialize(api_key: Rails.application.credentials.dig(:browserless, :api_key) || "<BROWSERLESS_API_KEY>", debug: false) | |
| @api_key = api_key | |
| @base_url = "https://production-sfo.browserless.io" | |
| @debug = debug | |
| end |
| class SumsubApi < GenericApi | |
| BASE_URL = "https://api.sumsub.com" | |
| def initialize(api_token: Rails.application.credentials[:sumsub][:api_token], secret_key: Rails.application.credentials[:sumsub][:secret], | |
| base_url: BASE_URL, debug: true) | |
| @api_token = api_token | |
| @secret_key = secret_key | |
| @base_url = base_url | |
| @debug = debug |
| # syntax = docker/dockerfile:1 | |
| # Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile | |
| ARG RUBY_VERSION=3.4.1 | |
| FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base | |
| # Rails app lives here | |
| WORKDIR /rails | |
| # Set production environment |
| class CorporationTax | |
| def self.calculate_ct(profit, period_start_on, period_end_on) | |
| if period_end_on < Date.new(2023, 4, 1) | |
| calculate_ct_before_2023(profit) | |
| elsif period_start_on >= Date.new(2023, 4, 1) | |
| calculate_ct_after_2023(profit) | |
| else | |
| period_split = split_periods(period_start_on, period_end_on) | |
| period_1_profit = profit * period_split[0] / (period_split[0] + period_split[1]) |
| module ActiveChildren | |
| extend ActiveSupport::Concern | |
| included do | |
| class_attribute :active_children, default: [] | |
| after_save :notify_active_children | |
| end | |
| class_methods do | |
| def has_active_child(name) |
| #!/usr/bin/env ruby | |
| require 'open3' | |
| require 'signal' | |
| require 'openai' | |
| # Define the silence threshold and duration for detection | |
| @silence_threshold = '-30dB' | |
| @silence_duration = 0.5 |
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| class Harvester | |
| attr_accessor :output, :links_fetched | |
| def initialize(args) | |
| super() | |
| @options = { |