Skip to main content

Run Cursor CLI (cursor-agent) as an optio task; local subprocess or remote via SSH; ttyd-served TUI iframe.

Project description

optio-cursor

Run Cursor CLI (cursor-agent) as an optio task — either as a local subprocess or on a remote host over SSH — with the interactive TUI embedded in the optio dashboard via an iframe widget served by ttyd.

Install

pip install optio-cursor

Requires Python 3.11+. Pulls optio-core, optio-host, optio-agents, asyncssh, and aiohttp.

What it does

Cursor CLI is a near-twin of Grok Build / Claude Code. optio-cursor adapts the optio-grok machinery: it launches cursor-agent inside a detached tmux session, serves the TUI over ttyd, and coordinates with the host harness through the optio.log keyword channel (STATUS / DELIVERABLE / DONE / ERROR). The agent reads its task from an AGENTS.md file planted in the workdir.

Isolation

Each task runs under an isolated HOME (<workdir>/home) with the XDG base dirs (XDG_CONFIG_HOME, XDG_CACHE_HOME, XDG_DATA_HOME) pinned under it, so cursor's ~/.cursor and ~/.cache state never touches the operator's real home. Permission rules are config-planted (cursor has no --allow/--deny argv): they go into <home>/.cursor/cli-config.json. At login cursor spawns xdg-open for the auth URL; the redirect browser-shim (front of PATH) captures it and surfaces the URL to the operator on a BROWSER: line instead of a browser popping on the host.

Status

Stage 0 (MVP): iframe/ttyd mode, local host. Resume, seeds, conversation mode, and filesystem isolation arrive in later stages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optio_cursor-0.1.0.tar.gz (95.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optio_cursor-0.1.0-py3-none-any.whl (69.1 kB view details)

Uploaded Python 3

File details

Details for the file optio_cursor-0.1.0.tar.gz.

File metadata

  • Download URL: optio_cursor-0.1.0.tar.gz
  • Upload date:
  • Size: 95.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for optio_cursor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 51565e4c2a76aed9658ffc0b0542c776de1b63365e00e67f3962c3d3c13c855f
MD5 51c894b412720b01908ab53dc33a5098
BLAKE2b-256 97ae04a8f1ac5dd7537b4b167aef1d37b43f393c770489cf9157ccf9daad73cb

See more details on using hashes here.

File details

Details for the file optio_cursor-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: optio_cursor-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 69.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for optio_cursor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c11556b2118c6c236edf30ab7c048c3275d70ff109ae5a33ea61dbc56ce07a35
MD5 5afffedd6bd7d2599f1594180a5c6a90
BLAKE2b-256 07477b1d1ecee2ab2987f8586a621360a31a5506886e36734da6f1bce05b186e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page