{"id":45450524,"url":"https://github.com/stefankubicki/istota","last_synced_at":"2026-02-23T06:01:46.383Z","repository":{"id":339102749,"uuid":"1159736192","full_name":"stefankubicki/istota","owner":"stefankubicki","description":"A cybernetic emissary that lives in your Nextcloud instance.","archived":false,"fork":false,"pushed_at":"2026-02-22T08:48:16.000Z","size":1024,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-22T10:37:56.537Z","etag":null,"topics":["ai","assistant","claude-code","homelab","nextcloud","personal","self-hosted"],"latest_commit_sha":null,"homepage":"https://istota.xyz","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefankubicki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-17T05:04:56.000Z","updated_at":"2026-02-22T07:38:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stefankubicki/istota","commit_stats":null,"previous_names":["stefankubicki/istota"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/stefankubicki/istota","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefankubicki%2Fistota","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefankubicki%2Fistota/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefankubicki%2Fistota/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefankubicki%2Fistota/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefankubicki","download_url":"https://codeload.github.com/stefankubicki/istota/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefankubicki%2Fistota/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T04:51:08.365Z","status":"ssl_error","status_checked_at":"2026-02-23T04:49:15.865Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","assistant","claude-code","homelab","nextcloud","personal","self-hosted"],"created_at":"2026-02-22T05:06:57.609Z","updated_at":"2026-02-23T06:01:46.377Z","avatar_url":"https://github.com/stefankubicki.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003e istota\n\nA self-hosted AI agent that lives in your Nextcloud instance. Powered by Claude Code. ([istota.xyz](https://istota.xyz))\n\n## Requirements\n\n- A Nextcloud instance with a dedicated user account for the bot (if you don't have one yet, [Nextcloud All-in-One](https://github.com/nextcloud/all-in-one) is the easiest way to get started — make sure Nextcloud Talk is enabled)\n- A Debian/Ubuntu VM (separate from your Nextcloud server)\n- A [Claude Code](https://docs.anthropic.com/en/docs/build-with-claude/claude-code) API key or OAuth token\n\n## Quick start\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/stefankubicki/istota/main/deploy/install.sh -o install.sh\nsudo bash install.sh\n```\n\nThe installer walks you through connecting to Nextcloud, setting up users, and choosing optional features (email, memory search, scheduled briefings, etc.). It handles everything: system packages, Python dependencies, rclone mount, database initialization, systemd services.\n\nAfter installation, authenticate the Claude CLI and invite the bot to a Talk conversation:\n\n```bash\nsudo -u istota HOME=/srv/app/istota claude login\n```\n\nTo update an existing installation (pull latest code, regenerate config, restart):\n\n```bash\nsudo bash install.sh --update\n```\n\nPreview what the installer would generate without making changes:\n\n```bash\nbash deploy/install.sh --dry-run\n```\n\nAn Ansible role is also available at `deploy/ansible/` for infrastructure-as-code deployments.\n\n## How it works\n\n```\nTalk message ──\u003e┐\nEmail ─────────\u003e├──\u003e SQLite queue -\u003e Scheduler -\u003e Claude Code -\u003e Response\nTASKS.md ──────\u003e│\nCLI ───────────\u003e┘\n```\n\nMessages arrive through Talk polling, IMAP, TASKS.md file watching, or the CLI. The scheduler claims tasks from a SQLite queue, builds a prompt with the user's resources, skills, memory, and conversation context, then invokes Claude Code in a sandbox. Responses go back through the same channel.\n\nPer-user worker threads handle concurrency — foreground tasks (chat) and background tasks (scheduled jobs, briefings) run on separate pools so a long-running job never blocks a conversation.\n\n## Features\n\n**Messaging** — Nextcloud Talk (DMs and multi-user rooms with @mention support), email (IMAP/SMTP with threading), TASKS.md file polling, CLI.\n\n**Skills** — Loaded on demand based on prompt keywords, resource types, and source types. Ships with: Nextcloud file management, CalDAV calendar, email, web browsing (Dockerized Playwright), git/GitLab/GitHub development workflows, beancount accounting with invoicing, Karakeep bookmarks, voice transcription (faster-whisper), OCR (Tesseract), RSS/Atom/Tumblr/Are.na feeds, and more. Skills are a curated standard library rather than a plugin marketplace.\n\n**Memory** — Per-user persistent memory (USER.md, auto-loaded into prompts), per-channel memory (CHANNEL.md), and dated memory files from nightly extraction. Hybrid BM25 + vector search (sqlite-vec, MiniLM) across conversations and memory files.\n\n**Scheduling** — Cron jobs via CRON.md (AI prompts or shell commands), natural-language reminders as one-shot cron entries, scheduled briefings with calendar/markets/news/todos components, invoice generation schedules.\n\n**Briefings** — Configurable morning/evening summaries. Components include calendar events, market data (futures, indices via yfinance + FinViz), news from RSS feeds, todos, email summaries, notes, and reminders. Output to Talk, email, or both.\n\n**Heartbeat monitoring** — User-defined health checks: file age, shell commands, URL health, calendar conflicts, task deadlines, and system self-checks. Cooldowns, quiet hours, and per-check intervals.\n\n**Multi-user** — Per-user config files, resource permissions, worker pools, and filesystem sandboxing. Admin/non-admin isolation. Each user gets their own Nextcloud workspace with config files, exports, and memory. Multiple bot instances can coexist on the same Nextcloud — each runs as its own Nextcloud user with a separate namespace, and they can interact with each other through Talk rooms like any other participant.\n\n**Security** — Bubblewrap sandbox per invocation (PID namespace, restricted mounts, credential isolation). Non-admin users can't see the database, other users' files, or system config. Deferred DB writes via JSON files for sandboxed operations. Credential stripping from subprocess environments.\n\n**Constitution** — An [Emissaries](https://commontask.org/emissaries/) layer defines how the agent reasons about data, handles the boundary between private and public action, and what it owes to people beyond its operator. Customizable per-user persona on top.\n\n## User workspace\n\nEach user gets a shared Nextcloud folder:\n\n```\n/Users/alice/istota/\n├── config/\n│   ├── USER.md          # Persistent memory\n│   ├── TASKS.md         # File-based task queue\n│   ├── PERSONA.md       # Personality customization\n│   ├── BRIEFINGS.md     # Briefing schedule\n│   ├── CRON.md          # Scheduled jobs\n│   └── HEARTBEAT.md     # Health monitoring config\n├── exports/             # Bot-generated files\n└── examples/            # Reference documentation\n```\n\n## Development\n\n```bash\nuv sync                                    # Install dependencies\nuv run pytest tests/ -v                    # Run tests (~2170 unit tests)\nuv run pytest -m integration -v            # Integration tests (needs live config)\nuv run istota task \"hello\" -u alice -x     # Test execution\n```\n\nOptional dependency groups:\n\n```bash\nuv sync --extra memory-search    # sqlite-vec + sentence-transformers for semantic search\nuv sync --extra whisper          # faster-whisper for audio transcription\n```\n\n## Further reading\n\n- [ARCHITECTURE.md](ARCHITECTURE.md) — detailed system architecture and design decisions\n- [DEVLOG.md](DEVLOG.md) — detailed changelog\n\n## License\n\n[MIT](LICENSE)\n\n***\n© 2026 [Stefan Kubicki](https://kubicki.org) • a [CYNIUM](https://cynium.com) release • shipped from the [Atoll](https://kubicki.org/atoll)\n***\nCanonical URL: https://forge.cynium.com/stefan/istota\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefankubicki%2Fistota","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefankubicki%2Fistota","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefankubicki%2Fistota/lists"}