shiwenwen/hope-agent
A local-first Rust agent for work that continues across sessions and devices
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Hope Agent is an MIT-licensed end-user application built around a Rust Cargo workspace. The src-tauri desktop entry point uses the Tauri frontend API, and the frontend toolchain includes TypeScript and Vite. The workspace separates responsibilities into crates such as ha-agent-runtime, ha-agent-loop, ha-goal, ha-workflow, ha-memory, and ha-server. The desktop app, headless hope-agent server with its embedded web UI, and hope-agent acp for IDEs share the same core.
Goal defines an outcome and its completion criteria, Workflow executes a concrete run and keeps a durable trace, and Loop determines when to advance again. Task exposes progress, while Mode controls execution autonomy. These pieces can be used independently. For integrations, the built-in MCP client supports OAuth 2.1, and lifecycle hooks can invoke commands, HTTP endpoints, MCP tools, prompts, or agents. Cross-device continuity is a property of a shared instance and its session store, not replication between installations.
Key Capabilities & Differentiators
The execution model is designed for work that outlasts a chat turn. Goals have budgets, pause and resume controls, and a completion check that requires evidence of results. Workflows can coordinate parallel sub-agents, reviews, and verification, with a durable trace for pause, cancellation, or restart recovery. Loops can wake on schedules, conditions, or events, with backoff and safeguards against repeated runs that make no progress. Memory is scoped to Global, Project, or Agent, with a compact Core kept in context and fuller records retrieved on demand through full-text or vector search.
Hosted model requests go directly to the configured provider; Ollama is the local option for generation and embeddings. Knowledge Space edits real Markdown, can attach an existing Obsidian vault, and retains traceable sources. Design Space covers more than ten artifact types, with visual editing, version history, and exports such as HTML, PDF, and PPTX. Browser control includes a live mirror; full desktop control is available on macOS with permissions, and tools that cause side effects use a common approval flow.
Trade-offs & Limitations
Compared with a chat-only model frontend, Hope Agent adds durable task state, scheduled continuation, and cross-device review. Those features justify the extra setup when work spans days or devices; for stateless Q&A, an ordinary chat client has fewer settings and permissions to manage. An IDE-first assistant is more direct when all work stays in the editor. Hope Agent offers ACP for IDE access, but its main advantage is keeping work accessible from desktop, web, and configured IM channels on the same running instance.
Local-first storage does not make hosted inference private to the machine: request context still goes to the selected provider. Ollama moves inference onto hardware you manage, so model choice and concurrent agents change resource needs. Unified approvals and optional Docker sandboxing reduce exposure from side effects, but neither makes broad file access or unattended execution safe by default. Start with limited permissions and budgets, and expand only after checking task traces and results. Headless deployment also does not substitute for macOS desktop control.
Hardware & Deployment Guide
Choose the desktop installer for interactive use or the standalone server for an always-on NAS, home server, or VM. macOS offers the complete desktop experience; regular packages target Apple Silicon, so check the release assets before planning an Intel installation. Linux and Windows desktop support is experimental. The Docker Compose example pulls ghcr.io/shiwenwen/hope-agent:latest, binds 127.0.0.1:8420 by default, and exposes the generated owner token through docker compose exec hope-agent hope-agent server token show. Browser login exchanges it for an HttpOnly session. For public access, use a TLS-terminating reverse proxy and keep the owner token out of URLs.
A hosted provider does not require local model inference. To run models locally in Compose, enable the with-ollama profile and size the host for the chosen models, context lengths, and concurrency, including embeddings if used. The default application data directory is ~/.hope-agent/; preserve instance state when replacing or moving a host if session continuity matters. Version 0.75.0 introduced bounded background follow-up and opt-in research on explicitly shared local text. Version 0.76.0 patched formula rendering and URL parsing and updated scheduled-expression parsing; 0.77.0 fixed a security issue in translation-resource merging.
Independent developers, research and document workflows, and self-hosters who need persistent context, reviewable background work, and access to the same instance from multiple devices.
You only need ad hoc chat, all your work stays in the IDE, or you require full desktop control on Linux or Windows or automatic synchronization between independent installations.
Quick Start & Installation
brew tap shiwenwen/hope-agent
brew install --cask hope-agentComparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| hope-agent ★ | 1.9k | +13 | Rust | MIT | A local-first Rust agent for work that continues across sessions and devices |
| AstrBot | 47.9k | +298 | Python | AGPL-3.0 | A self-hosted Python agent hub that connects chat platforms to model providers |
| cua | 34.1k | +973 | Rust | MIT | Rust-backed sandboxes and cross-OS desktop controls for computer-use agents |
| QwenPaw | 38.5k | +246 | Python | Apache-2.0 | Self-hosted agent workspace for scheduled tasks and chat across apps |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/shiwenwen/hope-agent.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about hope-agent
How do handoff, ACP, and MCP fit together?
Can I run it on a NAS without a dedicated GPU?
Can a business self-host or redistribute it?
When is Hope Agent preferable to a chat client or an IDE assistant?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy