Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

canonical/hackathon-desktop-help

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Desktop help app

Watch the demo

An experimental Rust application for answering Ubuntu Desktop questions with a local documentation context.

The current prototype is a CLI chat interface. It can talk to either:

  • a local model served through Ollama
  • a remote model via GitHub Copilot and the GitHub Models API

Prerequisites

Hardware: At least 2 GB of RAM and ~2 GB of disk space (for deepseek-r1:1.5b).

Rust and Cargo

sudo snap install rustup --classic
rustup toolchain install stable

Run the app with a local model

The app talks to a local model through Ollama. Install it first:

sudo snap install ollama

Pull a model, for example:

ollama pull deepseek-r1:1.5b
ollama pull tinyllama

Start the app, passing the model name you pulled:

cargo run chat --model tinyllama

If --model is not specified, the app defaults to deepseek-r1:1.5b.

You can also set the model and server URL via environment variables:

OLLAMA_MODEL=deepseek-r1:1.5b OLLAMA_URL=http://localhost:11434 cargo run chat

For a release build, add --release:

cargo run --release chat --model tinyllama

Run the app with GitHub Copilot

Use this mode to switch from a local Ollama-served model to a remote model via the GitHub Models API.

This can feel faster than running a local model because the inference work does not happen on your machine, though the result still depends on network latency.

First, authenticate with GitHub Copilot. The simplest way is via the GitHub CLI:

sudo apt install gh
gh auth login
gh auth token  # verify it works

Alternatively, set COPILOT_TOKEN directly — this takes precedence over the GitHub CLI. Generate a token at github.com/settings/tokens with the models:read scope, or use a token from an existing GitHub Copilot subscription.

In Bash:

export COPILOT_TOKEN=your_token_here

In Fish:

set -x COPILOT_TOKEN your_token_here

Then start the app with the --copilot flag:

cargo run --copilot chat

For a release build, add --release:

cargo run --release --copilot chat

The app uses gpt-4o-mini via the GitHub Models API.

About

Prototype LLM-based Help app for Desktop that uses local official documentation.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages