Skip to content
NeuralRepo
Get Support

nrepo merge

Terminal window
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.

FlagTypeDefaultDescription
--forcebooleanfalseSuppress the preview block.
--jsonbooleanfalseOutput the merged idea as JSON.
--humanbooleanForce human-readable output. Wins over --json.
FieldResult
BodyKept idea’s body, then ---, then the absorbed idea’s body. Empty bodies are skipped.
TagsUnion of both sets, on the kept idea.
RelationsEverything pointing at or from the absorbed idea is repointed at the kept idea. Self-references are removed.
created_atThe kept idea takes the earlier of the two timestamps.
Absorbed ideaStatus set to shelved and archived.
TitleThe 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.

Terminal window
nrepo merge 391 402
Merge 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.