gitwtfhub

wtf is codex-hygiene?

sunflower-of-parchman/codex-hygiene — explained in plain English

Analysis updated 2026-05-18

244PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TL;DR

A read only Codex skill that reports how much you have used Codex, without ever changing your settings itself.

Mindmap

mindmap
  root((codex-hygiene))
    What it does
      Measure token usage
      Review activity window
      Report Codex profile
    Tech stack
      Python
      Bash
      SQLite
    Use cases
      Audit token usage
      Review installed plugins
      Suggest cleanup steps
    Audience
      Codex CLI users
      Developers
      Ops minded users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Check how many tokens and tool calls a Codex session has used recently.

REASON 2

Generate a Markdown or JSON report of Codex activity over the last one to ninety days.

REASON 3

Review which plugins, MCP connections, and Apps are enabled in your Codex profile.

REASON 4

Get reversible suggestions for reducing unnecessary token use before making changes yourself.

What's in the stack?

PythonBashSQLitejq

How it stacks up

sunflower-of-parchman/codex-hygienejawaz-keyzor/darkgptkocasariumut/faceanything
Stars244244243
LanguagePythonPythonPython
Setup difficultyeasymoderatehard
Complexity2/52/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Requires an existing Codex Desktop or Codex CLI installation to measure.

Use freely for any purpose, including commercial use, under the MIT license.

Wtf does this do

Codex Hygiene is a skill for OpenAI's Codex that helps you understand how you have been using it. It is read only and does not change any settings on its own, it just measures and reports. There are two main ways to use it. The first is a quick measurement that prints small counts pulled from recent Codex telemetry, such as tool list activity and token usage per conversation thread. The second is a fuller activity review covering a chosen window of one to ninety days, which can be output as Markdown or as machine readable JSON. This review pulls from local SQLite telemetry and, by default, digs a bit deeper into rollout records to add details like how long tasks took, how much output different tools produced relative to each other, how often verification commands were run, when context was explicitly compacted, and when skill documentation was read. The review also looks at your current Codex profile: which plugins are installed and their state, whether MCP connections and Apps are available, and how many project specific configuration stanzas exist. After gathering all of this, it separates what it directly observed from what it is interpreting, and it clearly marks anything it cannot determine as unknown. Based on the measurement, it can suggest small, reversible cleanup steps, but it will not make any changes without your explicit approval. Privacy is treated carefully. Full logs, configuration files, tool schemas, secrets, and environment variable values are never included in a report, and prompts, responses, thread titles, and file paths stay private too. To install it, you clone the repository into your local Codex skills folder, and Codex should detect it automatically. It works on macOS and Unix like systems and needs common shell tools plus Python 3 for the fuller review. It is released under the MIT license.

Yoink these prompts

Prompt 1
Walk me through installing codex-hygiene into my Codex skills folder and running the quick measurement.
Prompt 2
Show me how to generate a 30 day Codex activity review in JSON format using codex-hygiene.
Prompt 3
Explain what the plugin weight table in a codex-hygiene report is telling me.
Prompt 4
Help me interpret the high confidence versus unknown sections of a codex-hygiene activity review.

Frequently asked questions

wtf is codex-hygiene?

A read only Codex skill that reports how much you have used Codex, without ever changing your settings itself.

What language is codex-hygiene written in?

Mainly Python. The stack also includes Python, Bash, SQLite.

What license does codex-hygiene use?

Use freely for any purpose, including commercial use, under the MIT license.

How hard is codex-hygiene to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is codex-hygiene for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.