nrepo link / unlink / links
Synopsis
Section titled “Synopsis”nrepo link <source-id> <target-id> [options]nrepo unlink <source-id> <target-id> [options]nrepo links <id> [options]Description
Section titled “Description”These three commands manage relations (edges) between ideas in your NeuralRepo graph.
nrepo linkcreates a directed relation from a source idea to a target idea.nrepo unlinkremoves an existing relation between two ideas.nrepo linkslists all relations connected to a given idea.
nrepo link
Section titled “nrepo link”Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--type <type> | string | related | Relation type: related, blocks, inspires, supersedes, parent, or duplicate. |
--note <note> | string | (none) | Optional note describing the relationship. |
--force | boolean | false | Bypass cycle detection. Use with caution. |
--json | boolean | (see auth) | Output as JSON. |
--human | boolean | (see auth) | Output as human-readable text. |
Examples
Section titled “Examples”# Create a "related" link (default)nrepo link 42 18
# Create a "blocks" link with a notenrepo link 42 18 --type blocks --note "Dark mode depends on theme system"
# Force-create a link that would form a cyclenrepo link 10 20 --forcenrepo unlink
Section titled “nrepo unlink”Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--json | boolean | (see auth) | Output as JSON. |
--human | boolean | (see auth) | Output as human-readable text. |
Example
Section titled “Example”nrepo unlink 42 18nrepo links
Section titled “nrepo links”Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--type <type> | string | (all) | Filter by relation type. |
--json | boolean | (see auth) | Output as JSON. |
--human | boolean | (see auth) | Output as human-readable text. |
Examples
Section titled “Examples”# List all links for an ideanrepo links 42
# Filter by typenrepo links 42 --type blocksOutput:
#42 Add dark mode to dashboard → #18 Theme system redesign (related) → #7 CSS variable cleanup (inspires) ← #55 Dark mode v2 (parent)Relation types
Section titled “Relation types”| Type | Meaning |
|---|---|
related | General association between ideas. |
blocks | Source idea blocks progress on target. |
inspires | Source idea inspired the target. |
supersedes | Source replaces or obsoletes the target. |
parent | Source is a variant/fork of the target. |
duplicate | Same idea captured twice. Typically auto-created by duplicate detection. |
Related commands
Section titled “Related commands”- nrepo graph — explore the connection graph
- nrepo branch — fork an idea (creates parent link)
- nrepo merge — merge ideas (creates supersedes link)
- nrepo show — view idea details including links