Skip to main content

Saki AI — Live2D avatar app with Copilot/Cursor CLI relay (ACP)

Project description

saki.io

Saki AI — Live2D avatar app with Copilot/Cursor CLI relay. Planning and goals live in MySpace; this repo is implementation only.

Install

uv sync

Run

uv run saki.io

Then open http://localhost:8000 in your browser. The app uses the Copilot CLI (e.g. brew install copilot-cli) and agent-client-protocol for context across messages. If ACP isn't available, the server falls back to one-shot copilot --prompt "...".

Commands for developers

All commands use UV:

Command Description
uv run saki.io Run Saki (default).
uv run saki.io --allow-tools Allow Copilot to run commands, read/write files, and use tools (e.g. gh).
uv run saki.io -v Enable verbose output (session, HTTP, ACP logs).

Flags can be combined, e.g. uv run saki.io --allow-tools -v.

Structure

  • saki/io/ — Python package
    • server.py — HTTP server + setup APIs + /api/send → agent backend
    • app/ — static web app (HTML, CSS, JS) shipped as package data
    • backend/ — agent backend abstraction (Copilot now; Cursor later)
    • acp_client.py — Copilot ACP client (used by CopilotBackend)
    • bootstrap.py — .saki.io folder bootstrap
  • tests/ — pytest

Stack

Plain HTML + JavaScript, no build. Python deps in pyproject.toml. Relay uses one copilot --acp --stdio session when agent-client-protocol is installed.

Tests

uv sync --extra dev
uv run pytest tests/ -v

Integration test (Copilot + gh): RUN_ACP_INTEGRATION=1 uv run pytest tests/test_acp_gh_integration.py -v

Debugging ACP

If you see "Using one-shot --prompt" and want the single-session (context) mode:

  1. Install the ACP client: uv sync
  2. Ensure Copilot supports ACP: copilot --acp --stdio (then Ctrl+C)
  3. Run with verbose logs: uv run saki.io -v — startup and ACP errors are printed to stderr.
  4. To inspect the raw ACP protocol: SAKI_ACP_LOG=1 uv run saki.io -v — every JSON-RPC message to/from Copilot is printed.

"Failed to list models" — Copilot ACP can't list models (auth/network). Start the server from a terminal where copilot --prompt "hi" works (same env = same credentials).

Tool use

By default, Saki rejects all tool use (terminal, file read/write). To allow Copilot to run commands and use tools:

uv run saki.io --allow-tools

Why does Saki say "tool rejected" when gh/copilot work in tests?

Tests run commands directly in the server process. In chat, Copilot uses the ACP flow: it asks for permission (we say "allowed"), then it calls back into our client. If that follow-up uses a method or param shape we don't support, we return "method not found". With SAKI_ACP_LOG=1 uv run saki.io -v you can see the exact ACP messages and adjust acp_client.py or backend.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

saki_io-0.1.0-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: saki_io-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for saki_io-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc225b3a866b78ce76ebd84e8b7299fddf3e4b971dd4b416c2d1ac5f3a295498
MD5 66ad664bd833b7a1a634213e386bcf3d
BLAKE2b-256 17d05b7847093dd76d0e402d04a3222491801ff691050e68e2d965831e9e54b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for saki_io-0.1.0-py3-none-any.whl:

Publisher: build-wheels.yml on MuGdxy/saki.io

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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