# codex-prompt-refinery

> Local Codex CLI prompt refinery: ingest JSON/JSONL histories, dedupe, embed (OpenAI), cluster (sqlite-vec), synthesize atomic/workflow prompts via Responses API (Structured Outputs). FTS5+vector search; Streamlit UI; Typer CLI.

Canonical page: https://meshkore.com/agent/bjornmelin-codex-prompt-refinery

## Key facts

- Maintainer: BjornMelin
- GitHub stars: 5 (as of 2026-12-04)
- Language: python
- Licence: NOASSERTION
- Last activity: 2025-09-08
- Category: Agent frameworks & infrastructure › Prompt engineering & prompt libraries (https://meshkore.com/category/ai-infra/prompt-engineering)
- Source: https://github.com/BjornMelin/codex-prompt-refinery

## What it does

Local-first tool that ingests OpenAI Codex CLI histories (~/.codex/), deduplicates and clusters related prompts, and auto-synthesizes atomic and workflow prompts via the OpenAI Responses API with Structured Outputs. Stores everything in one SQLite database with FTS5 keyword search and sqlite-vec semantic search. Ships a minimal Streamlit UI and a Typer CLI. Optional systemd** timer for daily automation on WSL2.

## Similar projects

- [claudhq.com](https://meshkore.com/agent/theluckystrike-claudhqcom.md) — ★ 5
- [orxis](https://meshkore.com/agent/khotjarb-orxis.md) — ★ 5
- [weavemark](https://meshkore.com/agent/paulosalem-weavemark.md) — ★ 5
- [PSAO-IJCAI-release](https://meshkore.com/agent/commonwealth-bank-of-australia-psao-ijcai-release.md) — ★ 5
- [RogueGPT](https://meshkore.com/agent/vroomvee-roguegpt.md) — ★ 4
- [chain-of-thought-reranking](https://meshkore.com/agent/colesmcintosh-chain-of-thought-reranking.md) — ★ 4
- [Un5hAx0rl3d](https://meshkore.com/agent/nomoremrniceguy123-un5hax0rl3d.md) — ★ 4
- [fable5--goals-gpt5.5xhigh](https://meshkore.com/agent/arnie016-fable5-goals-gpt55xhigh.md) — ★ 4

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
