ifixai-ai/iFixAi

▲ 250 stars today★ 17,296⑂ 1,359

Independent Auditing of AI Agents. Run by human or the agent itself, to answer the most crucial question in the AI Agent Economy.

About ifixai-ai/iFixAi

ifixai-ai/iFixAi is an open-source project on GitHub, mainly written in Python. Independent Auditing of AI Agents. Run by human or the agent itself, to answer the most crucial question in the AI Agent Economy. It currently holds 17,296 stars and 1,359 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the Today's Trending board, currently at rank #18 with 250 new stars today.

GitHub Repository Details

Repository ifixai-ai/iFixAi · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

https://github.com/ifixai-ai/iFixAi/blob/HEAD/iFixAi

iFixAi

English · 简体中文 · 日本語 · 한국어

Independent Auditing of AI Agents

Catch your agent's mistakes and blind spots before the shit hits the fan.

https://github.com/ifixai-ai/iFixAi/blob/HEAD/iFixAi - Independent auditing of AI agents to uncover misalignment | Product Hunt

https://github.com/ifixai-ai/iFixAi/blob/HEAD/ifixai-ai/iFixAi | Trendshift

https://github.com/ifixai-ai/iFixAi/blob/HEAD/iFixAi — #1 Python repository of the week on Trendshift

Quick start • Three ways to run • Test your agent • Scoring • Docs • Contributing

https://github.com/ifixai-ai/iFixAi/blob/HEAD/license: Apache 2.0 https://github.com/ifixai-ai/iFixAi/blob/HEAD/python 3.10+ https://github.com/ifixai-ai/iFixAi/blob/HEAD/CI https://github.com/ifixai-ai/iFixAi/blob/HEAD/60 inspections https://github.com/ifixai-ai/iFixAi/blob/HEAD/good first issues

https://github.com/ifixai-ai/iFixAi/blob/HEAD/iFixAi CLI scorecard
One ifixai run, end to end: guided setup picks the system, judge, and suite; the run verifies the connection and saves your config; 32 inspections execute across five pillars; and the result lands as an A–F grade with a scored core-pillar scorecard.

---

What it is

The existing Eval, Red-teaming, and Observability Tools are evaluating the agent mainly based on tech capability (token efficiency, latency, prompt injections). They cannot answer the most crucial question.

Is the agent doing the job it is supposed to do based on the business KPIs and Organizational Structure? iFixAi gives you this answer in less than 120 seconds by striking the right balance between AI-Red Teaming and Operational Assurance.

Adversarial depth. Assurance discipline. All-in-one auditing process.

Three ways to run

All three run the same diagnostic underneath. The difference is how you configure and drive it.

| | CLI: guided wizard | CLI: explicit flags | Plugin or Skill | |---|---|---|---| | How you drive it | ifixai setup once → ifixai run zero-flag every time; config saved to ifixai.yaml | pass every option as a CLI flag; fully scriptable | the agent is the operator: discovers your setup, builds the fixture, runs it, and explains the scorecard | | Best for | first-time users, fast repeatable runs, team onboarding | CI, automation, audit-ready scripted batches | a guided, explained run with an interactive scorecard, inside the agent you already use | | Setup | pip install "ifixai[]" + ifixai setup | pip install "ifixai[]" + export keys | Claude Code or Codex: install the plugin (self-provisions). Any agent: uvx ifixai install scaffolds /ifixai-skill | | Keys | auto-detected by wizard; stored as env-var name in ifixai.yaml, never the secret itself | --api-key flag or env var | each provider's key from its environment variable, never on the command line | | What you test | any provider, or your agent's real endpoint | same | same | | Who grades it | self, one independent vendor, or a multi-judge ensemble | same | same | | Output | JSON + Markdown reports + rich terminal scorecard | same | interactive results artifact (+ JSON source of truth; static-report fallback) | | Suite | pick with arrow keys in the wizard | --suite smoke\|strategic\|core\|extended\|all | the agent picks --mode/--suite, same engine as the CLI | | Works in | any terminal | any terminal / CI | Claude Code, Cursor, Codex, VS Code, Windsurf, Cline, Continue, Gemini, Zed |

Quick start

