Skip to content
Guzinowich edited this page Nov 25, 2026 · 3 revisions

▶️ Try it

Practice mode replays saved answers. No API key. No bill. It checks that the program still runs. It is not a score for a live chatbot.


1 · Install

You need Python.

python -m pip install absencecritic

2 · Ask one question

absencecritic --provider fixture "What works for launching a startup?"

--provider fixture means "use the saved rehearsal," not a live model.

3 · Compare

See the first answer with no helper:

absencecritic --provider fixture --no-shield "What works for launching a startup?"

See the report card:

absencecritic --provider fixture --show-critique --json "What works for launching a startup?"

Ask something that should stay plain:

absencecritic --provider fixture "What is 2+2?"

Tip

The answer to 2 + 2 should stay a plain fact. It should not grow a paragraph about missing airplanes.


🔑 A live chatbot

A live run needs an API key on your machine.

Do not put the key in the wiki, in git, or in a screenshot.

Copy .env.example in a checkout for the variable names. The key stays in the environment. --provider is fixture unless OPENAI_API_KEY is set. Then the default is openai.

absencecritic --provider openai "What works for launching a startup?"
absencecritic --provider fixture --critic local "What works for launching a startup?"
absencecritic --judge --draft-file draft.txt --json "What works for launching a startup?"

--judge grades an answer you already have. It does not write a new one.

OpenAI-compatible servers (OpenAI, OpenRouter, xAI, or a local server):

# Windows PowerShell
$env:OPENAI_API_KEY = "..."
$env:OPENAI_BASE_URL = "https://api.openai.com/v1"   # optional
$env:ABSENCECRITIC_MODEL = "gpt-4o-mini"             # optional
absencecritic --provider openai "What works for launching a startup?"

# OpenRouter
$env:OPENAI_API_KEY = "..."
$env:OPENAI_BASE_URL = "https://openrouter.ai/api/v1"
$env:ABSENCECRITIC_MODEL = "openai/gpt-4o-mini"
absencecritic --provider openai "What works for launching a startup?"

# xAI (model names change; see https://docs.x.ai for current ones)
$env:OPENAI_API_KEY = "..."
$env:OPENAI_BASE_URL = "https://api.x.ai/v1"
$env:ABSENCECRITIC_MODEL = "your-grok-model"
absencecritic --provider openai "What works for launching a startup?"

# Local server (llama.cpp, vLLM, and the like)
$env:OPENAI_API_KEY = "local"
$env:OPENAI_BASE_URL = "http://127.0.0.1:8080/v1"
$env:ABSENCECRITIC_MODEL = "your-local-model"
absencecritic --provider openai "What works for launching a startup?"

🏢 Your team's own failure notes

The notebook matters most for notes a public model has never seen.

  1. Point ABSENCECRITIC_STORE at a folder outside the public project.
  2. Add notes there.
  3. Do not commit patient notes, employer logs, or secrets.

Guide: eval/org_store

That folder is a separate directory (--store or ABSENCECRITIC_STORE), not a private folder inside the public notebook. The store skips a nested folder named private. Notes a person adds stay pending, and lookup ignores them, until absencecritic feedback --accept. Do not commit patient notes or employer logs.

Add a note from a file:

absencecritic ingest path/to/entries.yaml
absencecritic ingest --catalog path/to/catalog.yaml
absencecritic feedback path/to/note.yaml
absencecritic feedback --accept startup-user-note

ingest appends valid entries and rejects a duplicate id. --catalog requires each row to cite an http(s) source_url. Point ABSENCECRITIC_STORE at a writable directory before ingest or feedback, so new notes do not land inside the installed package.


✍️ From Python

from absencecritic import run, score
from absencecritic.adapters.llm.fixture import FixtureLLM
from absencecritic.adapters.store.yaml_store import YamlStore
from absencecritic.paths import default_fixture_path, default_store_dir

result = run(
    "What works for launching a startup?",
    provider=FixtureLLM(default_fixture_path()),
    store=YamlStore(default_store_dir()),
    shield=True,
)
print(result.final)
print(result.critique)

judged = score(
    "What works for launching a startup?",
    "Copy the last unicorn.",
    critic=FixtureLLM(default_fixture_path()),
    store=YamlStore(default_store_dir()),
)
print(judged.critique)

Swap FixtureLLM(...) for OpenAICompat() from absencecritic.adapters.llm.openai_compat when you want a live model. The writer still never reads the notebook.


🛠️ If you are changing the code

From a checkout:

python -m pip install -e ".[dev]"
python -m pytest
python eval/run_eval.py --provider fixture

Those commands use the rehearsal. They do not call a live model.

Note

A perfect rehearsal score means the saved answers still match. It does not mean a new question was solved.

The four arms, token counts, gold files, and the commands that rerun the tests are on Measured results.

Version 0.1.x is an early release. Limits are in the changelog.

🛡️ AbsenceCritic
A second brain for language models.
It looks for the winners-only mistake.

🏠 Home

🔁 How it works

▶️ Try it

📏 Measured results

✨ Examples

📖 Words

🗺️ What comes next


Code on GitHub

Design papers

Clone this wiki locally