research-helper
rh — orchestrate an AI research project end to end from the terminal.
rh turns a research idea into a gated pipeline — config → intake → environment →
literature → plan → state → implement → critique → manuscript → close — with every
artifact, task, and decision kept in files an agent can read.
The CLI is the product. The skill is additive: it teaches an AI agent (pi,
Claude, Codex, …) how to drive rh, ask the user the right questions, and respect the
gates. Install the CLI, then optionally install the skill globally.
Install
# once published to PyPI (distribution name: rh-cli, command: rh)
uv tool install rh-cli
# or straight from git
uv tool install git+https://github.com/hitaishi2222/research-helper
# or from a clone
git clone https://github.com/hitaishi2222/research-helper
cd research-helper
uv tool install .
pipx install rh-cli and pip install --user rh-cli work too.
Verify with:
rh --version
rh describe
Install the skill (optional)
rh skill install # ~/.agents/skills/research-helper/
rh skill install --dest ~/.pi/agent/skills/research-helper # pi-specific location
Pi and other Agent Skills clients discover
~/.agents/skills/ automatically. The skill is bundled in the wheel, so there is
nothing else to download.
Quickstart
rh init --slug my-project
rh env set agents.count=2 agents.backend=tmux \
literature.search=crw project.git=true
rh env show # config as a table, validated
rh phase 4 # gated: refuses to skip unmet exits
rh describe # the map an agent reads
The Orchestrator (your agent) interviews you for the environment and writes the
## Environment section of ENV.md; rh never probes or auto-fills binaries.
A tool on PATH does not mean this project should use it.
Commands
| Command | What it does |
|---|---|
rh init [--slug NAME] [--clean] |
create the .rh/ workspace |
rh env show |
print config as a table + environment notes, validate |
rh env set KEY=VALUE ... |
set any key from the §2 schema (rh env list) |
rh env list |
every settable key, type, choices, help |
rh add note <heading> [-m BODY] [--file NAME] |
create/append a note file |
rh add literature <DOI-or-heading> [-m BODY] |
append under that DOI/heading in LITERATURE.md |
rh add layout <heading> [-m BODY] |
append to OUTPUT_LAYOUT.md (patterns + our layout) |
rh add gaps|problem|plan|status|manuscript <heading> [-m BODY] |
same for the other artifacts |
rh add log --role R --title T [-m BODY] |
§7 log file |
rh add task "title" [--id S01] [--phase N] [--owner ROLE] [--state idle|working|complete] [--verify CMD] [--deliverable FILE] [--depends-on S01,S02] [--kind build|spike] |
add a board task |
rh search <query> [--max N] |
rg-first local search over .rh/ + artifacts |
rh task set <id> <idle|working|complete> |
change a task state |
rh task list [--phase N] [--state S] |
filter the board |
rh tasks [--phase N] |
lanes + progress bars + table |
rh status |
header, phase rail, per-phase progress |
rh workflow |
display the agent-authored .rh/workflow.mmd as ASCII (--tools, --example, --png, --svg) |
rh phase <0-9> |
set the current phase — gated; --force records a waiver |
rh plan import [--dry-run] |
mirror PLAN.md steps into tasks.json |
rh resume / rh -r |
open the agent harness with a go-forward prompt |
rh skill install [--dest DIR] [--force] |
install the bundled skill globally |
rh describe [--json] |
the AI map: layout, phases, env keys, budget |
Global flags (before the subcommand): --root DIR, --json, --version.
Every command supports --json for agent reads — never parse the pretty UI.
How it works
0 CONFIG → 1 INTAKE → 2 ENVIRONMENT → 3 LITERATURE → 4 PLAN → 5 STATE
→ 6 IMPLEMENT → 7 CRITIQUE → 8 MANUSCRIPT → 9 CLOSE
↑ │
└── replan ──┘
Each phase has an exit gate; rh phase refuses to advance past an unmet one.
State lives in plain files, not a database:
<project>/
.rh/ machine mirror + logs, notes, managed PDFs, tasks
src/ implementation
results/ every number + the script that produced it
papers/ unmanaged PDFs
ENV.md config block + Orchestrator-written environment notes
PROBLEM.md goal, scope, success criteria, falsifier
OUTPUT_LAYOUT.md output skeleton + patterns from comparable papers
PLAN.md approved steps
STATUS.md truth
LITERATURE.md paper takes with DOI
GAPS.md implementation sourcing + upstream gaps
MANUSCRIPT.md write-up
ENV.md is the single config source; .rh/env.json mirrors it. rh env set
rewrites the JSON block and preserves whatever the Orchestrator wrote below it.
The skill (additive)
src/rh/skills/research-helper/SKILL.md is the agent-facing half of the project.
It defines the phases, roles, gates, templates, and the ask-before list. The CLI
does not need it; the skill does not need to reimplement the CLI.
rh skill install
What the skill adds:
- Roles — Orchestrator, Literature, Researcher, Reviewer, Critique, Writer, with a budget mapping for 1–4 agents.
- Gates — user approves the plan, critique veto, "no result without a file".
- Templates —
ENV.md,STATUS.md,OUTPUT_LAYOUT.md,PLAN.mdsteps, logs. - Reading discipline — one layout, a pattern tally, DOI anchors, no paraphrasing unread papers.
Development
uv venv
uv pip install -e ".[dev]"
uv run pytest -q
uv build # sdist + wheel in dist/
uv tool install dist/*.whl # smoke-test the installed command
Layout:
pyproject.toml
src/rh/ the CLI package
src/rh/skills/ the bundled skill (package data)
tests/ pytest smoke tests
docs/IDEA.md original design notes
ROADMAP.md where this is going
Roadmap
See ROADMAP.md. Short version: publish to PyPI, harden the CLI, then add real agent orchestration.
License
MIT © 2026 Hitaishi V
Metadata
Release files for rh-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rh_cli-0.1.0.tar.gz | 46.8 kB | With provenance | Details for rh_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rh_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for rh_cli-0.1.0-py3-none-any.whl |
Total release size: 94.6 kB
Release files / rh_cli-0.1.0.tar.gz
| Download URL | rh_cli-0.1.0.tar.gz |
|---|---|
| Size | 46.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96a67d4cc81d77a2efcd66c53bbf6e5f1a40d1444e3f16d0246ac8fa2bd6dfb1
|
|
BLAKE2b-256 checksum How to use checksums |
028f52fa79ac95b45b1e380157669fe7e8be6f38b74662dfe5eb9624f8e4f9a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / rh_cli-0.1.0-py3-none-any.whl
| Download URL | rh_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 47.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c60c813a5037592911b4c8e5c3780a58f2fca5610f66f82b9f1bdd0d03002fe8
|
|
BLAKE2b-256 checksum How to use checksums |
691f6ef053a388597be2cec87336739a59562f27ef9eba7dcbd2cefdf1d363a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for rh-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rh_cli-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.