Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"authentication": "ON_INSTALL"
},
"description": "Drive Geenee, the Aiden Lab's genome workspace (igv genome browser, Juicebox Hi-C contact maps, Spacewalk 3D chromatin), by chatting: search ENCODE/4DN, load maps, tracks and ensembles, navigate loci, and share views.",
"version": "1.0.1",
"version": "1.1.0",
"category": "science",
"keywords": [
"geenee",
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"name": "geenee",
"source": "./plugins/geenee",
"description": "Drive Geenee, the Aiden Lab's genome workspace (igv genome browser, Juicebox Hi-C contact maps, Spacewalk 3D chromatin), by chatting: search ENCODE/4DN, load maps, tracks and ensembles, navigate loci, and share views.",
"version": "1.0.1",
"version": "1.1.0",
"category": "science",
"keywords": [
"geenee",
Expand Down
8 changes: 4 additions & 4 deletions INSTALL-PROMPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## In claude.ai, the Claude desktop app or Cowork: send the block below, exactly

If you are running in claude.ai on the web, the Claude desktop app's Chat tab, or a Cowork task, and the Geenee tools (`open_geenee`, `igv_*`, `juicebox_*`, `spacewalk_*`) are not already callable here:
If you are running in claude.ai on the web, the Claude desktop app's Chat tab, or a Cowork task, and the Geenee tools (`open_geenee`, `share_geenee`, `igv_*`, `juicebox_*`, `spacewalk_*`) are not already callable here:

**Your entire reply is the block between the markers below, copied character for character as Markdown, without the marker comments.** Nothing before it and nothing after it. Do not summarize, shorten, reword, reorder, renumber, merge or add steps. Do not add notes, options, sources, a checklist, or an explanation of why you cannot install it yourself. Do not search for the plugin first. Then wait for the user.

Expand Down Expand Up @@ -45,7 +45,7 @@ Start by telling them, in one or two sentences: Geenee lets them drive three gen

- Marketplace: `aidenlab/plugins` on GitHub (marketplace name `aidenlab`). Plugin: `geenee`, so `geenee@aidenlab`. Display name **Geenee**.
- MCP server: `https://geenee.3dg.io/mcp`, Streamable HTTP, no authentication. It sends workflow instructions to every client on connect; the plugin adds a fuller skill on top. The server name is **Geenee**.
- A server connection supplies tools (`open_geenee`, `igv_*`, `juicebox_*`, `spacewalk_*`). The plugin supplies the skill. Both is best; tools alone are enough to work.
- A server connection supplies tools (`open_geenee`, `share_geenee`, `igv_*`, `juicebox_*`, `spacewalk_*`). The plugin supplies the skill. Both is best; tools alone are enough to work.
- **Marketplace only.** Geenee is installed only from the `aidenlab` marketplace, in every app, because only a marketplace install receives updates. Never offer, suggest or fall back to adding the server address by hand (a "custom connector" or "custom MCP server"), not even when a step fails. When a step fails, send the user to https://github.com/aidenlab/plugins/issues.
- Reuse anything already installed or connected. Never add a second connection to the same server.
- Retired: an older plugin with the id `juicebot` (shown as JuiceBot or Geenee), and connections to `juicebot-mcp.3dg.io` or `geenee-dev.3dg.io`. If you find one, help the user remove or turn it off so two tool sets do not both appear.
Expand Down Expand Up @@ -106,8 +106,8 @@ Do not put the message inside a bullet or a paragraph, do not add alternatives a

## Verification and first use (every application)

1. Call `open_geenee` once. It returns the Geenee link and a **Room id**; pass that Room id as `room` on every later tool call in this conversation. Open the link yourself only if you have a browser pane inside this app (never drive the user's own browser). If the app shows a Geenee card with an **Open geenee** button, point the user to it; otherwise show the link as a clickable URL. Ask the user to confirm the page is open: it has **IGV**, **Juicebox** and **Spacewalk** tabs.
2. Do not send viewer commands until the page is connected. If a tool reports "no page is connected" or "no Viewer is in Room", re-send the link.
1. Call `open_geenee` first, before any other Geenee tool. It returns the Geenee link and a **Room id**; pass that Room id as `room` on every later tool call in this conversation. Open the link yourself only if you have a browser pane inside this app (never drive the user's own browser). If the app shows a Geenee card with an **Open geenee** button, point the user to it; otherwise show the link as a clickable URL. Ask the user to confirm the page is open: it has **IGV**, **Juicebox** and **Spacewalk** tabs.
2. Do not send viewer commands until the page is connected. If a tool reports "no page is connected" or "no Viewer is in Room", show the link again (`share_geenee`).
3. Juicebox: find the ENCODE GM12878 in situ Hi-C map (`juicebox_search_map_catalogs`), load it at the HOXA cluster (`juicebox_load_map` with `locus`), and add the gene track (`juicebox_load_track` with `"url": "genes"`). IGV: `igv_go_to_gene` HOXA1, then `igv_search_catalogues` for GM12878 CTCF ChIP-seq and `igv_load_tracks` with the first bigWig result.
4. Tell the user what they should see: on the Juicebox tab a contact map with the HOXA region and gene annotations under it; on the IGV tab the HOXA1 locus with a CTCF signal track above the genes. Say which of installed / server connected / viewer working you have confirmed.
5. If a viewer disconnects, help them reopen the current Geenee link; if the Room has expired, open a new one.
Expand Down
2 changes: 1 addition & 1 deletion plugins/geenee/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "geenee",
"displayName": "Geenee",
"version": "1.0.1",
"version": "1.1.0",
"description": "Geenee: drive a genome workspace by chatting. One page beside the conversation holds the igv genome browser, the Juicebox Hi-C contact-map viewer and the Spacewalk 3D chromatin viewer. Search ENCODE/4DN, load maps, tracks and 3D ensembles, navigate genes and loci, compare, share. Connects to the Aiden Lab's hosted MCP server; nothing runs locally.",
"author": {
"name": "The Aiden Lab",
Expand Down
2 changes: 1 addition & 1 deletion plugins/geenee/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
"name": "geenee",
"version": "1.0.1",
"version": "1.1.0",
"description": "Geenee: drive a genome workspace by chatting. One page beside the conversation holds the igv genome browser, the Juicebox Hi-C contact-map viewer and the Spacewalk 3D chromatin viewer. Search ENCODE/4DN, load maps, tracks and 3D ensembles, navigate genes and loci, compare, share. Connects to the Aiden Lab's hosted MCP server; nothing runs locally.",
"author": {
"name": "The Aiden Lab",
Expand Down
14 changes: 8 additions & 6 deletions plugins/geenee/skills/geenee/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: geenee
description: Drives Geenee, the Aiden Lab's genome workspace holding the igv genome browser, the Juicebox Hi-C contact-map viewer and the Spacewalk 3D chromatin viewer, through the Geenee MCP tools (open_geenee, igv_*, juicebox_*, spacewalk_*), or through the bundled geenee CLI when the MCP connector is not available. Use whenever the user mentions Geenee, IGV, Juicebox, Spacewalk, a genome browser, Hi-C or contact maps, .hic or .sw files, loops, TADs, compartments, 3D chromatin structure or ensembles, ENCODE or 4DN data, bigWig/BED/peak tracks, or asks to open, load, navigate, compare, track, or share a genome view.
description: Drives Geenee, the Aiden Lab's genome workspace holding the igv genome browser, the Juicebox Hi-C contact-map viewer and the Spacewalk 3D chromatin viewer, through the Geenee MCP tools (open_geenee, share_geenee, igv_*, juicebox_*, spacewalk_*), or through the bundled geenee CLI when the MCP connector is not available. Use whenever the user mentions Geenee, IGV, Juicebox, Spacewalk, a genome browser, Hi-C or contact maps, .hic or .sw files, loops, TADs, compartments, 3D chromatin structure or ensembles, ENCODE or 4DN data, bigWig/BED/peak tracks, or asks to open, load, navigate, compare, track, or share a genome view.
---

# Geenee: IGV, Juicebox and Spacewalk from the conversation
Expand All @@ -24,16 +24,18 @@ $G call juicebox_load_map '{"url":"...hic","locus":"HOXA1"}' juicebox_load_track

If `${CLAUDE_PLUGIN_ROOT}` is unset, find the script with `find ~/.claude ~/.codex -path '*geenee/scripts/geenee.py' | head -1`, or download it: `curl -fsSL https://geenee-install.3dg.io/geenee.py -o geenee.py`. No dependencies. Exit code 2 means a tool reported an error (its message is printed); 1 means the server was unreachable. Details, options and troubleshooting: `references/cli.md`.

Chain calls that do not depend on each other into one `call`, so the user waits for one shell command rather than three. Do not retry a call that said no page or no viewer is connected; re-send the Workspace link instead.
Chain calls that do not depend on each other into one `call`, so the user waits for one shell command rather than three. Do not retry a call that said no page or no viewer is connected; give the Workspace link again instead (`$G open`).

## Session start: one Room per conversation

1. Call `open_geenee` once (or `$G open`). Its reply gives the Workspace link and the **Room id**. Keep the Room id for the whole conversation and pass it as `room` on every later tool call, for all three viewers (the CLI does this itself). Never call `open_geenee` again just to get a link: call it with the same `room` to get the same Workspace back.
1. Call `open_geenee` first (or `$G open`), before any other geenee tool and before replying, even when the user only greets geenee or one of its viewers ("hello geenee", "hi igv"). Its reply gives the Workspace link and the **Room id**. Keep the Room id for the whole conversation and pass it as `room` on every later tool call, for all three viewers (the CLI does this itself). Call it first again, without `room`, when a tool replies that the Room has expired; call it when a tool replies that there is no Room, then repeat the refused call.
- To show the Card again so others can join ("show the QR code again", "share geenee", "how do others join", "someone just arrived"): call `share_geenee` with the `room`. It opens no new Room; everyone keeps their link.
- To get the Workspace back beside the conversation: call `open_geenee` with the same `room`.
2. If a browser pane inside this app is available (Claude's built-in browser), open the link in it right away so Geenee sits beside the conversation. Do not drive the user's own browser with it.
3. Through the MCP tools, the host shows the user a Card with an **Open geenee** button, the link and a QR code; do not repeat the link in your reply. Through the CLI there is no Card: give the user the link as a plain clickable URL, not in a code block, and ask them to open it.
4. Do not send viewer commands until the page is connected: the user confirms, or `$G status` (or `juicebox_get_server_status` showing `Browser Connected: Yes`, `igv_read_session_summary` answering without error, `spacewalk_read_viewer_state` showing `Viewers connected:` above 0) says so.
5. If the user pastes a Workspace link they already have (`…?room=ID` or `…/r/ID`, theirs or a colleague's), use that Room id instead of opening a new one (`$G room <link>`). Everyone in a Room sees the same Workspace, which is also how a group looks at one view together.
6. "No page is connected" / "no Viewer is in Room" means the tab is closed, still loading, or on another Room: re-send the Workspace link. A Room that has expired stays expired: open a new one and tell the user the link changed.
5. If the user pastes a Workspace link they already have (`…?room=ID` or `…/r/ID`, theirs or a colleague's), call `open_geenee` with that `room` instead of opening a new one (`$G room <link>`). Everyone in a Room sees the same Workspace, which is also how a group looks at one view together.
6. "No page is connected" / "no Viewer is in Room" means the tab is closed, still loading, or on another Room: show the Workspace link again (`share_geenee`, or `$G open`). A Room that has expired stays expired: open a new one and tell the user the link changed.

## Which viewer

Expand Down Expand Up @@ -73,7 +75,7 @@ Report only what is verified, and keep three states apart: *installed* (the plug

## Links

The **Workspace link** (from `open_geenee`) is live and shared: whoever opens it joins the Room and follows along. A **shareable link** (`juicebox_create_shareable_url`, or IGV's Shareable URL strip via `igv_set_controls`) is a snapshot of one viewer's current view. Never give one in place of the other.
The **Workspace link** (from `open_geenee`, shown again by `share_geenee`) is live and shared: whoever opens it joins the Room and follows along. A **shareable link** (`juicebox_create_shareable_url`, or IGV's Shareable URL strip via `igv_set_controls`) is a snapshot of one viewer's current view. Never give one in place of the other.

## Conventions

Expand Down
Loading
Loading