A real look at the app / Un vistazo real a la app
Demo workspace: opengravity-demo. No personal data.
|
Agent workspace · Espacio de trabajo del agente |
Editor + agent · Editor + agente |
|
Interface Layout · Disposición de la interfaz |
Project selector · Selector de proyecto |
A multi-provider desktop IDE with agents: the same coding-assistant experience, working with local or cloud models, without vendor lock-in.
A standalone Electron app — not an extension — with Monaco as the editor, LSP for code intelligence, MCP for tools, and integrated git and terminal.
Independent project. It contains no code, assets or branding from any proprietary product. See
docs/analysis/anddocs/design-tokens.mdfor the reference analysis that informed the design decisions.
0.3.0 is the security and reliability release. It keeps the 0.2.0 interface and capabilities, and closes the failure modes found in the full audit.
Security
- Parameter aliases (
Path,filePath,dirPath) are normalized before the workspace sandbox and the permission/diff layer, so they can no longer bypass either. - Symlinks and junctions are resolved before authorizing a path; old roots are revoked when the workspace or conversation changes.
- SFTP downloads reject names with separators or
..and verify the local destination stays inside the mirror. - MCP tools now go through permissions and the security monitor; generic MCP resource/prompt tools are covered too.
- The agent browser has its own partition and a local HTTP(S) proxy that resolves and pins every connection, revalidates redirects and blocks loopback/private/link-local targets. Flow and the user's browser stay in separate partitions.
fetch_url,search_web, external/browser opens and embedding endpoints validate destinations against DNS and network rules; DNS rebinding is no longer enough to reach a local service.- API keys and the remote token are masked in
prefs:get; SSH host keys are persisted as TOFU and checked on later connections; SSHFS mounts use077. - The secret scanner/redactor now covers Windows credential paths, PEM private keys and unquoted secret assignments.
Reliability and data safety
- A turn reserves
busybefore the first async step, preventing double sends and session loads during preparation. - Provider streams are no longer cut at 45 s; only headers have that timeout, and response bodies keep flowing until completion or the agent idle timeout.
- Tool cancellation is hard: an in-flight tool gets an abort signal and the turn is released even if the tool ignores it. Interactive tools have user-appropriate timeouts.
- Subagents capture session, turn and workspace; results/events/checkpoints are routed to the originating conversation, and stale tools cannot write to a newer session.
- Session loading, revert, project/workspace changes, deletion and new turns are serialized with explicit guards; undo cannot rewrite a different session.
- JSONL mutations share a queue and unique temp files; a missing/corrupt index
is rebuilt from the session files and
.meta.jsonsidecars keep provider/model/cwd. - Trajectory loading,
turnopersistence, empty-write protection and partial revert failures are fixed; deleting a conversation also deletes its trajectory. - LSP rename and quick fixes apply edits to the buffer known by the server, not to a stale disk copy; versions stay in sync.
- Indexer builds have a single root/queue and no longer retain full file contents; concurrent builds and stale searches are handled.
- Context compaction and the classifier retry have their own timeouts and honor an already-aborted signal.
- Scheduled cron edits are serialized; impossible expressions are rejected;
IsDaemonis persisted and non-daemon recurring jobs created by the agent are stopped at turn end. - Plan mode accepts user corrections as interruptions and hands control back to the planner.
Product and interface
- Conversation switching while busy is blocked with a clear notice and a busy marker; intentional Stop no longer paints a red provider error.
- Internal
<USER_REQUEST>/<ADDITIONAL_METADATA>wrappers are hidden from saved conversations;file://links open in the editor. - Unsaved editor tabs ask before closing; attachment reads complete before
sending; scheduled tasks no longer overwrite the composer; cancelled diff
cards are cleaned; PTY output includes
[exit N]and interrupts the active PTY; remote prompts keep the user's draft. - Markdown streaming renders at frame rate and highlights after the message ends.
- Search skips non-UTF8 files instead of corrupting them and computes line
positions in one pass; file reads validate
startLine,endLineandmaxBytes. - OpenAI-compatible endpoints retry without
stream_optionson a 400; Gemini 3 thought signatures survive the next function call.
Tests
- The suite grew to 601 tests, including real Python/Go LSP sessions, LSP-buffer rename, DNS-pinned downloads, the browser proxy, corrupt-index recovery, concurrent JSONL writes, SSH TOFU and path aliases.
Requires Node 22+.
npm install
node node_modules/electron/install.js # if npm blocks the postinstall
npm run appnpm run app compiles the TypeScript engine, bundles Monaco and opens the
window.
Image generation uses Google Flow with the integrated browser session. There is no API key and no extra cost:
- Open Settings › Google and click Connect.
- Sign in with your account in the window that opens. Flow opens when you finish.
- Return to the app and ask for an image with
generate_image.
The session is stored in the integrated browser's persistent partition, so you only need to sign in once. If no account is connected, the tool returns instructions instead of opening a hidden login.
npm run distThis leaves two files in release/:
Opengravity-Setup-0.3.0.exe: installer (choose a folder, create Start Menu and desktop shortcuts).Opengravity-0.3.0.exe: portable, runs without installing.
npm run dist:dir builds only the unpacked app (release/win-unpacked), useful
for inspecting the contents without installing. Executables are not versioned:
release/ is in .gitignore.
Before distributing the result, npm run verify:release checks that the
executables contain the current code (by comparing bytes, not dates), that the
fonts ship with their license, and writes SHA-256 hashes to
release/SHA256SUMS.txt. What is still missing and why: see
docs/estado.md.
The executables are not signed: an Authenticode certificate costs money every year and this project is free. Windows will show “unknown publisher” during installation; that is expected, not an error. You can verify that the file you downloaded is the one that was published:
# 1) Hash of the downloaded file
Get-FileHash "Opengravity-Setup-0.3.0.exe" -Algorithm SHA256
# 2) Compare it with the published release hash
Get-Content SHA256SUMS.txt
# 3) If they match, remove the “downloaded from the internet” mark
Unblock-File "Opengravity-Setup-0.3.0.exe"If the hash does not match, do not install it: it is not the published file.
And if you prefer not to install anything, you can always build from source
(npm run dist) and compare.
The installed Windows app checks GitHub Releases at startup and every six hours. 0.1.0 did not include the updater: the first update to 0.2.0 must be installed manually. You can also check manually from Settings › Application › Updates. It downloads only after asking, verifies the published checksum and asks for a restart. The portable build does not self-update; it links to the new release. There is no telemetry.
- 22 model providers with automatic model detection and API keys pasted
from Settings (see
docs/proveedores.md); parallel detection with timeout, manual refresh and keys shared between OpenCode Zen and Go - Workspace rules:
AGENTS.mdand.agents/rules/*.mdenter the system prompt with their own budget (20,000 tokens by default) - Work profiles (
Interface Layout): Knowledge Work responds like a document (report, summary, plan) and Software Engineering reads, edits and verifies code. It changes the prompt's instruction block (electron/personas.cjs), the same with a local or cloud model. It does not restrict tools: measured against the original, neither does it - Extended thinking with a chat button that only appears when the current model supports it (Claude 3.7+/4/5 and Gemini 2.5+); it does not switch models or enable thinking on other models
- Parallel subagents with a maximum wait: several branches at once, each in its own worktree when writing, and whatever misses the budget is cancelled while the rest is merged (Settings › Execution › Subagent wait)
- File-pattern memory: a memory can declare
globsand activates by itself when the agent writes a matching file, instead of repeating it every turn - Open tool catalog: code and notebook reading/writing, search, background
terminal, MCP, memory, skills, subagents (parallel and read-only nested with a
budget), plans,
run_extension_codefor temporary extensions, image generation and 14 browser actions (open,read,snapshot,click,fill,type,press,select,scroll,hover,wait,batch,navigate,eval) on the integrated Chromium - Permissions: global preset, per-tool permissions and network rules
- Optional workspace sandbox: file paths inside the project, command cwd
fixed, credentials removed from the environment and process limits (Job Object
on Windows; process group +
ulimiton POSIX), with process-tree termination. AppContainer is out of scope: a normal command needs the system toolchain, so it would require a container with its own Node - Diffs with approval before writing
- Checkpoints: undo restores files on disk
- Injectable skills, local profile and MCP servers as plugins, with a local catalog installable from Settings (no accounts, plans or payments)
- Monaco with its own dark theme and per-language highlighting, including basic R syntax and the Nord theme preset
- Audio and PDF viewer in the editor pane (up to 50 MB)
- Find in page in the built-in browser with
Ctrl/Cmd+F - Composer attachments: paste or drop images and files; they appear as removable chips and travel with the message.
- Remote SSH: direct project mount through WinFsp + SSHFS-Win (Settings › Application › SSH Remote). Files, terminal, commands and tests go to the host; LSP and the index still run locally against the mounted drive. The mirror project is a fallback for systems without SSHFS-Win.
- GitHub pull requests are read-only in Overview → Review; a token for private
repositories is stored encrypted from Settings. Workflows from
.opengravity/workflows/are listed and can be run from the same panel. - LSP: completion, diagnostics, go-to-definition, rename, format (TypeScript/JavaScript bundled with the project; python/go/rust configurable)
- Project selector: recent projects, This Computer with search, New Project and No Project; each conversation stores its project separately from the workspace
- Tabs, save state,
Ctrl+S
The app does not bundle external language servers. Python, Go and Rust need to be installed and visible:
- Go:
goandgopls. The app adds the standard locations toPATH, includingGOROOT,GOPATH/bin,GOBINand SDKs under%USERPROFILE%\sdk. For an arbitrary installation, defineGOROOT, add itsbinfolder toPATH, or set the path in Settings › Developer › Go. - Python:
pylsporpyright-langserver. The app prefers the former; if neither exists, it shows an error when opening a.pyfile. - Rust:
rust-analyzeronPATH.
The app does not scan disks for these binaries: a path outside the environment
or the locations above is not detected. lspServers can pin each server's
command and arguments.
- Terminal integrated with persistent
cd(`Ctrl+``) - Git: branch, modified files, stage, commit and per-file diff
- Faster startup: window first, engine and session repair in the background, lazy Monaco and non-blocking provider discovery
- Summary panel with Files, Plugins, Review and Terminal
- Turn navigator, per-response action bar, reactions
/commands and@mentions in the composer, including/btwfor a side question that does not touch the thread- Bilingual interface: English and Spanish, with system-language detection and a selector in Settings › Application
- Conversation search and persistent sessions in JSONL
| Shortcut | Action |
|---|---|
Ctrl+Enter |
Send message |
Ctrl+N |
New conversation |
Ctrl+M |
Model selector |
| `Ctrl+`` | Terminal |
Ctrl+F |
Find in page (browser) |
/ |
Command palette |
@ |
Mention a file |
Ctrl+S |
Save (editor) |
Ctrl+Space |
Autocomplete |
F12 |
Go to definition |
F2 |
Rename symbol |
Shift+Alt+F |
Format |
app
├── electron/
│ ├── main.cjs window, IPC, agent, git, terminal, LSP, app:// protocol
│ ├── preload.cjs contextBridge bridge
│ ├── tools-extra.cjs main-process tools
│ ├── red-segura.cjs DNS pinning and private-network rejection
│ ├── browser-proxy.cjs local HTTP(S) proxy for the agent browser
│ ├── diff.cjs line diff
│ └── lsp.cjs LSP client (Content-Length)
├── renderer/
│ ├── index.html interface structure
│ ├── styles.css tokens and layout
│ ├── app.js UI logic
│ ├── settings.js settings panel
│ ├── markdown.js markdown → HTML
│ ├── highlight.js chat highlighting
│ ├── icons.js SVG icon set
│ ├── monaco-entry.js Monaco entry point (bundled)
│ └── monaco/ bundle generated by build:monaco
├── scripts/build-monaco.mjs
├── src/ engine: providers, agent, MCP, persistence
└── docs/
├── analysis/ reference architecture
├── design-tokens.md UI palette, metrics and structure
└── proveedores.md endpoint catalog
The renderer has no Node access: everything goes through IPC named
domain:action. The engine lives in the main process.
To automate or debug the engine without the UI:
npm run dev -- "summarize this project"
npm run dev -- --provider openai --model gpt-4o-mini "list the files"
npm run dev -- --list-providers
npm run dev -- --provider groq --list
npm run dev -- --mcp-command npx --mcp-arg -y \
--mcp-arg @modelcontextprotocol/server-filesystem --mcp-arg . --tools
npm run dev -- --list-sessions# Clean response on stdout; diagnostics on stderr.
npm run dev -- -p "what does src/agent/loop.ts do?" --output-format text
# A JSON envelope with conversation, state and tokens.
npm run dev -- -p "summarize the project" --output-format json
# NDJSON: init → step_update → result.
npm run dev -- -p "find the TODOs" --output-format stream-json
# Persistent conversation over stdin: one result per prompt.
printf '%s\n' \
'{"event":"user","message":{"content":"what does src/agent/loop.ts do?"}}' \
'{"event":"user","message":{"content":"summarize the above"}}' \
| npm run dev -- --input-format stream-json --output-format stream-json
# Continue the latest conversation.
npm run dev -- -p "now fix the first one" -c
# Change effort/mode and allow writes in headless mode.
npm run dev -- -p "fix the test" --effort high --mode accept-edits
npm run dev -- -p "run the tests" --sandbox --mode autoWith no prompt and an interactive terminal, npm run dev opens the full-screen
chat TUI:
npm run devThe full TUI accepts /model, /mode, /tools, /clear, /help and /exit.
To return to the line TUI with every session command:
OPENGRAVITY_LINE_TUI=1 npm run devIn the line TUI:
/model <id>changes the model;/toolslists the catalog./mode default|accept-edits|auto|planchanges permissions on the fly./permissions,/mcp,/skills,/agents,/contextand/configshow the current state./panelopens a full-screen panel TUI (Status, Sessions, Tools, Skills, Agents, Permissions and MCP);←/→switches tabs,↑/↓scrolls andqexits./diff,/resume,/rename,/fork,/rewindand/openwork on the workspace;/rewindrestores files touched by editing tools and, in git repositories, changes made byrun_command(not binaries, ignored files or files outside git)./btwasks a side question without touching the thread;/swarmand/teamworklaunch three subagents;/planand/goalguide the turn./helpand/exit.- Sensitive actions ask for
[y/N]confirmation;planis read-only. - The app's encrypted keys (
apiKeysEnc) are decrypted withsafeStoragewhen the CLI starts; you do not need to enter them again.
The CLI reads the same
8BD0
settings.json as the app (%APPDATA%/Opengravity on
Windows, ~/.config/Opengravity on Linux, ~/Library/Application Support/Opengravity
on macOS). Explicit flags win. --sandbox confines tools to the workspace and
--add-dir adds extra roots.
There is no prompt in headless mode: an action that needs approval is rejected.
Use --dangerously-skip-permissions, a broader mode (accept-edits, auto
with --sandbox) or rules in settings.json:
{
"permissions": {
"allow": ["command(git)", "command(regex:^npm run (build|lint|test))"],
"deny": ["write_file(.env)"]
}
}The catalog includes editing, search, background commands, tests, workflows,
memory, skills, invoke_subagent and present_plan; browser and Flow need
Electron and are not registered in the CLI. --json-schema validates JSON with
Ajv; it does not just parse it.
npm testpretest compiles first, so the suite never tests an old dist. No new
dependencies: it uses node:test, included with Node 22.
It covers the agent engine, not the interface:
| File | What it tests |
|---|---|
cron.test.mjs |
Five-field expressions, validation and next run |
guardian.test.mjs |
A–M rubric severity and monitor modes |
hooks.test.mjs |
Path rewriting, secret redaction, truncation and text hooks |
skills.test.mjs |
Frontmatter, discovery and keeping the body out of the prompt |
code-items.test.mjs |
Symbols in TypeScript, Python and Go |
trajectory.test.mjs |
Snapshots, revert and persistence after restart |
subagents.test.mjs |
Definitions, discovery and selective kill |
plan-mode.test.mjs |
The four cycle phases and their gates |
loop.test.mjs |
Gate, injection, pace monitor, parallelism and timeouts |
lsp-buffer.test.mjs |
LSP buffer tracking used by rename/quick fixes |
red-segura.test.mjs |
DNS rebinding rejection and pinned downloads |
browser-proxy.test.mjs |
Agent browser proxy blocks loopback/private targets |
http-stream.test.mjs |
Header timeout does not cut a long response body |
sesiones-contenido.test.mjs |
Concurrent JSONL writes and corrupt-index recovery |
ssh.test.mjs |
SSH fingerprint precedence and TOFU fallback |
rutas.test.mjs |
Workspace path authorization and symlink escape |
tools-edit.test.mjs |
Literal $& replacement and CRLF edits |
tools-fs.test.mjs |
startLine/maxBytes validation |
MIT. See LICENSE.
This project is for building your own software. If you use it as a reference for interoperability with another product, respect its licenses and do not copy its code, assets or trademarks.
IDE de escritorio con agentes multi-proveedor: la misma experiencia de asistente de código, funcionando con modelos locales o en la nube, sin atarte a un vendor.
Aplicación Electron propia — no una extensión — con Monaco como editor, LSP para inteligencia de código, MCP para herramientas, git y terminal integrados.
Proyecto independiente. No contiene código, assets ni branding de ningún producto propietario. Ver
docs/analysis/ydocs/design-tokens.mdpara el análisis de referencia que motivó las decisiones de diseño.
0.3.0 es la versión de seguridad y fiabilidad. Mantiene la interfaz y las capacidades de 0.2.0 y cierra los fallos encontrados en la auditoría completa.
Seguridad
- Los alias de parámetros (
Path,filePath,dirPath) se normalizan antes del sandbox, los permisos y el diff; ya no pueden saltarse ninguno. - Symlinks y junctions se resuelven antes de autorizar una ruta; las raíces viejas se revocan al cambiar de workspace o de conversación.
- Las descargas SFTP rechazan nombres con separadores o
..y comprueban que el destino quede dentro del espejo. - Las tools MCP pasan por permisos y por el monitor de seguridad, también las genéricas de recursos/prompts.
- El navegador del agente tiene partición propia y un proxy HTTP(S) local que resuelve y fija cada conexión, revalida redirecciones y bloquea loopback, rangos privados y link-local. Flow y el navegador del usuario quedan en particiones separadas.
fetch_url,search_web, aperturas externas/navegador y endpoints de embeddings validan destino por DNS y reglas de red; el DNS rebinding ya no basta para alcanzar un servicio local.- Las claves API y el token remoto se enmascaran en
prefs:get; las huellas SSH se guardan como TOFU y se comparan; los montajes SSHFS usan077. - El detector/redactor de secretos cubre rutas de credenciales de Windows, claves PEM y asignaciones de secretos sin comillas.
Fiabilidad y datos
- El turno reserva
busyantes del primerawait, evitando dobles envíos y cargas de sesión durante la preparación. - Los streams de proveedor ya no se cortan a los 45 s: solo las cabeceras tienen ese timeout y el cuerpo sigue hasta terminar o hasta el timeout de inactividad del agente.
- La cancelación de tools es dura: reciben señal y el turno se libera aunque ignoren el abort. Las tools interactivas tienen timeouts adecuados.
- Los subagentes capturan sesión, turno y workspace; resultados, eventos y checkpoints vuelven a la conversación de origen, y una tool vieja no puede escribir en una sesión nueva.
- Carga de sesión, revert, cambio de proyecto/workspace, borrado y turnos nuevos están serializados con guardas; un undo no puede reescribir otra sesión.
- Las mutaciones JSONL comparten cola y temporales únicos; un índice
perdido/corrupto se reconstruye desde las sesiones y los sidecars
.meta.jsonconservan provider/model/cwd. - Se cargan las trayectorias al abrir sesión, se persiste
turno, se evita sobrescribir con una trayectoria vacía, se respetan fallos parciales y borrar una conversación borra su trayectoria. - LSP rename y quick fixes aplican sobre el buffer que conoce el servidor, no sobre un disco obsoleto; las versiones quedan sincronizadas.
- El indexer tiene un único root/cola y ya no retiene el contenido completo de los ficheros; se manejan builds concurrentes y búsquedas obsoletas.
- La compactación de contexto y el reintento del clasificador tienen timeout propio y respetan una señal ya abortada.
- Las ediciones de tareas programadas están serializadas; las expresiones
imposibles se rechazan;
IsDaemonse persiste y los cron recurrentes no-daemon creados por el agente se apagan al cerrar el turno. - Plan mode acepta correcciones del usuario como interrupciones y devuelve el control al planificador.
Producto e interfaz
- Cambiar de conversación mientras trabaja queda bloqueado con aviso y marca de ocupación; Detener ya no pinta un error rojo del proveedor.
- Los envoltorios internos
<USER_REQUEST>/<ADDITIONAL_METADATA>se ocultan en conversaciones guardadas; los enlacesfile://abren el editor. - Las pestañas con cambios piden confirmación al cerrar; los adjuntos terminan
de leerse antes de enviar; las tareas programadas no pisan el compositor; las
tarjetas de diff canceladas se limpian; el PTY muestra
[exit N]e interrumpe el PTY activo; los prompts remotos respetan el borrador. - El Markdown en streaming se pinta por frame y se resalta al terminar.
- La búsqueda omite ficheros no-UTF8 en vez de corromperlos y calcula líneas en
una sola pasada;
startLine,endLineymaxBytesse validan. - Los endpoints OpenAI-compatible reintentan sin
stream_optionsante un 400; las firmas de pensamiento de Gemini 3 sobreviven a la siguiente llamada.
Pruebas
- La suite crece a 601 tests, con LSP real de Python/Go, rename con buffer LSP, descargas con DNS fijado, proxy del navegador, recuperación de índice corrupto, escrituras JSONL concurrentes, TOFU SSH y alias de rutas.
Requiere Node 22+.
npm install
node node_modules/electron/install.js # si npm bloquea el postinstall
npm run appnpm run app compila el motor TypeScript, empaqueta Monaco y abre la ventana.
La generación de imágenes usa Google Flow con la sesión del navegador integrado. No hay clave de API ni coste adicional:
- Abre Ajustes › Google y pulsa Conectar.
- Inicia sesión con tu cuenta en la ventana que se abre. Flow se abre al terminar.
- Vuelve a la app y pide una imagen con
generate_image.
La sesión se guarda en la partición persistente del navegador integrado, así que solo hay que iniciar sesión una vez. Si no hay cuenta conectada, la herramienta devuelve las instrucciones en vez de abrir un login oculto.
npm run distDeja dos ficheros en release/:
Opengravity-Setup-0.3.0.exe: instalador (elige carpeta, acceso directo en el menú Inicio y en el escritorio).Opengravity-0.3.0.exe: portable, se ejecuta sin instalar.
npm run dist:dir genera solo la aplicación desempaquetada (release/win-unpacked),
útil para comprobar el contenido sin instalar. Los ejecutables no se versionan:
release/ está en .gitignore.
Antes de repartir el resultado, npm run verify:release comprueba que los
ejecutables lleven dentro el código de hoy (comparando bytes, no fechas), que
las fuentes vayan con su licencia y deja las huellas SHA-256 en
release/SHA256SUMS.txt. Qué falta todavía y por qué: ver
docs/estado.md.
Los ejecutables no van firmados: un certificado Authenticode cuesta dinero cada año y este proyecto es libre. Windows mostrará «editor desconocido» al instalar; es lo esperado, no un error. Lo que sí puedes hacer es comprobar que el fichero que bajaste es el que se publicó:
# 1) Huella del fichero descargado
Get-FileHash "Opengravity-Setup-0.3.0.exe" -Algorithm SHA256
# 2) Compárala con la que se publicó junto a la release
Get-Content SHA256SUMS.txt
# 3) Si coincide, quita la marca de «descargado de internet»
Unblock-File "Opengravity-Setup-0.3.0.exe"Si la huella no coincide, no lo instales: no es el fichero publicado. Y si
prefieres no instalar nada, siempre puedes compilar desde el código
(npm run dist) y comparar.
La app instalada en Windows consulta GitHub Releases al arrancar y cada seis 0.1.0 no incluía el actualizador: la primera actualización a 0.2.0 se instala manualmente. horas. También puedes comprobarlo desde Ajustes › Application › Updates. Descarga solo cuando se lo pides, verifica la huella publicada y pide reiniciar. El portable no se autoactualiza: enlaza a la nueva release. Sin telemetría.
- 22 proveedores de modelo con autodetección de modelos y claves pegables
desde Ajustes (ver
docs/proveedores.md); detección en paralelo con timeout, refresco manual y claves compartidas entre OpenCode Zen y Go - Reglas del workspace:
AGENTS.mdy.agents/rules/*.mdentran al prompt de sistema con presupuesto propio (20 000 tokens por defecto) - Perfiles de trabajo (
Interface Layout): Knowledge Work responde como documento (informe, resumen, plan) y Software Engineering lee, edita y verifica código. Cambia el bloque de instrucciones del prompt (electron/personas.cjs), igual con un modelo local que con uno de la nube. No restringe herramientas: medido en el original, tampoco lo hace - Pensamiento extendido con un botón en el chat que solo aparece si el modelo actual lo admite (Claude 3.7+/4/5 y Gemini 2.5+); no cambia de modelo ni lo activa en otros
- Subagentes en paralelo con espera máxima: varias ramas a la vez, cada una en su worktree si escribe, y lo que no llega al presupuesto se cancela y se fusiona el resto (Ajustes › Ejecución › Subagent wait)
- Memoria por patrón de fichero: una memoria puede declarar
globsy entra sola cuando el agente escribe en un fichero que encaja, en vez de repetirla cada turno - Catálogo de herramientas abierto: lectura/escritura de código y cuadernos,
búsqueda, terminal en segundo plano, MCP, memoria, skills, subagentes (en
paralelo y anidados de solo lectura con presupuesto), planes,
run_extension_codepara extensiones temporales, generación de imágenes y 14 acciones de navegador (open,read,snapshot,click,fill,type,press,select,scroll,hover,wait,batch,navigate,eval) sobre el Chromium integrado - Permisos: preset global, permisos por herramienta y reglas de red
- Sandbox de workspace opcional: rutas de fichero dentro del proyecto, cwd de
comandos fijado, credenciales fuera del entorno y límites de proceso (Job
Object en Windows; grupo +
ulimiten POSIX), con terminación del árbol. AppContainer queda fuera: un comando normal necesita el toolchain del sistema, así que haría falta un contenedor con su propio Node - Diffs con aprobación antes de escribir
- Checkpoints: deshacer restaura los ficheros en disco
- Skills inyectables, perfil local y servidores MCP como plugins, con catálogo local instalable desde Ajustes (sin cuentas, planes ni pagos)
- Monaco con tema oscuro propio y resaltado por lenguaje, con sintaxis básica de R y el preset Nord
- Visor de audio y PDF en el panel del editor (hasta 50 MB)
- Buscar en página del navegador integrado con
Ctrl/Cmd+F - LSP: completado, diagnósticos, ir a definición, renombrar, formatear (TypeScript/JavaScript incluido en el proyecto; python/go/rust configurables)
- Adjuntos en el composer: pega o arrastra imágenes y ficheros; aparecen como chips removibles y viajan con el mensaje.
- SSH remoto: montaje directo con WinFsp + SSHFS-Win desde Ajustes › Application › SSH Remote. Ficheros, terminal, comandos y tests van al host; LSP e índice siguen siendo locales sobre la unidad montada. El proyecto espejo queda como fallback para sistemas sin SSHFS-Win.
- Los pull requests de GitHub se consultan en Overview → Review; el token para
repos privados se guarda cifrado desde Ajustes. Los workflows de
.opengravity/workflows/se listan y ejecutan desde ese panel. - Selector de proyecto: recientes, This Computer con búsqueda, New Project y No Project; la conversación guarda su proyecto aparte del workspace.
- Pestañas, estado de guardado,
Ctrl+S
La app no empaqueta servidores externos. Para Python, Go y Rust hay que tenerlos instalados y visibles:
- Go:
goygopls. La app añade alPATHlas rutas estándar,GOROOT,GOPATH/bin,GOBINy los SDK de%USERPROFILE%\sdk. Para una instalación arbitraria, defineGOROOT, añade su carpetabinalPATHo fija la ruta en Ajustes › Developer › Go. - Python:
pylspopyright-langserver. La app prefiere el primero; si no hay ninguno, muestra un error al abrir un.py. - Rust:
rust-analyzeren elPATH.
No se escanean discos en busca de estos binarios: una ruta que no esté en el
entorno o en las rutas anteriores no se detecta. lspServers permite fijar el
comando y los argumentos de cada servidor.
- Terminal integrada con
cdpersistente (`Ctrl+``) - Git: rama, ficheros modificados, stage, commit y diff por fichero
- Arranque más rápido: ventana primero, motor y reparación de sesiones en segundo plano, Monaco bajo demanda y proveedores sin bloquear
- Panel de resumen con Files, Plugins, Review y Terminal
- Navegador de turnos, barra de acciones por respuesta, reacciones
- Comandos
/y menciones@en el composer, incluido/btwpara una pregunta lateral que no toca el hilo - Interfaz bilingüe: inglés y español, con detección del idioma del sistema y selector en Ajustes › Application
- Búsqueda de conversaciones, sesiones persistentes en JSONL
| Atajo | Acción |
|---|---|
Ctrl+Enter |
Enviar mensaje |
Ctrl+N |
Nueva conversación |
Ctrl+M |
Selector de modelo |
| `Ctrl+`` | Terminal |
Ctrl+F |
Buscar en página (navegador) |
/ |
Paleta de comandos |
@ |
Mencionar fichero |
Ctrl+S |
Guardar (editor) |
Ctrl+Space |
Autocompletado |
F12 |
Ir a definición |
F2 |
Renombrar símbolo |
Shift+Alt+F |
Formatear |
app
├── electron/
│ ├── main.cjs ventana, IPC, agente, git, terminal, LSP, protocolo app://
│ ├── preload.cjs puente contextBridge
│ ├── tools-extra.cjs herramientas del proceso principal
│ ├── diff.cjs diff por líneas
│ └── lsp.cjs cliente LSP (Content-Length)
├── renderer/
│ ├── index.html estructura de la interfaz
│ ├── styles.css tokens y layout
│ ├── app.js lógica de la UI
│ ├── settings.js panel de ajustes
│ ├── markdown.js markdown → HTML
│ ├── highlight.js resaltado para el chat
│ ├── icons.js set de iconos SVG
│ ├── monaco-entry.js entrada de Monaco (se empaqueta)
│ └── monaco/ bundle generado por build:monaco
├── scripts/build-monaco.mjs
├── src/ motor: proveedores, agente, MCP, persistencia
└── docs/
├── analysis/ arquitectura de referencia
├── design-tokens.md paleta, métricas y estructura de la UI
└── proveedores.md catálogo de endpoints
El renderer no tiene acceso a Node: todo pasa por IPC con nombres
dominio:accion. El motor vive en el proceso principal.
Para automatizar o depurar el motor sin interfaz:
npm run dev -- "resume este proyecto"
npm run dev -- --provider openai --model gpt-4o-mini "lista los ficheros"
npm run dev -- --list-providers
npm run dev -- --provider groq --list
npm run dev -- --mcp-command npx --mcp-arg -y \
--mcp-arg @modelcontextprotocol/server-filesystem --mcp-arg . --tools
npm run dev -- --list-sessions# Respuesta limpia por stdout; diagnósticos por stderr.
npm run dev -- -p "¿qué hace src/agent/loop.ts?" --output-format text
# Un sobre JSON con conversación, estado y tokens.
npm run dev -- -p "resume el proyecto" --output-format json
# NDJSON: init → step_update → result.
npm run dev -- -p "busca los TODO" --output-format stream-json
# Conversación persistente por stdin: un result por prompt.
printf '%s\n' \
'{"event":"user","message":{"content":"¿qué hace src/agent/loop.ts?"}}' \
'{"event":"user","message":{"content":"resume lo anterior"}}' \
| npm run dev -- --input-format stream-json --output-format stream-json
# Continuar la última conversación.
npm run dev -- -p "ahora arregla el primero" -c
# Cambiar esfuerzo/modo y permitir escrituras en headless.
npm run dev -- -p "arregla el test" --effort high --mode accept-edits
npm run dev -- -p "ejecuta los tests" --sandbox --mode autoSin encargo y con una terminal interactiva, npm run dev abre la TUI de chat
a pantalla completa:
npm run devLa TUI completa acepta /model, /mode, /tools, /clear, /help y /exit.
Para volver a la TUI de línea con todos los comandos de sesión:
OPENGRAVITY_LINE_TUI=1 npm run devEn la TUI de línea:
/model <id>cambia de modelo;/toolslista el catálogo./mode default|accept-edits|auto|plancambia permisos en caliente./permissions,/mcp,/skills,/agents,/contexty/configmuestran el estado./panelabre una TUI de paneles a pantalla completa (Estado, Sesiones, Herramientas, Skills, Agentes, Permisos y MCP);←/→cambia de pestaña,↑/↓desplaza yqsale./diff,/resume,/rename,/fork,/rewindy/opentrabajan sobre el workspace;/rewindrestaura los ficheros tocados por las herramientas de edición y, en repos git, los cambios derun_command(no binarios, ignorados ni fuera de git)./btwhace una pregunta lateral sin tocar el hilo;/swarmy/teamworklanzan tres subagentes;/plany/goalorientan el turno./helpy/exit.- Las acciones sensibles piden confirmación
[y/N];planes solo lectura. - Las claves cifradas de la app (
apiKeysEnc) se descifran consafeStorageal arrancar el CLI; no hace falta volver a escribirlas.
El CLI lee el mismo settings.json que la app (%APPDATA%/Opengravity en
Windows, ~/.config/Opengravity en Linux, ~/Library/Application Support/Opengravity
en macOS). Los flags explícitos mandan. --sandbox confina las herramientas al
workspace y --add-dir añade raíces adicionales.
En headless no hay prompt: una acción que requiere aprobación se rechaza. Usa
--dangerously-skip-permissions, un modo más amplio (accept-edits, auto
con --sandbox) o reglas en settings.json:
{
"permissions": {
"allow": ["command(git)", "command(regex:^npm run (build|lint|test))"],
"deny": ["write_file(.env)"]
}
}El catálogo incluye edición, búsqueda, comandos en segundo plano, tests,
workflows, memoria, skills, invoke_subagent y present_plan; navegador y Flow
necesitan Electron y no se registran en el CLI. --json-schema valida el JSON
con Ajv, no solo lo parsea.
MIT. Ver LICENSE.
Este proyecto es para construir software propio. Si lo usas como referencia para interoperar con otro producto, respeta sus licencias y no copies su código, assets ni marcas.
npm testpretest compila antes de correr, así que la suite nunca prueba un dist viejo.
Sin dependencias nuevas: usa node:test, que viene con Node 22.
Cubre el motor del agente, no la interfaz:
| Fichero | Qué prueba |
|---|---|
cron.test.mjs |
Expresiones de 5 campos, validación y próxima ejecución |
guardian.test.mjs |
Severidad de la rúbrica A–M y modos del monitor |
hooks.test.mjs |
Reescritura de rutas, redacción de secretos, truncado, hooks de texto |
skills.test.mjs |
Frontmatter, descubrimiento y que el cuerpo no entre en el prompt |
code-items.test.mjs |
Símbolos en TypeScript, Python y Go |
trajectory.test.mjs |
Snapshots, reversión y persistencia tras reiniciar |
subagents.test.mjs |
Definiciones, búsqueda y kill selectivo |
plan-mode.test.mjs |
Las cuatro fases del ciclo y sus compuertas |
loop.test.mjs |
Compuerta, inyección, monitor de ritmo, paralelismo y timeouts |