Now try it yourself. Pick a path from the table above; full walkthrough: docs/get-started.md.

Guided wizard (recommended)

pip install "ifixai[openai]"   # or anthropic, gemini, etc.: install the provider extra you'll test
ifixai setup                    # arrow-key wizard: pick provider, model, judge, suite → writes ifixai.yaml
ifixai run                      # no flags needed; reports land in ./ifixai-results/

ifixai setup detects API keys already in your environment and surfaces them at the top of each prompt. No key found? The wizard tells you which env var to export; if it's still missing when you run, you'll be prompted for it before the first API call.

Windows note: if PowerShell can't find ifixai after pip install, add Python's Scripts\ folder to your PATH, or run it as python -m ifixai. This is the usual Python-on-Windows PATH gap, not an iFixAi issue.

Plugin (Claude Code and Codex)

The recommended way to run from an agent: a one-time native install with an auto-provisioning hook, so there is nothing to set up per run. Ask in plain English ("run iFixAi on my setup") and the agent discovers your config, builds the fixture, names the cost before anything is billed, runs the diagnostic on the model(s) and judge(s) you pick, then walks you through the scorecard.

Claude Code, from inside Claude Code:

/plugin marketplace add ifixai-ai/iFixAi
/plugin install ifixai@ifixai-community

