Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@appifex/fix

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appifex/fix

LLM-assisted validation → fix loop with deterministic verification

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

@appifex/fix

TDD red-to-green fix loop with multi-layer circuit breakers.

Usage

import { fixLoop } from '@appifex/fix'

const result = await fixLoop(initialValidation, {
  fixFn: async (failures) => {
    // Call your LLM to generate fixes based on failures
    return { filesChanged: ['Home.tsx'], tokensUsed: 1000 }
  },
  buildFn: async () => buildReactNative(runner, { projectDir: './app' }),
  validateFn: async () => validateAll(runner, { ... }),
  maxAttempts: 5,
  tokenBudget: 50_000,
})

if (result.status === 'all_green') {
  console.log(`Fixed in ${result.attempts.length} attempts!`)
} else {
  console.log(`Stopped: ${result.circuitBreakReason}`)
  console.log(`Recommendation: ${result.recommendation}`)
}

Circuit breakers

TriggerThresholdAction
Max attemptsconfigurable (default 5)Stop, report
Same error repeated3 identical failuresStop, unfixable
No progress2 attempts, zero test deltaStop, going in circles
RegressionMore tests failingRollback, stop
Token budgetPhase budget depletedStop, surface to user
TimeoutConfigurableStop, partial results

Recommendations

On circuit break, returns a recommendation: manual_fix, simplify_design, relax_tests, split_and_retry, or add_budget.

Keywords

appifex

FAQs

Package last updated on 20 Apr 2026

Did you know?

Socket

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.

Install

Related posts