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 packageserver.py— HTTP server + setup APIs +/api/send→ agent backendapp/— static web app (HTML, CSS, JS) shipped as package databackend/— 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:
- Install the ACP client:
uv sync - Ensure Copilot supports ACP:
copilot --acp --stdio(then Ctrl+C) - Run with verbose logs:
uv run saki.io -v— startup and ACP errors are printed to stderr. - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc225b3a866b78ce76ebd84e8b7299fddf3e4b971dd4b416c2d1ac5f3a295498
|
|
| MD5 |
66ad664bd833b7a1a634213e386bcf3d
|
|
| BLAKE2b-256 |
17d05b7847093dd76d0e402d04a3222491801ff691050e68e2d965831e9e54b9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
saki_io-0.1.0-py3-none-any.whl -
Subject digest:
cc225b3a866b78ce76ebd84e8b7299fddf3e4b971dd4b416c2d1ac5f3a295498 - Sigstore transparency entry: 984441436
- Sigstore integration time:
-
Permalink:
MuGdxy/saki.io@0026bbfcfaa93545b56cf074d4b4944b02f21892 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/MuGdxy
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@0026bbfcfaa93545b56cf074d4b4944b02f21892 -
Trigger Event:
release
-
Statement type: