hopdeck 0.0.0-stage → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,48 @@
1
+ # Cambios
2
+
3
+ ## 1.2.1
4
+
5
+ ### Corregido
6
+ - **Conversaciones que no aparecían en la lista** (y por tanto tampoco mostraban sus imágenes al pasar el cursor): Hopdeck solo leía los primeros 64 KB de cada archivo para sacar el título. Si el primer mensaje llevaba una imagen (cientos de KB) y Claude aún no había guardado un título, la conversación se descartaba. Ahora lee el principio del archivo por bloques, hasta 4 MB, hasta encontrar el primer mensaje.
7
+ - **Las cachés guardadas con la versión anterior se reconstruyen**, para que ese arreglo llegue también a quien ya tenía la lista cacheada.
8
+ - **Imágenes duplicadas en la galería:** Claude Code guarda cada imagen otra vez en una línea interna (`api-request-blob`). Ya no se cuentan dos veces.
9
+ - **Hover de imagen en un chat nuevo:** si todavía no se había enlazado con su conversación, podía mostrar la imagen de otra conversación del mismo proyecto cuando coincidía el número. Ahora solo toma una conversación creada después de abrir el chat.
10
+ - **Detección de `[Image #N]`:** calcula bien la columna con caracteres anchos delante (emoji, CJK) y acepta espacios no separables.
11
+ - **Pregunta del primer arranque:** al responder, la pregunta se borra de la pantalla y deja una línea de resumen (antes se quedaba escrita como si siguiera pendiente), y el texto aclara que responder que no no impide abrir Hopdeck: el atajo solo afecta a lo que ocurre al escribir `claude`.
12
+ - **Aviso de tamaño mínimo:** decía 60×12 y el programa exige 70×12.
13
+
14
+ ## 1.2.0 · primera versión pública
15
+
16
+ ### Nuevo
17
+ - **Instalación en un solo comando:** la primera vez que se abre, Hopdeck pregunta si escribir `claude` debe abrirlo (con copia de seguridad del perfil). Responder "No" se recuerda y "Más tarde" no cuenta; no pregunta si el atajo ya está instalado. `HOPDECK_NOPROMPT=1` lo desactiva.
18
+ - **Vista previa al pasar el cursor:** con el ratón basta pasar por la lista para ver la conversación; ya no hace falta moverse con las flechas.
19
+ - **Imágenes en el chat:** al pasar el cursor sobre un `[Image #N]` de un mensaje ya enviado aparece un cuadro flotante con esa imagen, pegado a la marca y sin tapar el resto del chat. Funciona también con imágenes más allá de las 200 de la galería (se busca en todo el historial).
20
+ - **Selector de carpetas (`o`):** se navega desde `~` con flechas (`⏎` entra, `←` sube, `espacio` abre un chat en la carpeta resaltada). `/` filtra, `.` muestra las ocultas, `~` vuelve al inicio, y en Windows `←` desde la raíz lista las unidades. Las carpetas usadas recientemente salen arriba. `+ Nueva carpeta aquí…` crea una carpeta escribiendo solo el nombre (pide confirmar).
21
+ - **Chats nuevos en la lista:** un chat abierto en una carpeta sin historial aparece al instante bajo su proyecto y se enlaza con su conversación cuando Claude la guarda.
22
+ - **Cajas de texto con cursor** (`o`, `R`, `/`, `Ctrl+P`): `← →`, `Inicio`/`Fin`, `Supr` y `Ctrl+U`.
23
+ - **Rueda del ratón sobre el chat:** si Claude usa pantalla completa o captura el ratón, la rueda se le reenvía (flechas o eventos de ratón). La barra inferior muestra la posición al hacer scroll (`↑ 12 líneas (40%)`).
24
+ - **`hopdeck doctor` revisa Windows Terminal:** avisa si `Ctrl+V` solo pega texto (no deja pegar imágenes en Claude) y muestra la línea de `settings.json` que lo arregla.
25
+ - **`hopdeck install` guarda una copia de seguridad** del perfil de shell (`<perfil>.hopdeck-backup`) antes de modificarlo por primera vez, y no la sobrescribe. `hopdeck uninstall` ya no toca ni crea archivos que no tengan el atajo.
26
+ - Límites ajustables en `~/.hopdeck.json`: `maxImages` (200 por defecto, antes 40) y `previewMsgs` (12, antes 8).
27
+
28
+ ### Seguridad
29
+ - **Texto del historial saneado:** títulos, mensajes y rutas procedentes del historial se limpian de caracteres de control y secuencias de escape (cambiar el título del terminal, escribir en el portapapeles con OSC 52, borrar la pantalla…) y de controles de dirección Unicode antes de dibujarse, en las notificaciones y en `hopdeck --list`.
30
+ - **Imágenes exportadas:** la extensión del archivo se decide por los bytes reales de la imagen y no por el `media_type` del historial (un resultado de herramienta podía declarar `image/exe` y acabar guardado y abierto con `o`). Lo que no es una imagen reconocible se guarda como `.bin` y no se abre.
31
+ - **Carpetas temporales privadas y aleatorias** para las imágenes (se borran al salir) y para la configuración de tmux, en lugar de nombres fijos en `/tmp` que otro usuario del equipo podía anticipar.
32
+ - La caché y las preferencias se crean con permisos solo para el usuario.
33
+ - Solo se reanudan sesiones con un identificador normal (`[A-Za-z0-9._-]`), porque sale del nombre de un archivo.
34
+ - `notify-send` recibe `--` antes del mensaje para que un texto que empiece por `-` no se tome como opción.
35
+
36
+ ### Corregido
37
+ - **Requisito: Node.js 22 o superior.** En Windows, Node 18 y 20 no entregan al programa los eventos de ratón (hover, clics y rueda), así que no se pueden soportar. `hopdeck doctor` avisa si tu Node es anterior.
38
+ - **Teclas F1–F5 con Node 18 en Windows:** llegaban con la forma de la consola de Linux (`ESC [ [ A`…) y se reenviaban al chat como texto. Ahora se reconocen (también en la consola real de Linux).
39
+ - **Ratón en el modo tmux** (el que se usa por defecto en macOS, Linux y WSL con tmux): la lista no respondía a la rueda ni a los clics, porque tmux solo reenvía el ratón a los paneles que lo piden. Ahora la rueda mueve la lista y un clic despliega o abre la conversación (también en el selector de carpetas y en el salto rápido). `F3` lo apaga.
40
+ - **Lentitud en WSL:** la rama de git se leía en cada dibujo (unos 4 ms cada vez desde `/mnt/c`) y `claude` se buscaba en todo el `PATH` cada vez que abrías un chat (hasta ~120 ms con las rutas de Windows). Ahora la rama se guarda 3 s y la ubicación de `claude` se recuerda.
41
+ - Teclas desconocidas (`Supr`, F-teclas…) ya no insertan caracteres basura en las cajas de texto.
42
+ - Los redibujados por movimiento del ratón se agrupan, para que el hover no ralentice en equipos lentos.
43
+
44
+ ### Interno
45
+ - CI: job de `npm audit` y de comprobación del contenido del paquete, ejecución semanal programada, permisos mínimos y cancelación de ejecuciones repetidas. Dependabot propone actualizaciones de dependencias y acciones cada semana.
46
+ - Plantillas de issues (error e idea, en español e inglés) y de pull request con la lista de comprobación de seguridad.
47
+ - El código se divide en módulos (`lib/`): `i18n`, `style`, `text`, `history`, `images`, `keys` y `windows-terminal`. `bin/hopdeck.js` conserva la interfaz y el estado compartido.
48
+ - Nuevas pruebas: edición de texto, detección de Windows Terminal, selector de carpetas, imágenes numeradas, chats nuevos y una batería de interfaz en un PTY real (`test/ui.test.js`). La prueba de extremo a extremo ya funciona al ejecutarla desde WSL.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 fabriciodev26
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.en.md ADDED
@@ -0,0 +1,225 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="docs/logo-dark.svg">
4
+ <img alt="Hopdeck" src="docs/logo-light.svg" width="300">
5
+ </picture>
6
+ </p>
7
+
8
+ <p align="center"><b>Hop between your Claude Code projects and conversations without leaving the terminal.</b></p>
9
+
10
+ [Español](README.md) · **English**
11
+
12
+ [![npm](https://img.shields.io/npm/v/hopdeck.svg)](https://www.npmjs.com/package/hopdeck)
13
+ [![CI](https://github.com/fabriciodev26/hopdeck/actions/workflows/ci.yml/badge.svg)](https://github.com/fabriciodev26/hopdeck/actions/workflows/ci.yml)
14
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
15
+ [![Node](https://img.shields.io/badge/node-%E2%89%A522-brightgreen.svg)](package.json)
16
+
17
+ Type `claude` in your terminal and **pick which project and conversation to continue**, without leaving and without `cd`.
18
+ The project list stays on the left and the conversation on the right.
19
+
20
+ ![Split view: project list on the left, chat on the right](docs/screenshots/02-vista-dividida.svg)
21
+
22
+ > **Independent community project.** Not affiliated with, endorsed or sponsored by Anthropic.
23
+ > "Claude" and "Claude Code" are trademarks of Anthropic, PBC. Hopdeck only reads the local history that Claude Code already keeps on your machine and launches the `claude` command you have installed.
24
+
25
+ ## Contents
26
+
27
+ [Why](#why) · [Install](#install) · [Getting started](#getting-started) · [Keys](#keys) · [Features](#features) · [Compatibility](#compatibility) · [Configuration](#configuration) · [Privacy](#privacy) · [Troubleshooting](#troubleshooting) · [Contributing and license](#contributing-and-license)
28
+
29
+ ## Why
30
+
31
+ Claude Code stores each conversation tied to a folder. To resume one you have to remember the folder, `cd` into it and run `claude --resume`.
32
+ Hopdeck shows **all your projects and conversations on one screen**, with previews, search, and several chats open at once.
33
+
34
+ ## Install
35
+
36
+ **You need**
37
+
38
+ - [Node.js](https://nodejs.org) 22 or newer.
39
+ - [Claude Code](https://claude.com/claude-code) installed (the `claude` command must work in your terminal).
40
+ - A terminal with color. On Windows, **Windows Terminal** is recommended.
41
+
42
+ **Install**
43
+
44
+ ```bash
45
+ npm install -g hopdeck
46
+ hopdeck
47
+ ```
48
+
49
+ Done. You can also try it without installing: `npx hopdeck`.
50
+
51
+ **The first time** you open it, Hopdeck asks whether typing `claude` should open it. If you say yes, it adds a small `claude` function to your shell profile (bash, zsh, fish or PowerShell), after saving a **backup** of the profile (it works in a new terminal):
52
+
53
+ - `claude` alone → opens Hopdeck.
54
+ - `claude <any argument>` (`-p`, `--resume`, `--model`…) → works exactly as usual.
55
+
56
+ You can say no and always use `hopdeck`. If you change your mind: `hopdeck install`.
57
+
58
+ **Remove it:** `hopdeck uninstall`. To skip it once: `HOPDECK_SKIP=1 claude`.
59
+
60
+ **Something wrong?** Run `hopdeck doctor`: it checks your setup and tells you how to fix whatever is missing.
61
+
62
+ ## Getting started
63
+
64
+ ![Project list and preview of the selected conversation](docs/screenshots/01-lista-y-vista-previa.svg)
65
+
66
+ 1. Pick a project with `↑` `↓` or by hovering it with the mouse.
67
+ 2. `→` or `⏎` expands its conversations. While you move, the right pane shows **a preview**.
68
+ 3. `⏎` on a conversation **resumes** it. `+ New conversation` (or `n`) starts a new one in that project.
69
+ 4. `F1` goes back to the list and `F2` to the chat. Opened conversations **stay alive** while you switch (marked with `●`).
70
+ 5. `q` closes Hopdeck. Your history stays saved and can be resumed.
71
+
72
+ ## Keys
73
+
74
+ | Key | Action |
75
+ |---|---|
76
+ | `↑` `↓` (or `j` `k`) | Move through the list |
77
+ | `→` / `⏎` | Expand the project / resume the conversation |
78
+ | `←` / `esc` | Back |
79
+ | `n` | New conversation in the selected project |
80
+ | `o` | **Pick a folder** and open a chat there ([see below](#pick-a-folder)) |
81
+ | `/` | Search by project or title (`Tab` also searches inside the text) |
82
+ | `Ctrl+P` / `F5` | **Quick jump** across every conversation of every project |
83
+ | `F1` / `F2` | Focus the list / the chat |
84
+ | `c` / `F6` | Close the open chat |
85
+ | `i` / `F7` | View the conversation's images |
86
+ | `p` | Pin the project on top (★) |
87
+ | `x` / `H` | Hide the project / show hidden and archived |
88
+ | `R` | Rename the conversation |
89
+ | `a` | Archive / unarchive the conversation (nothing is deleted) |
90
+ | `[` `]` | Narrow / widen the list |
91
+ | `F3` | Turn the mouse off/on (to select text with the terminal) |
92
+ | `F4` | Hide/show the list to give the chat the full width |
93
+ | `r` · `?` · `q` | Reload · help · quit |
94
+
95
+ Every text box supports a cursor: `←` `→`, `Home`/`End`, `Delete`, and `Ctrl+U` to clear up to the start.
96
+
97
+ ## Features
98
+
99
+ ### Hover preview
100
+
101
+ With no chat open, the right pane shows the last messages of the selected conversation. With the mouse you only need to **hover** the list, no click needed.
102
+
103
+ ### Pick a folder
104
+
105
+ ![Folder picker](docs/screenshots/03-selector-de-carpetas.svg)
106
+
107
+ Press `o` to open a chat in **any folder**, with or without history, without typing paths:
108
+
109
+ | Key | Action |
110
+ |---|---|
111
+ | `↑` `↓` | Move |
112
+ | `⏎` / `→` | **Enter** the highlighted folder (to keep browsing) |
113
+ | `space` | **Open a chat** in the highlighted folder, without entering |
114
+ | `✔ Open chat here` | Open a chat in the folder you are looking at |
115
+ | `←` | Go up one level (on Windows, from a drive root it lists the drives) |
116
+ | `/` | Filter folders by typing |
117
+ | `.` | Show / hide hidden folders |
118
+ | `~` | Back to your home folder |
119
+ | `n` or `+ New folder here…` | Create a folder by typing just its name (asks for a second `⏎` to confirm) |
120
+
121
+ It always starts at `~`. Recently used folders appear on top (`↻ recent`).
122
+
123
+ ### Quick jump
124
+
125
+ ![Quick jump with Ctrl+P](docs/screenshots/05-salto-rapido.svg)
126
+
127
+ `Ctrl+P` searches **every** conversation of **every** project (title, project and first message). `⏎` opens it directly.
128
+
129
+ ### Images in the chat
130
+
131
+ ![Floating box with the image when hovering [Image #1]](docs/screenshots/04-hover-imagen.svg)
132
+
133
+ - If a chat shows `[Image #3]` (an image you already sent), **hover it** and a box shows that image without covering the rest of the chat.
134
+ - `i` / `F7` opens a **gallery** with all the conversation's images (`← →` navigate, `o` opens it in the system viewer, `Esc` closes).
135
+ - An image you just pasted and have not sent yet **cannot** be shown: it is not in the history yet.
136
+
137
+ ### Chat status
138
+
139
+ - A new chat shows up in the list immediately (`● New conversation`), even if the folder has no history yet.
140
+ - Each chat shows its status: an indicator while Claude works, `●` when waiting and `✔` when it finished while you were looking elsewhere. When one finishes you get a bell and a desktop notification (turn it off in the settings).
141
+ - When you reopen Hopdeck it remembers the project and conversation you were on.
142
+
143
+ ### Scroll and copy
144
+
145
+ - **Scroll** the chat with the mouse wheel or `PgUp` / `PgDn`; `End` or typing returns you to the bottom.
146
+ - **Copy:** drag with the mouse over the chat and the text goes to the clipboard. `F3` turns the mouse off if you prefer terminal selection (or use `Shift`+drag).
147
+
148
+ ### More
149
+
150
+ - The project's **git branch** is shown and the list refreshes itself.
151
+ - `hopdeck --list` prints the projects as plain text. `hopdeck <arguments>` passes them to `claude` when opening chats (for example `hopdeck --model opus`).
152
+ - Available in **Spanish and English** (follows the system language).
153
+
154
+ ## Compatibility
155
+
156
+ | System | Works with | Notes |
157
+ |---|---|---|
158
+ | **Windows** | PowerShell, CMD, Windows Terminal | All features. This is where it has been tested the most. |
159
+ | **macOS / Linux** | Any terminal with color | With `tmux` installed it uses tmux panes (the list responds to the wheel and clicks, but no hover preview or chat images); without `tmux`, it uses a built-in terminal with every feature. |
160
+ | **WSL** | Same as Linux | Reads WSL's history, which is separate from Windows' (see [troubleshooting](#troubleshooting)). |
161
+
162
+ ## Configuration
163
+
164
+ You almost never need to change anything. The most useful options:
165
+
166
+ | Environment variable | Effect |
167
+ |---|---|
168
+ | `HOPDECK_LANG` | `es` or `en` (default: system language) |
169
+ | `HOPDECK_THEME` | `light` for light backgrounds |
170
+ | `NO_COLOR` | Disable colors |
171
+ | `CLAUDE_CONFIG_DIR` | Claude Code folder, if it is not `~/.claude` |
172
+ | `HOPDECK_SKIP=1` | Skip Hopdeck once: `HOPDECK_SKIP=1 claude` |
173
+
174
+ Your preferences (pinned and hidden projects, list width, mouse…) are saved automatically in `~/.hopdeck.json`.
175
+
176
+ <details>
177
+ <summary>Advanced options</summary>
178
+
179
+ Keys in `~/.hopdeck.json` you can edit by hand:
180
+
181
+ | Key | Purpose | Default |
182
+ |---|---|---|
183
+ | `notify` | Desktop notification when a chat finishes | `true` |
184
+ | `mouse` | Mouse enabled (`F3` toggles) | `true` |
185
+ | `sidebar` | List width (`[` and `]` adjust it) | automatic |
186
+ | `maxImages` | Max images per conversation in the gallery | `200` |
187
+ | `previewMsgs` | Messages shown in the preview | `12` |
188
+
189
+ Other variables: `HOPDECK_EMBED=1` forces the built-in terminal, `HOPDECK_NOTMUX=1` avoids tmux and `HOPDECK_NOEMBED=1` disables it; `HOPDECK_CONFIG` and `HOPDECK_CACHE` change the paths of your preferences and the cache.
190
+
191
+ </details>
192
+
193
+ ## Privacy
194
+
195
+ - **Nothing is sent to the internet.** No telemetry, no analytics, no network requests. Everything happens on your machine.
196
+ - It reads your local Claude Code history and launches the `claude` you already have. It does not touch your session or your credentials.
197
+ - It only writes its preferences and cache (in your home folder), the `hopdeck install` block in your shell profile and, if you rename a conversation, that conversation's title.
198
+
199
+ More details, and how to report a security problem: [SECURITY.md](SECURITY.md).
200
+
201
+ ## Troubleshooting
202
+
203
+ Always start with `hopdeck doctor`.
204
+
205
+ **`Ctrl+V` does not paste images (Windows Terminal).** Windows Terminal keeps `Ctrl+V` for text paste. Options:
206
+ - Use **`Alt+V`**, which pastes the image into Claude with no setup.
207
+ - Or remap `Ctrl+V`: in *Settings → Open JSON file*, inside `"actions"`, add
208
+ `{ "command": { "action": "sendInput", "input": "\u001bv" }, "keys": "ctrl+v" }`
209
+ and remove `ctrl+v` from the paste action. Text still pastes with `Ctrl+Shift+V`.
210
+
211
+ **I can't see a conversation I just had.** Hopdeck reads the history of the system it runs on. If you use Claude Code in **both WSL and Windows**, each has its own history, and the Windows Hopdeck does not see what you did in WSL (or vice versa). A new chat shows up in the list right away, but it only links to its conversation once Claude saves it (after your first message).
212
+
213
+ **The mouse wheel doesn't scroll the chat.** It works with the chat history and with Claude in full screen. If it does not respond, use `PgUp` / `PgDn`.
214
+
215
+ **I can't select text with the mouse.** Press `F3` to turn Hopdeck's mouse off, or hold `Shift` while dragging.
216
+
217
+ **I want `claude` back to normal.** `hopdeck uninstall`, or `HOPDECK_SKIP=1 claude` to skip it once.
218
+
219
+ **It looks wrong in my terminal.** Try `HOPDECK_THEME=light` (light background) or `NO_COLOR=1`.
220
+
221
+ ## Contributing and license
222
+
223
+ Want to help or see how it is built? See [CONTRIBUTING.md](CONTRIBUTING.md). Change history: [CHANGELOG.md](CHANGELOG.md) (Spanish).
224
+
225
+ [MIT](LICENSE) © 2026 fabriciodev26. Dependencies keep their own licenses ([details](THIRD_PARTY_NOTICES.md)).
package/README.md CHANGED
@@ -1,3 +1,225 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="docs/logo-dark.svg">
4
+ <img alt="Hopdeck" src="docs/logo-light.svg" width="300">
5
+ </picture>
6
+ </p>
2
7
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
8
+ <p align="center"><b>Salta entre tus proyectos y conversaciones de Claude Code, sin salir de la terminal.</b></p>
9
+
10
+ **Español** · [English](README.en.md)
11
+
12
+ [![npm](https://img.shields.io/npm/v/hopdeck.svg)](https://www.npmjs.com/package/hopdeck)
13
+ [![CI](https://github.com/fabriciodev26/hopdeck/actions/workflows/ci.yml/badge.svg)](https://github.com/fabriciodev26/hopdeck/actions/workflows/ci.yml)
14
+ [![Licencia: MIT](https://img.shields.io/badge/licencia-MIT-blue.svg)](LICENSE)
15
+ [![Node](https://img.shields.io/badge/node-%E2%89%A522-brightgreen.svg)](package.json)
16
+
17
+ Escribe `claude` en tu terminal y **elige en qué proyecto y conversación seguir**, sin salir y sin hacer `cd`.
18
+ La lista de proyectos queda a la izquierda y la conversación a la derecha.
19
+
20
+ ![Vista dividida: lista de proyectos a la izquierda y el chat a la derecha](docs/screenshots/02-vista-dividida.svg)
21
+
22
+ > **Proyecto independiente de la comunidad.** No está afiliado, respaldado ni patrocinado por Anthropic.
23
+ > "Claude" y "Claude Code" son marcas de Anthropic, PBC. Hopdeck solo lee el historial local que Claude Code ya guarda en tu equipo y lanza el comando `claude` que tú tengas instalado.
24
+
25
+ ## Índice
26
+
27
+ [Por qué](#por-qué) · [Instalación](#instalación) · [Primeros pasos](#primeros-pasos) · [Teclas](#teclas) · [Funciones](#funciones) · [Compatibilidad](#compatibilidad) · [Configuración](#configuración) · [Privacidad](#privacidad) · [Problemas frecuentes](#problemas-frecuentes) · [Colaborar y licencia](#colaborar-y-licencia)
28
+
29
+ ## Por qué
30
+
31
+ Claude Code guarda cada conversación ligada a una carpeta. Para retomar una hay que acordarse de en qué carpeta estaba, hacer `cd` y abrir `claude --resume`.
32
+ Hopdeck te enseña **todos tus proyectos y conversaciones en una sola pantalla**, con vista previa, búsqueda y varios chats abiertos a la vez.
33
+
34
+ ## Instalación
35
+
36
+ **Necesitas**
37
+
38
+ - [Node.js](https://nodejs.org) 22 o superior.
39
+ - [Claude Code](https://claude.com/claude-code) instalado (el comando `claude` debe funcionar en tu terminal).
40
+ - Una terminal con color. En Windows se recomienda **Windows Terminal**.
41
+
42
+ **Instalar**
43
+
44
+ ```bash
45
+ npm install -g hopdeck
46
+ hopdeck
47
+ ```
48
+
49
+ Listo. También puedes probarlo sin instalar: `npx hopdeck`.
50
+
51
+ **La primera vez** que lo abras, Hopdeck te pregunta si quieres que escribir `claude` lo abra. Si dices que sí, añade una pequeña función `claude` a tu perfil de shell (bash, zsh, fish o PowerShell), después de guardar una **copia de seguridad** del perfil (en una terminal nueva ya funciona):
52
+
53
+ - `claude` solo → abre Hopdeck.
54
+ - `claude <cualquier argumento>` (`-p`, `--resume`, `--model`…) → funciona exactamente igual que siempre.
55
+
56
+ Puedes decir que no y usar siempre `hopdeck`. Si cambias de idea: `hopdeck install`.
57
+
58
+ **Quitarlo:** `hopdeck uninstall`. Para saltarlo una sola vez: `HOPDECK_SKIP=1 claude`.
59
+
60
+ **¿Algo no va bien?** Ejecuta `hopdeck doctor`: revisa tu instalación y dice cómo arreglar lo que falte.
61
+
62
+ ## Primeros pasos
63
+
64
+ ![Lista de proyectos y vista previa de la conversación seleccionada](docs/screenshots/01-lista-y-vista-previa.svg)
65
+
66
+ 1. Elige un proyecto con `↑` `↓` o pasando el ratón por encima.
67
+ 2. `→` o `⏎` despliega sus conversaciones. Mientras te mueves, el panel derecho muestra **una vista previa**.
68
+ 3. `⏎` sobre una conversación la **reanuda**. `+ Nueva conversación` (o `n`) empieza una nueva en ese proyecto.
69
+ 4. `F1` vuelve a la lista y `F2` al chat. Las conversaciones abiertas **siguen vivas** mientras cambias de una a otra (llevan un `●`).
70
+ 5. `q` cierra Hopdeck. El historial queda guardado y se puede reanudar.
71
+
72
+ ## Teclas
73
+
74
+ | Tecla | Acción |
75
+ |---|---|
76
+ | `↑` `↓` (o `j` `k`) | Moverte por la lista |
77
+ | `→` / `⏎` | Desplegar el proyecto / reanudar la conversación |
78
+ | `←` / `esc` | Volver |
79
+ | `n` | Nueva conversación en el proyecto seleccionado |
80
+ | `o` | **Elegir una carpeta** y abrir un chat ahí ([ver abajo](#elegir-una-carpeta)) |
81
+ | `/` | Buscar por proyecto o título (`Tab` busca también dentro del texto) |
82
+ | `Ctrl+P` / `F5` | **Salto rápido** entre todas las conversaciones de todos los proyectos |
83
+ | `F1` / `F2` | Foco en la lista / en el chat |
84
+ | `c` / `F6` | Cerrar el chat abierto |
85
+ | `i` / `F7` | Ver las imágenes de la conversación |
86
+ | `p` | Fijar el proyecto arriba (★) |
87
+ | `x` / `H` | Ocultar el proyecto / mostrar ocultos y archivadas |
88
+ | `R` | Renombrar la conversación |
89
+ | `a` | Archivar / desarchivar la conversación (no se borra nada) |
90
+ | `[` `]` | Estrechar / ensanchar la lista |
91
+ | `F3` | Apagar/encender el ratón (para seleccionar texto con el terminal) |
92
+ | `F4` | Ocultar/mostrar la lista para dar todo el ancho al chat |
93
+ | `r` · `?` · `q` | Recargar · ayuda · salir |
94
+
95
+ En todas las cajas de texto puedes mover el cursor con `←` `→`, ir al principio/final con `Inicio`/`Fin`, borrar con `Supr` y vaciar hasta el inicio con `Ctrl+U`.
96
+
97
+ ## Funciones
98
+
99
+ ### Vista previa al pasar el cursor
100
+
101
+ Sin ningún chat abierto, el panel derecho muestra los últimos mensajes de la conversación seleccionada. Con el ratón basta **pasar el cursor** por la lista, sin hacer clic.
102
+
103
+ ### Elegir una carpeta
104
+
105
+ ![Selector de carpetas](docs/screenshots/03-selector-de-carpetas.svg)
106
+
107
+ Pulsa `o` para abrir un chat en **cualquier carpeta**, tenga o no historial, sin escribir rutas:
108
+
109
+ | Tecla | Acción |
110
+ |---|---|
111
+ | `↑` `↓` | Moverte |
112
+ | `⏎` / `→` | **Entrar** a la carpeta resaltada (para seguir buscando dentro) |
113
+ | `espacio` | **Abrir un chat** en la carpeta resaltada, sin entrar |
114
+ | `✔ Abrir chat aquí` | Abrir un chat en la carpeta que estás viendo |
115
+ | `←` | Subir un nivel (en Windows, desde la raíz lista las unidades) |
116
+ | `/` | Filtrar las carpetas escribiendo |
117
+ | `.` | Mostrar / ocultar las carpetas ocultas |
118
+ | `~` | Volver a tu carpeta de usuario |
119
+ | `n` o `+ Nueva carpeta aquí…` | Crear una carpeta escribiendo solo el nombre (pide confirmar con un segundo `⏎`) |
120
+
121
+ Empieza siempre en `~`. Las carpetas que usaste hace poco aparecen arriba (`↻ reciente`).
122
+
123
+ ### Salto rápido
124
+
125
+ ![Salto rápido con Ctrl+P](docs/screenshots/05-salto-rapido.svg)
126
+
127
+ `Ctrl+P` busca entre **todas** las conversaciones de **todos** los proyectos (título, proyecto y primer mensaje). `⏎` la abre directamente.
128
+
129
+ ### Imágenes del chat
130
+
131
+ ![Cuadro flotante con la imagen al pasar el cursor por [Image #1]](docs/screenshots/04-hover-imagen.svg)
132
+
133
+ - Si en un chat ves `[Image #3]` (una imagen que ya enviaste), **pasa el cursor por encima** y aparece un cuadro con esa imagen, sin tapar el resto del chat.
134
+ - `i` / `F7` abre una **galería** con todas las imágenes de la conversación (`← →` navegan, `o` la abre en el visor del sistema, `Esc` cierra).
135
+ - Una imagen recién pegada y aún sin enviar **no** se puede mostrar: todavía no está en el historial.
136
+
137
+ ### Estado de los chats
138
+
139
+ - Un chat nuevo aparece al instante en la lista (`● Nueva conversación`), aunque la carpeta aún no tenga historial.
140
+ - Cada chat muestra su estado: un indicador mientras Claude trabaja, `●` cuando espera y `✔` cuando terminó mientras mirabas otro. Al terminar suena la campanilla y sale un aviso de escritorio (se apaga en la configuración).
141
+ - Al volver a abrir Hopdeck recuerda el proyecto y la conversación donde estabas.
142
+
143
+ ### Scroll y copiar
144
+
145
+ - **Scroll** en el chat: rueda del ratón o `PgUp` / `PgDn`; `End` o escribir algo te devuelve al final.
146
+ - **Copiar:** arrastra con el ratón sobre el chat y el texto queda en el portapapeles. `F3` apaga el ratón si prefieres seleccionar con el terminal (o usa `Shift`+arrastrar).
147
+
148
+ ### Otros detalles
149
+
150
+ - Se muestra la **rama de git** del proyecto y la lista se refresca sola.
151
+ - `hopdeck --list` imprime los proyectos en texto plano. `hopdeck <argumentos>` pasa esos argumentos a `claude` al abrir chats (por ejemplo `hopdeck --model opus`).
152
+ - Disponible en **español e inglés** (sigue el idioma del sistema).
153
+
154
+ ## Compatibilidad
155
+
156
+ | Sistema | Funciona con | Notas |
157
+ |---|---|---|
158
+ | **Windows** | PowerShell, CMD, Windows Terminal | Todas las funciones. Es donde más se ha probado. |
159
+ | **macOS / Linux** | Cualquier terminal con color | Con `tmux` instalado usa paneles de tmux (la lista responde a la rueda y al clic, pero sin vista previa al pasar el cursor ni imágenes del chat); sin `tmux`, usa un terminal integrado con todas las funciones. |
160
+ | **WSL** | Igual que Linux | Lee el historial de WSL, que es distinto del de Windows (ver [problemas frecuentes](#problemas-frecuentes)). |
161
+
162
+ ## Configuración
163
+
164
+ Casi nunca hace falta tocar nada. Lo más útil:
165
+
166
+ | Variable de entorno | Efecto |
167
+ |---|---|
168
+ | `HOPDECK_LANG` | `es` o `en` (por defecto, el idioma del sistema) |
169
+ | `HOPDECK_THEME` | `light` para fondos claros |
170
+ | `NO_COLOR` | Quita los colores |
171
+ | `CLAUDE_CONFIG_DIR` | Carpeta de Claude Code, si no es `~/.claude` |
172
+ | `HOPDECK_SKIP=1` | Salta Hopdeck una vez: `HOPDECK_SKIP=1 claude` |
173
+
174
+ Tus preferencias (proyectos fijados y ocultos, ancho de la lista, ratón…) se guardan solas en `~/.hopdeck.json`.
175
+
176
+ <details>
177
+ <summary>Opciones avanzadas</summary>
178
+
179
+ Claves de `~/.hopdeck.json` que puedes editar a mano:
180
+
181
+ | Clave | Para qué sirve | Por defecto |
182
+ |---|---|---|
183
+ | `notify` | Aviso de escritorio al terminar un chat | `true` |
184
+ | `mouse` | Ratón activado (`F3` lo alterna) | `true` |
185
+ | `sidebar` | Ancho de la lista (`[` y `]` lo ajustan) | automático |
186
+ | `maxImages` | Imágenes máximas por conversación en la galería | `200` |
187
+ | `previewMsgs` | Mensajes mostrados en la vista previa | `12` |
188
+
189
+ Otras variables: `HOPDECK_EMBED=1` fuerza el terminal integrado, `HOPDECK_NOTMUX=1` evita tmux y `HOPDECK_NOEMBED=1` lo desactiva; `HOPDECK_CONFIG` y `HOPDECK_CACHE` cambian las rutas de tus preferencias y de la caché.
190
+
191
+ </details>
192
+
193
+ ## Privacidad
194
+
195
+ - **No envía nada a internet.** Sin telemetría, sin analítica, sin peticiones de red. Todo ocurre en tu equipo.
196
+ - Lee tu historial local de Claude Code y lanza el `claude` que ya tienes. No toca tu sesión ni tus credenciales.
197
+ - Solo escribe sus preferencias y su caché (en tu carpeta de usuario), el bloque de `hopdeck install` en tu perfil de shell y, si renombras una conversación, el título de esa conversación.
198
+
199
+ Más detalles, y cómo avisar de un problema de seguridad: [SECURITY.md](SECURITY.md).
200
+
201
+ ## Problemas frecuentes
202
+
203
+ Empieza siempre por `hopdeck doctor`.
204
+
205
+ **`Ctrl+V` no pega imágenes (Windows Terminal).** Windows Terminal se queda con `Ctrl+V` para pegar texto. Opciones:
206
+ - Usa **`Alt+V`**, que pega la imagen en Claude sin tocar nada.
207
+ - O reasigna `Ctrl+V`: en *Configuración → Abrir archivo JSON*, dentro de `"actions"`, añade
208
+ `{ "command": { "action": "sendInput", "input": "\u001bv" }, "keys": "ctrl+v" }`
209
+ y quita `ctrl+v` de la acción de pegar. El texto se sigue pegando con `Ctrl+Shift+V`.
210
+
211
+ **No veo una conversación que acabo de tener.** Hopdeck lee el historial del sistema donde se ejecuta. Si usas Claude Code en **WSL y en Windows**, cada uno tiene su propio historial, y Hopdeck de Windows no ve lo que hiciste en WSL (ni al revés). Un chat nuevo aparece en la lista enseguida, pero su conversación solo se enlaza cuando Claude la guarda (tras tu primer mensaje).
212
+
213
+ **La rueda del ratón no mueve el chat.** Funciona con el historial del chat y con Claude en pantalla completa. Si no responde, usa `PgUp` / `PgDn`.
214
+
215
+ **No puedo seleccionar texto con el ratón.** Pulsa `F3` para apagar el ratón de Hopdeck, o mantén `Shift` mientras arrastras.
216
+
217
+ **Quiero que `claude` vuelva a ser el de siempre.** `hopdeck uninstall`, o `HOPDECK_SKIP=1 claude` para saltarlo una vez.
218
+
219
+ **Se ve mal en mi terminal.** Prueba `HOPDECK_THEME=light` (fondo claro) o `NO_COLOR=1`.
220
+
221
+ ## Colaborar y licencia
222
+
223
+ ¿Quieres ayudar o ver cómo está hecho? Mira [CONTRIBUTING.md](CONTRIBUTING.md). Historial de cambios: [CHANGELOG.md](CHANGELOG.md).
224
+
225
+ [MIT](LICENSE) © 2026 fabriciodev26. Las dependencias conservan sus propias licencias ([detalle](THIRD_PARTY_NOTICES.md)).
package/SECURITY.md ADDED
@@ -0,0 +1,22 @@
1
+ # Política de seguridad
2
+
3
+ ## Qué hace (y qué no) este programa con tus datos
4
+
5
+ - Lee el historial local de Claude Code (`~/.claude/projects`, o `CLAUDE_CONFIG_DIR`). **No envía nada a internet**: no tiene telemetría, ni analítica, ni peticiones de red.
6
+ - Escribe solo en tu equipo:
7
+ - `~/.hopdeck.json` (preferencias: proyectos fijados, ocultos, recientes…) y `~/.hopdeck-cache.json` (índice de títulos y primeros mensajes, con permisos solo para tu usuario).
8
+ - Una carpeta temporal privada con las imágenes cuando abres la galería con `o` (se borra al salir).
9
+ - Con `hopdeck install`, un bloque marcado en el perfil de tu shell (`~/.bashrc`, `~/.zshrc`, perfil de PowerShell…). Antes guarda una copia `<perfil>.hopdeck-backup` (la primera, sin sobrescribirla). `hopdeck uninstall` quita el bloque.
10
+ - Al renombrar una conversación (`R`), añade una línea `custom-title` al final de su archivo `.jsonl`, igual que hace Claude Code.
11
+ - Ejecuta el comando `claude` que encuentre en tu `PATH`. Si alguien puede cambiar tu `PATH`, puede cambiar qué se ejecuta (como con cualquier programa).
12
+ - Lo que se muestra en pantalla procedente del historial (títulos, mensajes, rutas) se limpia de caracteres de control y secuencias de escape antes de dibujarse.
13
+
14
+ ## Versiones con soporte
15
+
16
+ Se corrigen las vulnerabilidades en la última versión publicada.
17
+
18
+ ## Cómo avisar de una vulnerabilidad
19
+
20
+ Por favor **no abras un issue público**. Usa el aviso privado de GitHub (*Security → Report a vulnerability*) del repositorio, o escribe al autor por el medio de contacto indicado en el perfil de GitHub.
21
+ Intenta incluir: versión (`hopdeck doctor`), sistema operativo y terminal, pasos para reproducirlo y el efecto que observas.
22
+ Responderé en cuanto pueda y avisaré cuando haya una versión corregida.
@@ -0,0 +1,17 @@
1
+ # Dependencias de terceros
2
+
3
+ Hopdeck no incluye código de terceros dentro de su carpeta: las dependencias se instalan con npm
4
+ y cada una conserva su propia licencia.
5
+
6
+ | Paquete | Versión | Licencia | Para qué se usa |
7
+ |---|---|---|---|
8
+ | [@lydell/node-pty](https://github.com/lydell/node-pty) (y su paquete de binarios por plataforma) | 1.2.0-beta.18 | MIT | Abrir `claude` dentro del panel derecho (pseudo-terminal) |
9
+ | [@xterm/headless](https://github.com/xtermjs/xterm.js) | 6.0.0 | MIT | Emular el terminal del chat para dibujarlo en el panel |
10
+ | [jpeg-js](https://github.com/jpeg-js/jpeg-js) | 0.4.4 | BSD-3-Clause | Decodificar imágenes JPEG para la galería y el hover |
11
+
12
+ Ninguna dependencia ejecuta scripts de instalación (`npm audit`: 0 vulnerabilidades conocidas a la fecha de la versión 1.2.0).
13
+
14
+ ## Marcas
15
+
16
+ "Claude" y "Claude Code" son marcas de Anthropic, PBC. Este proyecto es independiente: **no está afiliado, respaldado ni patrocinado por Anthropic**.
17
+ Solo lee el historial local que Claude Code ya guarda en tu equipo y lanza el comando `claude` que tú tengas instalado.