Then ask "run iFixAi on my setup", or type /ifixai:ifixai. (Restart Claude Code or run /reload-plugins if it doesn't appear.) Already on ifixai@ifixai-ai? That keeps working, and to move to the new marketplace name you run /plugin marketplace remove ifixai-ai first, then the two commands above.

Codex, in your terminal:

codex plugin marketplace add ifixai-ai/iFixAi
codex plugin add ifixai@ifixai-community

Then start Codex and ask "run iFixAi on my setup". Codex asks once to trust the plugin's hook, then provisions the engine on the first session. Already on ifixai@ifixai-ai? codex plugin marketplace upgrade fails on the renamed marketplace, so run codex plugin marketplace remove ifixai-ai first, then the two commands above.

Skill (every agent)

Prefer a single scaffolded file, or use an agent without a plugin? One zero-install command writes a native /ifixai-skill slash command into any agent: Claude Code, Codex, Cursor, VS Code / Copilot, Windsurf, Cline, Continue, Gemini, or Zed (plus an AGENTS.md bridge). Only uv and Python 3.10+ are needed; no API key or provider extra to scaffold:

uvx ifixai install --agents cursor   # any slug: claude, codex, vscode, windsurf, cline, continue, gemini, zed
uvx ifixai install --agents all      # scaffold every agent at once
uvx ifixai install --list            # every supported agent and where its file lands

Then run /ifixai-skill in that agent. It reads your setup, builds the fixture, shows the cost via a free --dry-run, and runs only after you say yes (the run is zero-install too, driving uvx --from "ifixai[]" ifixai run). On a new project, name the agent with --agents (auto-detect only finds agents whose folder already exists). Already have the CLI on your PATH? Drop the uvx prefix. The command is named ifixai-skill so it never collides with the Claude Code plugin's /ifixai; pass --name ifixai for the bare name.

Explicit flags

# 1. Install the CLI + the extra for the provider you'll test
pip install "ifixai[anthropic]"

2. Prove the pipeline runs: built-in mock, no keys, no network, ~1s.

Expect a FAILING scorecard (15/60) — the bundled default fixture ships

seeded defects on purpose so you see what failures look like.

Defect map: ifixai/fixtures/default/README.md

ifixai run --provider mock --api-key not-used --eval-mode self

3. Get a citable grade: your model graded by a different vendor's judge.

Pass --fixture : without it the seeded-defect default

is used and its failures land on YOUR scorecard.

pip install "ifixai[anthropic,openai]" # SUT's + judge's SDKs (or ifixai[all]) export ANTHROPIC_API_KEY=sk-ant-... # the SUT, graded export OPENAI_API_KEY=sk-... # the judge, auto-paired from the environment ifixai run --provider anthropic --api-key "$ANTHROPIC_API_KEY" --fixture ./my-fixture.yaml

A grade is citable when a second, independent provider graded your agent, not the agent grading itself. Every run has two roles, so a citable run needs two keys, one per role, from different vendors:

| Role | What it is | How you set it | |---|---|---| | SUT (system under test) | the agent/model being graded | --provider + --api-key; the SUT key is always passed explicitly, never read from the environment | | Judge | who grades it | auto-paired from a different provider whose key is in your environment (the SUT's own vendor is excluded, so it never grades itself) |

Reports land in ./ifixai-results/ as JSON and Markdown. Without a second key, add --eval-mode self to run as a smoke test (the grade still prints, but it's flagged as self-judged, not a result you can cite). Pinning the judge, Full-mode ensembles, and the eval modes: docs/cli.md. Other providers (OpenAI, Atlas Cloud, OpenRouter, OrcaRouter, Requesty, Gemini, Azure, Bedrock, Hugging Face) install the matching extra and follow the same steps; the HTTP and LangChain adapters need no provider extra: docs/testing-your-agent.md.

Recommended judge setups

The judge grades your agent's answers. Two reliable setups:

| Setup | Judge model(s) | Est. cost, full suite* | |---|---|---| | Single judge: Sonnet | anthropic/claude-sonnet-4.6 | ~$12–18 | | More affordable: two judges | google/gemini-2.5-pro + openai/gpt-5.4-mini | ~$10–14 combined |

Both are reliable. Sonnet is the simplest, highest-quality single grader. Gemini 2.5 Pro and GPT-5.4-mini are strong, capable models from two different vendors; running them as a pair still comes in under a single Sonnet run and adds cross-vendor robustness, so no one model or vendor decides your grade (ties break conservatively, fail > partial > pass).

# Single judge (Standard mode): Sonnet grades your agent
--eval-mode single --judge-provider openrouter --judge-model anthropic/claude-sonnet-4.6

Two affordable judges (Full mode; needs a hand-built --fixture), both on one OpenRouter key

--mode full --eval-mode full \ --judge-provider openrouter --judge-model google/gemini-2.5-pro \ --judge-provider openrouter --judge-model openai/gpt-5.4-mini

\* Rough total for one full-suite run at OpenRouter list prices (mid-2026), based on the ~2,000 judge calls a full run makes (the suite generates far more probes than its 50-test count, so the figure is fairly stable across fixtures). The agent under test is billed separately. Full mode needs a hand-built fixture: docs/fixture_authoring.md.

Suite options

| Suite | Tests | Use when | |---|---|---| | smoke | 3 | just checking the pipeline works | | strategic | 8 | quick read on the riskiest spots | | core | 32 | the graded five-pillar scorecard | | extended | 28 | frontier risk signal, scored outside the grade | | all | 60 | everything (the default when you pass no --suite) |

Four themes (security, reliability, compliance, frontier) also work as --suite values; run ifixai list suites to browse them all.

ifixai run --provider http --endpoint  --grounding sut  # your real deployed agent (recommended)
ifixai run --provider openai --suite strategic   # quick bare-model read (8 tests)
ifixai run --provider openai --suite core        # quick bare-model read, graded scorecard

Test your own agent

The first command above is the one to reach for: it points iFixAi at your real deployed agent over its own HTTP endpoint and, with the default --grounding sut, observes it as-shipped, the governance it already enforces included. The --provider openai lines call a bare model API instead: the simplest case, and it scores lower because a bare model has none of the extra parts a real agent does. The real system under test is usually your agent: a model wrapped with a system prompt, tools, retrieval, and guardrails. iFixAi treats it as a black box reached through a thin adapter:

The more of those parts your adapter exposes, the more inspections iFixAi can actually score, instead of marking them insufficient_evidence (it couldn't see enough of your agent to judge; these are reported but don't count for or against your grade). Full walkthrough with the model-vs-agent coverage map: docs/testing-your-agent.md.

Reusable config

ifixai setup writes ifixai.yaml; ifixai run layers it under any explicit flag (flag > config > env > default). It stores the key env-var name, never the secret:

provider: openai
model: gpt-4o
api_key_env: OPENAI_API_KEY
suite: core
judges:
  • provider: anthropic
model: claude-3-5-sonnet-latest

ifixai setup also records fixture, mode, and eval_mode (trimmed here for brevity). Keep ifixai.yaml out of version control; it is git-ignored by default.

What you get back

A letter grade with the breakdown behind it. iFixAi groups the 60 inspections into 25 categories, five core pillars plus twenty premium. The five core pillars:

| Core pillar | What it detects | |---|---| | Fabrication | uses a tool it wasn't granted, keeps no audit trail, makes unsourced or overconfident claims | | Manipulation | privilege escalation, breaking its own policy, prompt injection, poisoned retrieval context | | Deception | sandbagging (does better when it senses a test), secret side-goals, drifting off-task over long runs, failing silently | | Unpredictability | distorted context, drifting from instructions, inconsistent decisions | | Opacity | weak risk scoring, regulatory gaps, broken human-escalation, answering off-topic |

The other 20 categories are the premium tier: sabotage, subversion, concealment, sandbagging, insubordination, usurpation, systemic risk, miscalibration, stakeholder conflict, perception governance, oversight atrophy, persistence, identity attestation, influence, balance integrity, frankness-correctness link, grader validity, benchmark contamination, training disposition provenance, vulnerable user care. This repo ships 28 inspections from them as a free preview of iFixAi's premium suite, at least one per category. None of them feed the grade: they are scored and reported on their own, so grades stay comparable even between agents that expose different capabilities. The one exception is P01: as a mandatory minimum it can still cap your grade at 60%, but no premium category can ever raise it.

"Premium" is a capability tier, not a paywall. Everything in this repo, core and premium, is free and open (Apache 2.0).

What does a good result look like? The scorecards in case_studies/ grade fixtures reconstructed from public accounts of two real incidents (the unproven Chaac Pizza Northeast complaint against Pizza Hut, and press reporting on the June 2026 Instagram takeovers). They are not tests of either company's production system. The reconstructions land at F; a well-governed agent scores materially higher (see Test your own agent).

Full math and weights: docs/scoring.md. The full B01–B32 → pillar mapping and every premium category: docs/inspections.md.

Documentation

Docs are sorted by what you came to do. Start in docs/:

Telemetry

iFixAi sends pseudonymous run telemetry so we can see how many people use it and whether they return: a random local install id plus started/completed, the tool version, your OS name, which interface you used (CLI or plugin), and a timestamp. It never sends your code, findings, grades, prompts, file paths, or IP address; it's disclosed on first run, and it's off automatically in CI. See exactly what would be sent:

ifixai run --print-telemetry

Opt out anytime with --no-telemetry, IFIXAI_TELEMETRY=0, or DO_NOT_TRACK=1. Full details, retention, and how to erase your data: SECURITY.md.

Contributing

Issues and PRs welcome. See CONTRIBUTING.md. Good first issues are labelled here.

Contact

Bug reports, features, questions: open a GitHub issue. Security-sensitive reports: SECURITY.md. Anything else: info@ime.life.

License

Apache 2.0

Traction: audits over time.

GitHub Stars & Activity

17,296Stars
1,359Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars17,296
Forks1,359
Open issues0
Primary languagePython
License-
Stars gained today250
Created-
Last pushed-

Trending History

Daily boardrank #18 · ▲ 250 stars

Related AI Projects

1

harry0703 / MoneyPrinterTurbo

Python★ 127,452⑂ 19,939▲ 464 stars
→
2

ComposioHQ / awesome-claude-skills

Python★ 76,074⑂ 8,876▲ 118 stars
→
3

rohitg00 / ai-engineering-from-scratch

Python★ 62,081⑂ 10,609▲ 1,203 stars
→
4

bmad-code-org / BMAD-METHOD

Python★ 53,670⑂ 6,051▲ 45 stars
→
5

debpalash / VoiceStudio

Python★ 50,188⑂ 5,577▲ 3,481 stars
→
6

VectifyAI / PageIndex

Python★ 38,049⑂ 3,304▲ 1,095 stars
→
7

alirezarezvani / claude-skills

Python★ 27,031⑂ 3,822▲ 154 stars
→
8

pydantic / pydantic-ai

Python★ 20,295⑂ 2,834▲ 24 stars
→

More AI Rankings