wisp-science
Health Gecti
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 144 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Open-source, local-first desktop AI research workbench for scientific computing with Python/R, MCP bioinformatics tools, SSH/WSL/GPU runtimes, and OpenAI/Anthropic models.
Wisp Science — Local-first AI research workbench
Wisp Science is an open-source, local-first desktop AI research assistant
and scientific computing workbench. It connects to OpenAI-compatible and
Anthropic models, runs persistent Python and R environments on local, SSH, WSL,
and GPU compute, loads reusable Agent Skills (SKILL.md), and reaches ~80
bioinformatics and computational biology databases through bundled Model
Context Protocol (MCP) servers.
Built with Rust, Tauri v2, and Leptos, Wisp Science runs as a cross-platform
desktop app or a headless CLI.
Our manifesto: Wisp Science is open source and borderless. We are building
a scientific workbench that anyone, anywhere can use, study, improve, and
share.
Status: MVP vertical slice. The agent loop, streaming providers, tools,
Python/R REPLs, SQLite store, MCP client, and Leptos UI all build and run.
See Roadmap for what is deferred.
Layout
wisp-science/
├─ crates/
│ ├─ wisp-llm/ Provider trait + OpenAI-compatible + Anthropic + SSE + RoutedProvider
│ ├─ wisp-core/ ContextManager (3-tier compaction), SystemPrompt, agent_loop, memory
│ ├─ wisp-tools/ read/write/edit/search/grep/shell/attempt_completion + Windows safety
│ ├─ wisp-store/ sqlx SQLite (projects/frames/messages/artifacts/settings) + OS keyring
│ ├─ wisp-skills/ SKILL.md discovery + use_skill tool (bundled catalog at skills/)
│ ├─ wisp-runtime/ project-scoped Python/R runtime manager + REPL tools
│ ├─ wisp-mcp/ stdio JSON-RPC MCP client + McpTool adapter (bundled bio-tools)
│ ├─ wisp-acp/ ACP v1 stdio client for external coding agents
│ ├─ wisp-sync/ Encrypted snapshot protocol + self-hosted relay server
│ └─ wisp-cli/ `wisp-science` headless binary
├─ src-tauri/ Tauri v2 desktop shell (commands + agent event stream)
├─ ui/ Leptos CSR frontend (built by Trunk, loaded in WebView2)
├─ python/ kernel_worker.py + mock MCP server (uv-managed)
├─ r/ optional system-R kernel worker (requires jsonlite)
├─ skills/ Bundled SKILL.md catalog (29 science workflows)
├─ mcp-servers/ Bundled MCP servers (bio-tools: ~80 DB clients)
└─ seed/ Bundled demo session recordings (CRISPR / enzyme / extremophile / immunotherapy)
Prerequisites
- Rust (stable, 1.88+) with
wasm32-unknown-unknown:rustup target add wasm32-unknown-unknown - uv (Python environment manager): https://docs.astral.sh/uv/
- Optional: R with
Rscripton PATH and thejsonlitepackage for the
persistentrtool. Wisp never installs R packages automatically. - Trunk (WASM frontend bundler):
cargo install --locked trunk - Tauri CLI v2:
cargo install tauri-cli --version "^2" - WebView2 Runtime (Windows only) — preinstalled on Windows 10/11; the
installer bundles it on demand. - Xcode Command Line Tools (macOS only):
xcode-select --install— macOS
uses the system WebKit, so no extra runtime is needed.
Build & run
Headless CLI
$env:WISP_API_KEY = "<your provider key>"
$env:WISP_PROVIDER = "openai" # openai=OpenAI-compatible Chat Completions; or openai_responses / anthropic
$env:WISP_MODEL = "deepseek-v4-pro" # openai_responses: gpt-5.5; anthropic: claude-sonnet-5
cargo run -p wisp-cli
The CLI auto-loads the bundled skills/ catalog and wires the bundled Python
and optional system-R REPLs. Python provisions a uv venv at.wisp/python/.venv on first run; R uses Rscript from PATH and requiresjsonlite in that R environment. In the desktop app, Python and R interpreter
paths are saved per execution context from Settings → Environments or the agent'sset_runtime_interpreter tool, so local, WSL, and each SSH server can use
different environments without host environment variables. Each runtime card's
Configure path action opens these per-context Python and R settings. The tool restarts
the current project's matching REPL when needed, so a failed runtime can recover
without restarting the Wisp app; restarting clears that REPL's in-memory state.
Clicking a runtime's Python or R label opens its RStudio-style in-memory
environment table with bounded object names, types, values/shapes, and sizes.
The composer's agent-options menu groups Auto-review, Reviewer model, Memory,
Specialist, and Compute controls in one place. Local compute is always available;
the searchable Compute menu only lists configured remote servers. A server must
be explicitly selected for the current conversation before the agent can use it,
and selected servers are preferred for suitable work. The selection is isolated
per conversation. Settings → Environments always shows local compute and owns
adding, importing, removing, configuring, and probing environments; it does not
control conversation resource selection. Probe uses the bundledprobe-compute-environment skill to persist hardware, scheduler, runtime, and
privilege facts. The Environment side panel always shows local compute plus the
remote servers selected for the current conversation.
Each Python or R cell is limited to 1 MiB of source so a malformed request cannot
exhaust the persistent worker before execution begins.
Desktop app
cargo tauri dev # hot-reload: Trunk serves UI, Tauri opens WebView2
cargo tauri build # produce an MSI/NSIS installer under target/release/bundle
Desktop development uses port 1421. UI tests use 1422, and their Trunk
outputs are isolated in ui/dist-dev and ui/dist-test; release packaging
continues to use ui/dist. This prevents a running dev/test server from racing
with cargo tauri build while it copies the optimized WASM bundle.
On macOS, run the same commands from a shell (cargo tauri build emits a.app and .dmg under target/release/bundle). src-tauri/tauri.macos.conf.json
is auto-merged by Tauri to replace the PowerShell beforeBuildCommand with a
cross-platform trunk build. For a universal binary (Apple Silicon + Intel):
rustup target add x86_64-apple-darwin
cargo tauri build --target universal-apple-darwin
The .app/.dmg are unsigned — first launch needs right-click → Open (or
allow it in System Settings → Privacy & Security).
The desktop app stores API keys in the OS keyring and model profiles in.wisp/wisp.sqlite (Settings -> Models). Profiles can point at remote API
providers. See Model configuration for the
provider fields. The per-turn model/tool loop limit is configurable under
Settings → General → Maximum agent iterations per turn (default: 100; 0 disables the limit).
Conversations persist to that SQLite database — each turn's
messages are appended to the active session frame, so restarting the app
restores the full history. The headless CLI keeps using .wisp/session.json for
portability.
Projects can be moved between Windows and macOS from the Projects screen. Use
the download action on a project card to export a versioned ZIP, then Import
project on the other computer. The importer asks for a parent folder and
creates a new project directory there; Windows drive letters are never reused.
See Project transfer for contents and limitations.
Projects can also be synchronized explicitly between devices. Configure either
a self-hosted relay or a folder managed by the Baidu Netdisk/Nutstore desktop
client in Settings → General, then press Sync now on a project card.
Synchronization never runs in the background and refuses to start while a task,
approval, review, or run is active. Project contents are encrypted before they
reach either backend; workspace files are uploaded incrementally by content.
See Manual project sync or the
Chinese sync guide for setup, device codes,
conflicts, path behavior, relay deployment, and limitations.
Local ACP Agents
Wisp can launch any already-installed local agent that speaks stable ACP v1
over stdio. This is separate from Settings → Models (HTTP API profiles).
Quick path:
- Install an ACP adapter, for example Codex:
npm install -g @agentclientprotocol/codex-acp - Open Settings → Models → ACP Agents, or from the chat model picker click
Add ACP Agent. Do not put ACP launch commands in the HTTP “Add model” form. - Set Label, Command (
codex-acpornpx/npx.cmd), and
Arguments (one per line; fornpxuse-ythen@agentclientprotocol/codex-acp). - Save Agent → Test Connection → authenticate if offered.
- Select the agent and send a prompt. If the current conversation already has
messages, Wisp starts a new empty session automatically because ACP cannot
rebind existing transcript history. The selection locks after the first
message.
Do not use plain codex / claude here — they are not ACP. Use an adapter
such as codex-acp orclaude-agent-acp.
Full setup, Claude example, Windows notes, and troubleshooting:
docs/acp-agents.md.
Composer references and search
In a desktop conversation, type @ to attach a saved artifact, # to attach
a saved session (including another project), or / to apply an enabled skill
to the next turn. Attachments are explicit, removable chips; cross-project
artifacts stay at their original local path and are never copied automatically.
The same references work with ACP Agents: selected skills and session context
are sent as ACP text blocks, while artifacts are sent as file links.
Use Ctrl+K on Windows/Linux or Cmd+K on macOS to search projects, artifacts,
sessions, and common commands. Enter opens the selected result; Shift+Enter
attaches an artifact or session to the composer.
Saved conversations and conversation folders expose visible action buttons in
the sidebar on macOS, Windows, and Linux. Use them to rename or delete folders,
or to rename, organize, copy, move, export, or delete a conversation. The
sidebar loads the newest 100 conversations first; use Load earlier sessions
to fetch older pages. Opening a conversation initially loads its newest 20 user
turns; use Load earlier messages at the top of the transcript to fetch older
complete turns without splitting tool calls from their results. The chat mounts
at most 40 complete user turns at once; use the earlier/newer controls to move
through already loaded history without growing the DOM unboundedly. Remote
file rows also expose a visible download action, while secondary-click remains
available as an alternate path. Cross-project transfer copies the saved
transcript only. Project files and runs remain in their source project;
conversation-linked artifact records are not transferred, and the underlying
workspace files are never deleted.
On macOS, the native app menu mirrors the global desktop command surface,
including project navigation, new-session commands, edit shortcuts, andCheck for Updates…. Row-specific conversation and folder actions stay beside
their rows. The same update check is also available from the Settings page and
the Windows in-window Help menu. It
now reports the result in an in-app dialog, including whether you are already
up to date or a newer release is available on GitHub Releases.
Bundled demos
Configuration
All optional; sensible defaults are bundled.
| Variable | Purpose |
|---|---|
WISP_API_KEY |
Provider API key (CLI). Desktop uses the keyring instead. |
WISP_PROVIDER |
CLI API provider: openai (default), openai_responses, or anthropic |
WISP_API_URL |
API root; defaults to DeepSeek / OpenAI / Anthropic |
WISP_MODEL |
Model name |
WISP_MAX_CONTEXT |
Context budget (default 1,000,000) |
WISP_MAX_ITER |
Max agent iterations per turn (default 100; 0 = unlimited) |
WISP_SKILLS_PATH |
Extra ;/:-separated SKILL.md catalog dirs |
WISP_KERNEL_WORKER |
Override path to kernel_worker.py (bundled by default) |
WISP_MCP_COMMAND |
Launch an arbitrary stdio MCP server (full command line) |
WISP_MCP_PKG |
Launch a bundled bio-tools server, e.g. mcp_pubmed |
Bundled bio-tools MCP
WISP_MCP_PKG=mcp_pubmed launches mcp-servers/bio-tools/run_server.py mcp_pubmed inside the uv venv. The venv must have the server's dependencies
installed first:
uv pip install mcp requests
# plus any server-specific deps (httpx, xmltodict, etc.) the package imports
Then the agent can call that server's tools (e.g. PubMed search) directly.
Bundled demos
seed/ ships four pre-baked example sessions (CRISPR screen, enzyme
engineering, extremophile, immunotherapy) recorded from the upstream agent.
In the desktop app, Open demo lists them and opens one as a read-only
User + Assistant transcript. Bundled assets_*.tar.gz archives are extracted
into the workspace on open so figures and data files in the right panel preview
correctly.
Testing
Rust unit tests —
cargo test --workspace
(coverswisp-storeSQLite round-trips, the seed demo loader, etc.).MCP client smoke —
cargo run -p wisp-mcp --example smokelaunches the
bundled mock MCP server viauvand round-tripstools/list+tools/call.UI E2E (Playwright + Tauri mock) —
ui-tests/runs the Leptos UI
in a headless browser againsttrunk serve, with a mockedwindow.__TAURI__so no Rust backend or API key is needed:cd ui-tests npm install npx playwright install chromium # one-time browser download npx playwright test # serve UI + run the full mocked desktop flow suiteThe mock (
tests/mock-tauri.ts) stubsinvoke/listenwith canned data
and even simulates a streamed assistant turn, so the tests exercise the real
Leptos rendering and event handling without touching the network.
Architecture
- Agent loop (
wisp-core::agent): read → think → tool-call → verify,
streaming tokens to anOutputsink. Stops onattempt_completionor when
the model returns no tool calls. - Context compaction (
wisp-core::context): three tiers fire before each
model call at 80% of the context budget — micro-compact oversized tool
output, drop old turns, then an LLM-driven full summary as a last resort. - Providers (
wisp-llm): one trait, two wire formats (OpenAI/chat/completionsand Anthropic/v1/messages), both with SSE streaming.RoutedProviderpicks a low/medium/high tier per turn from the last user
message. - Tools (
wisp-tools): filesystem + shell tools with Windows-aware
dangerous-command gating and adunce-canonicalized path sandbox rooted at
the project directory. - Python/R REPLs (
wisp-runtime): one manager-owned process per
project/execution context/language keeps its namespace across cells and
conversations; local, WSL, and SSH contexts use the same versioned protocol.
R is optional and uses an existingRscriptplusjsonlite. The Contexts
panel probes interpreter capabilities; selecting a local, WSL, or SSH server
reveals only that context's runtimes and runs in the detail pane. Runtime
details include status, memory, last activity, destructive Stop/Restart
controls, and a read-only floating environment table opened from the Python/R
label with object names, types, shapes/sizes, and bounded metadata. - MCP (
wisp-mcp): a minimal newline-JSON-RPC client launches any stdio
MCP server and exposes each remote tool as a first-class agent tool.
Acknowledgements
Special thanks to these community members for their hands-on testing and
valuable suggestions:
- Claude Science (Operon) is referenced in product comparison and
compatibility research. - The agent core is based on
w4n9H/mangopi-cli(Apache-2.0). skills/andmcp-servers/bio-tools/vendored from the upstreamwisp-scienceasset bundle (Apache-2.0).skills/bear-*from bear-research-skills
(CC BY-NC-SA 4.0); requiresscimaster-clifor live retrieval.kernels/kernel_worker.pyprotocol adapted from the upstream operon kernel
worker, with POSIX-onlyresource//proc/SIGINTmachinery dropped for
Windows.
See LICENSE (Apache-2.0). Upstream notices are preserved in their respective
directories.
Citation
If you use wisp-science in your research, please cite:
@software{xu2026wisp,
author = {Xu, Zhougeng and hoptop},
title = {wisp-science: A local-first scientific computing agent},
version = {v0.4.1},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.21193742},
url = {https://doi.org/10.5281/zenodo.21193742}
}
Roadmap (post-MVP)
FlashThinking— phase-aware structured thinking-framework injection.loop_engine— deeper Implementer / Verifier / Updater workflows beyond the
bounded automatic Reviewer pass shipped today.- Artifact management + inline Mol* 3D structure viewer in the UI.
RoutedProviderLLM-score tier selection (keyword tier is already wired).- Bundling
skills/andmcp-servers/into the Tauri installer so releases
are fully self-contained without the source tree.
Star History
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi