[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112908":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":15,"starSnapshotCount":15,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},112908,"Capri-Capricorn-The-Desktop-Construct","Juliowiwiwiwi\u002FCapri-Capricorn-The-Desktop-Construct","Juliowiwiwiwi","Capri is an open-source, Cyberpunk-inspired desktop companion that lives on your Windows desktop. Built with local AI using Ollama, she can hang out and chat with you. Voice interaction and more animations are planned. Contributions, ideas, and feedback are welcome!","",null,"Python",56,9,7,0,1,40.1,false,"main",true,[],"2026-10-29 15:35:25","2026-11-22 07:29:49","# Capri (*wont be working on this for a week due to other commitments.. will be resumed shortly)\n\n*A little cyberpunk companion for your Windows desktop.*\n\nCapri is a lightweight desktop pet inspired by the atmosphere of\n**Cyberpunk 2077**. She lives on your desktop as an animated character,\nwith a compact terminal-style chat window powered by a local Ollama\nmodel.\n\nThe goal is to make Capri feel like a companion you can hang out with\nwhile you work---not another giant assistant dashboard.\n\n## Preview\n\n### Capri on the desktop\n\n![Capri desktop pet](assets\u002Fui\u002Fcapri1.png)\n![Capri desktop pet](assets\u002Fui\u002Fcapri2.png)\n\n### Capri with the chat terminal open\n\n![Capri chat terminal](assets\u002Fui\u002Fcaprichat.png)\n\n## Current features\n\n-   **Desktop pet:** an animated character that stays on the desktop.\n-   **Idle behaviour:** animation states such as blinking and\n    sleeping\u002Fwaking.\n-   **Terminal-style chat:** a compact cyberpunk-inspired chat window.\n-   **Local AI:** replies are generated by Ollama using the custom\n    `capri:latest` model.\n-   **Streaming responses:** text appears as the model generates it.\n-   **Custom personality:** Capri's persona is configured in the Ollama\n    `Modelfile`, rather than duplicated in the Python UI code.\n-   **Local-first text chat:** the current text-chat flow is designed to\n    run without a hosted AI API.\n\n> **In progress:** voice input and spoken replies are planned.\n> Push-to-talk speech recognition and local text-to-speech are not\n> implemented yet.\n\n## Tech stack\n\n-   **Python**\n-   **PySide6** --- desktop UI\n-   **Ollama** --- local language-model runtime\n-   **Gemma 3 4B** --- base model for the custom `capri:latest` model\n-   **faster-whisper + Piper** --- planned options for local\n    speech-to-text and text-to-speech\n\n## Requirements\n\n-   Windows 11\n-   Python compatible with the project's dependencies\n-   [Ollama](https:\u002F\u002Follama.com\u002F) installed and running\n-   The `capri:latest` model available in Ollama\n\nA dedicated GPU is optional for basic text chat, but performance depends\non your hardware and Ollama configuration.\n\n## Getting started\n\nThe commands below assume you're running them from the project\nroot---the folder containing the `capri` Python package.\n\n### 1. Clone the repository\n\n``` bash\ngit clone \u003Cyour-repository-url>\ncd Capri\n```\n\nReplace `\u003Cyour-repository-url>` with the repository URL.\n\n### 2. Create and activate a virtual environment\n\n**PowerShell:**\n\n``` powershell\npy -m venv .venv\n.\\.venv\\Scripts\\Activate.ps1\n```\n\n**Git Bash:**\n\n``` bash\npython -m venv .venv\nsource .venv\u002FScripts\u002Factivate\n```\n\n### 3. Install dependencies\n\nIf the repository contains `requirements.txt`:\n\n``` bash\npython -m pip install -r requirements.txt\n```\n\nIf it doesn't, install the dependencies documented by the project. The\ncurrent desktop UI uses PySide6.\n\n### 4. Install and check Ollama\n\nInstall Ollama from [ollama.com](https:\u002F\u002Follama.com\u002F), then check that\nthe model is available:\n\n``` bash\nollama list\n```\n\nYou should see `capri:latest` in the list.\n\nIf you have the project's `Modelfile`, create the custom model from the\ndirectory where that file lives:\n\n``` bash\nollama create capri -f \"\u002Fpath\u002Fto\u002FModelfile\"\n```\n\nReplace `\u002Fpath\u002Fto\u002FModelfile` with the actual path to your file. The\nModelfile defines Capri's model configuration and personality. Keep the\nmodel name in sync with the Python client configuration.\n\n### 5. Launch Capri\n\nFrom the project root:\n\n``` bash\npython -m capri.main\n```\n\nIf the app cannot connect to Ollama, make sure Ollama is running and the\nmodel name in the app matches the name shown by `ollama list`.\n\n## Project layout\n\nThe main Python package is organised approximately like this:\n\n``` text\nCapri\u002F\n├── Modelfile                  # Ollama model configuration \n├── capri\u002F\n│   ├── main.py                # Application entry point\n│   ├── ai\u002F\n│   │   └── model_client.py    # Ollama client and streaming responses\n│   ├── character\u002F\n│   │   └── controller.py      # Character behaviour and state\n│   └── desktop\u002F\n│       ├── window.py          # Desktop pet window\n│       └── chat_window.py     # Terminal-style chat UI\n└── assets\u002F\n    └── ui\u002F\n        ├── capri1.png\n        └── caprichat.png\n```\n\nYour local project may contain additional files or use a slightly\ndifferent layout. Update this section as the project evolves.\n\n## Configuration\n\n### Capri's personality\n\nThe custom Ollama model is configured through the `Modelfile`. To adjust\nher tone or behaviour:\n\n1.  Edit the `SYSTEM` instructions in the Modelfile.\n2.  Rebuild the model with\n    `ollama create capri -f \"\u002Fpath\u002Fto\u002FModelfile\"`.\n3.  Keep the model name used by the Python client set to `capri:latest`,\n    or update both if you choose another name.\n\nAvoid maintaining a second, conflicting personality prompt in Python\nunless there's a specific reason to do so.\n\n### Local performance\n\nModel speed and memory use depend on the model, context length, GPU\nmemory, and other running applications. On systems with limited VRAM,\nkeep the setup lightweight and adjust model settings if generation is\nslow.\n\n## Roadmap\n\n-   [x] Animated desktop companion\n-   [x] Idle animation states\n-   [x] Terminal-style chat window\n-   [x] Local Ollama model integration\n-   [x] Streaming text responses\n-   [ ] Push-to-talk voice input\n-   [ ] Spoken responses using local text-to-speech\n-   [ ] Interrupt\u002Fstop spoken playback\n-   [ ] Persistent conversation memory\n-   [ ] More expressive character reactions tied to chat state\n\n## Troubleshooting\n\n### Capri opens but cannot connect to the model\n\n-   Confirm Ollama is installed and running.\n-   Run `ollama list` and check that `capri:latest` exists.\n-   Check that the model name configured in the Python client matches\n    the installed model name.\n\n### Python cannot find `capri.main`\n\nRun the command from the project root---the directory containing the\ninner `capri\u002F` package:\n\n``` bash\npython -m capri.main\n```\n\n### Streamed text appears without spaces\n\nThe chat UI should insert streamed model chunks as plain text, not HTML.\nIn the streaming-token handler, use `QTextCursor.insertText()` or\n`QTextEdit.insertPlainText()` so whitespace is preserved.\n\n## Privacy\n\nThe current text-generation flow is designed to use a local Ollama\nmodel. Voice features are still planned; before enabling them, verify\nthat microphone audio, transcripts, and generated speech stay local and\naren't sent to external services.\n\n## Contributing\n\nIssues, bug reports, and improvements are welcome. Keep changes small\nand test the desktop UI and model connection after modifying the chat or\ncharacter code.\n\n## License\n\n\n","Capri 是一款开源的赛博朋克风格桌面伴侣应用，专为 Windows 11 设计，以轻量级桌面宠物形式常驻桌面。它基于本地运行的 Ollama（搭载自定义 capri:latest 模型，底层为 Gemma 3 4B），提供终端式文字聊天、流式响应、角色化人格配置及基础动画行为（如眨眼、休眠\u002F唤醒）。所有对话处理完全离线，不依赖云端 API。适用于希望在日常办公或开发过程中获得低干扰、个性化本地 AI 陪伴体验的用户，尤其适合注重隐私与本地化 AI 部署的桌面端轻交互场景。",2,"2026-11-24 04:44:33","CREATED_QUERY"]