Why Agent CLI First
- Uses your current Cursor/agent session model.
- Follows the same control flow as
Reafiner.refine(). - Integrates with graphify query memory automatically.
- Handles pending queries one-by-one instead of single-query refine.
██████╗ ███████╗███████╗██████╗ ██████╗ ███████╗███████╗██╗███╗ ██╗███████╗ ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗██╔════╝██╔════╝██║████╗ ██║██╔════╝ ██║ ██║█████╗ █████╗ ██████╔╝██████╔╝█████╗ █████╗ ██║██╔██╗ ██║█████╗ ██║ ██║██╔══╝ ██╔══╝ ██╔═══╝ ██╔══██╗██╔══╝ ██╔══╝ ██║██║╚██╗██║██╔══╝ ██████╔╝███████╗███████╗██║ ██║ ██║███████╗██║ ██║██║ ╚████║███████╗ ╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝
DeepRefine-Skill plugs into agent workflows and exposes one command
/deeprefine to refine and evolve your LLM-Wiki from query interaction history.
This is the default mode and the main workflow for this project.
DeepRefine uses your current agent session model, syncs graphify memory, and refines pending history queries in batch.
Reafiner.refine()./deeprefine DoesDefault queue behavior when you invoke /deeprefine:
deeprefine history sync-memory.graphify-out/memory/query_*.md into history.jsonl.refined != true.loop finish.One-time setup at your KB project root.
Typical session in agent CLI.
After package upgrade, run deeprefine cursor install again to refresh local skill files.
Use this mode when you want a pure terminal workflow without /deeprefine.
This mode requires the original DeepRefine repository in your environment.
Terminal workflow (recommended path).
Run from your KB project root.
| Command | Description |
|---|---|
deeprefine cursor install |
Install /deeprefine skill into current project |
deeprefine cursor install --user |
Install skill for all projects (~/.cursor/skills/) |
deeprefine history sync-memory |
Import graphify-out/memory/query_*.md into DeepRefine history |
deeprefine history list --pending |
Show unrefined queue |
deeprefine loop init --query "..." |
Create loop_trace_<id>.json template |
deeprefine loop validate --trace-file T |
Validate trace against Reafiner control flow |
deeprefine apply --trace-file T --refinement-file F |
Apply <refinement> actions to graph.json |
deeprefine loop finish --trace-file T [--refinement-file F] |
Persist results and mark history refined |
| Command | Description |
|---|---|
deeprefine history add --query "..." |
Append one query to history |
deeprefine history list |
List all history rows |
deeprefine history sync-memory |
Import graphify memory queries into history |
deeprefine history list --pending |
List only unrefined queries |
deeprefine refine |
Refine all pending |
deeprefine refine --query "..." |
Refine one query |
deeprefine refine --rebuild-index |
Rebuild FAISS first |
deeprefine index --rebuild |
Rebuild FAISS cache only |
Structured artifacts for reproducibility, auditing, and iterative graph improvement.