DeepRefine-Skill can be installed as a Codex skill. This makes $deeprefine
available in Codex while preserving the dry-run-first DeepRefine workflow.
From the Graphify / LLM-Wiki knowledge-base project root:
pip install deeprefine-cli
deeprefine codex install --projectThis installs:
.agents/skills/deeprefine/
|-- SKILL.md
|-- references/
| |-- reafiner-workflow.md
| |-- llm-prompts.md
| `-- trace-and-commands.md
`-- agents/
`-- openai.yaml
For all projects:
deeprefine codex install --userUser-wide installation writes to:
~/.codex/skills/deeprefine/
|-- SKILL.md
|-- references/
| |-- reafiner-workflow.md
| |-- llm-prompts.md
| `-- trace-and-commands.md
`-- agents/
`-- openai.yaml
After upgrading deeprefine-cli, rerun the install command to refresh the local
skill files.
Start Codex in the KB project root, then invoke:
$deeprefine
or:
/deeprefine
The Codex skill:
- Runs
deeprefine history sync-memory. - Processes pending query history from
graphify-out/.deeprefine/history.jsonl. - Uses Graphify retrieval and the session model for the Reafiner loop.
- Generates proposed
<refinement>actions when refinement is needed. - Runs
deeprefine loop validateanddeeprefine review. - Stops before graph writes and asks for explicit approval.
Review-only mode:
$deeprefine review the proposed actions
Apply mode must be explicit and should happen only after a review:
Apply the approved DeepRefine actions from the valid trace.
The skill then runs:
deeprefine loop validate --trace-file <trace> --refinement-file <actions>
deeprefine apply --trace-file <trace> --refinement-file <actions>
deeprefine loop finish --trace-file <trace> --refinement-file <actions>If the review contains LOW-confidence actions, Codex must not use
--allow-low-confidence unless the current user message explicitly accepts that
risk.
Project scope:
deeprefine codex uninstall --projectUser scope:
deeprefine codex uninstall --user- If
$deeprefineis not available, restart or reload Codex after installation. - If the skill cannot find
graphify-out/graph.json, start Codex from the KB project root. - If
deeprefineis not found, reinstall withpip install deeprefine-cliorpip install -e /path/to/DeepRefine-Skill.