nrepo merge
nrepo merge <keep-id> <absorb-id> [options]Folds the second idea into the first. The kept idea takes both bodies and both tag sets; the absorbed one is shelved and archived.
Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--force | boolean | false | Suppress the preview block. |
--json | boolean | false | Output the merged idea as JSON. |
--human | boolean | — | Force human-readable output. Wins over --json. |
What a merge does
Section titled “What a merge does”| Field | Result |
|---|---|
| Body | Kept idea’s body, then ---, then the absorbed idea’s body. Empty bodies are skipped. |
| Tags | Union of both sets, on the kept idea. |
| Relations | Everything pointing at or from the absorbed idea is repointed at the kept idea. Self-references are removed. |
created_at | The kept idea takes the earlier of the two timestamps. |
| Absorbed idea | Status set to shelved and archived. |
| Title | The kept idea’s. The absorbed title is discarded. |
| Links (URLs) | Stay with the absorbed idea — they are not transferred. |
Because the absorbed idea is archived, it disappears from nrepo log, nrepo search, and the
status counts — this is not the same as manually moving it to shelved, which leaves it visible.
And because the kept idea inherits the earlier creation date, it may move down your
nrepo log.
Output
Section titled “Output”nrepo merge 391 402Merge preview: Keep: #42 "Rewrite auth flow" [exploring] Absorb: #43 "Auth rewrite — JWT variant" [captured]
The absorbed idea will be shelved and archived. Bodies will be concatenated, tags merged.
✓ Merged #43 into #42 Title: "Rewrite auth flow" Tags: auth, security, jwt #43 "Auth rewrite — JWT variant" → shelved (superseded by #42)The preview is printed and the merge proceeds — it is a record of what is about to happen, not a prompt. The closing “superseded by” is wording, not a relation.
Two guards do apply before anything is written: identical IDs are rejected with
Cannot merge an idea with itself, and a missing idea returns API error (404): One or both ideas not found.
Merging a detected duplicate is a different operation
Section titled “Merging a detected duplicate is a different operation”nrepo duplicate merge resolves a detection rather than merging two
ideas you chose, and the two behave differently — the duplicate path keeps the newer idea and
does not transfer relations. Do not treat them as aliases.