{"id":43118887,"url":"https://github.com/korchasa/severin","last_synced_at":"2026-01-31T19:09:56.889Z","repository":{"id":316799387,"uuid":"1064739693","full_name":"korchasa/severin","owner":"korchasa","description":"PoC server chat agent","archived":false,"fork":false,"pushed_at":"2025-11-25T23:48:37.000Z","size":987,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-29T03:48:45.139Z","etag":null,"topics":["agent","agentic-ai","devops","llm","sre"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/korchasa.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":null,"dco":null,"cla":null}},"created_at":"2025-09-26T13:35:31.000Z","updated_at":"2025-11-25T18:41:10.000Z","dependencies_parsed_at":"2025-09-26T20:42:41.890Z","dependency_job_id":"9131295e-269e-4fa7-a0fa-4d213c7adf22","html_url":"https://github.com/korchasa/severin","commit_stats":null,"previous_names":["korchasa/severin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/korchasa/severin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korchasa%2Fseverin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korchasa%2Fseverin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korchasa%2Fseverin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korchasa%2Fseverin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/korchasa","download_url":"https://codeload.github.com/korchasa/severin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/korchasa%2Fseverin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28950551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["agent","agentic-ai","devops","llm","sre"],"created_at":"2026-01-31T19:09:56.822Z","updated_at":"2026-01-31T19:09:56.884Z","avatar_url":"https://github.com/korchasa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server Agent\n\nTelegram-based Home Server Agent (PoC) - reliable and maintainable bot for server management.\n\n## Features\n\n- **Telegram Control**: Receive commands and send notifications\n- **Tools**: Execute terminal commands via AI\n- **Health Checks**: Periodically monitor server health and send notifications if issues are\n  detected\n\n## Screenshots\n\n![Screenshot 1](documents/1.png)\n\n## Quick Start\n\n```bash\n# Run checks (formatting, linting, tests)\n./run check\n\n# Install dependencies and start application\n./run start\n\n# Compile and run on server and start\n./run deploy server.lan:~/server-ai\n```\n\n## Configuration\n\nSet environment variables:\n\n### Required\n\n- `TELEGRAM_BOT_TOKEN` - Telegram bot token from [@BotFather](https://t.me/botfather)\n- `TELEGRAM_OWNER_IDS` - allowed Telegram user IDs (comma-separated list of numbers)\n- `AGENT_LLM_API_KEY` - OpenAI API key for LLM functionality\n\n### Optional\n\n- `AGENT_DATA_DIR` - directory for storing data files (default: \"./data\")\n- `LOGGING_FORMAT` - log output format: \"pretty\" or \"json\" (default: \"pretty\")\n- `AGENT_MEMORY_MAX_SYMBOLS` - maximum total symbols in context (default: 20000)\n- `AGENT_TERMINAL_TIMEOUT_MS` - terminal tool timeout in milliseconds (default: 30000)\n- `AGENT_TERMINAL_MAX_COMMAND_OUTPUT_SIZE` - max stdout size for terminal tool (default: 200000)\n- `AGENT_TERMINAL_MAX_LLM_INPUT_LENGTH` - input length limit for terminal tool (default: 2000)\n- `RATE_LIMIT_REQUEST_INTERVAL_MS` - minimum interval between user requests in milliseconds\n  (default: 5000)\n- `SCHEDULER_INTERVAL_HOURS` - hours between health checks (default: 1)\n- `SCHEDULER_JITTER_MINUTES` - random jitter for check timing in minutes (default: 5)\n\n## Bot Commands\n\n- `/reset` - reset context\n\n## Architecture\n\n- **Deno runtime** for reliability and security\n- **TypeScript strict mode** with domain-organized configuration\n- **grammy** for Telegram Bot API\n- **zod** for data validation\n- **Vercel AI SDK** for LLM integration with tool calls\n- **File storage** for simplicity (JSONL)\n  - Facts storage module: `src/agent/facts/file.ts`\n  - Context building: `src/agent/context/builder.ts` (symbol-limited + prompt templating)\n- **AbortController-based timeouts** for terminal tool execution\n\n## Documentation\n\n- [Requirements](documents/requirements.md) - Software Requirements Specification\n- [Design](documents/design.md) - Software Design Specification\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorchasa%2Fseverin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkorchasa%2Fseverin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorchasa%2Fseverin/lists"}