{"id":29102849,"url":"https://github.com/psiace/republic","last_synced_at":"2026-02-27T04:12:11.126Z","repository":{"id":301341471,"uuid":"1008238567","full_name":"PsiACE/republic","owner":"PsiACE","description":"An explicit LLM client and router with append-only history and controllable context.","archived":false,"fork":false,"pushed_at":"2026-02-04T18:37:02.000Z","size":1531,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-05T02:52:11.042Z","etag":null,"topics":["agent","ai","prompt-engineering"],"latest_commit_sha":null,"homepage":"http://getrepublic.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PsiACE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-06-25T08:35:35.000Z","updated_at":"2026-02-05T02:10:48.000Z","dependencies_parsed_at":"2025-06-26T11:41:26.120Z","dependency_job_id":"9bd1287f-ee45-49da-b16e-87d3724d9983","html_url":"https://github.com/PsiACE/republic","commit_stats":null,"previous_names":["psiace/republic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PsiACE/republic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Frepublic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Frepublic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Frepublic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Frepublic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PsiACE","download_url":"https://codeload.github.com/PsiACE/republic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PsiACE%2Frepublic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29290997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T03:42:42.660Z","status":"ssl_error","status_checked_at":"2026-02-10T03:42:41.897Z","response_time":65,"last_error":"SSL_read: 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","ai","prompt-engineering"],"created_at":"2025-06-28T22:07:13.680Z","updated_at":"2026-02-27T04:12:11.118Z","avatar_url":"https://github.com/PsiACE.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Republic\n\n[![Release](https://img.shields.io/github/v/release/psiace/republic)](https://img.shields.io/github/v/release/psiace/republic)\n[![Build status](https://img.shields.io/github/actions/workflow/status/psiace/republic/main.yml?branch=main)](https://github.com/psiace/republic/actions/workflows/main.yml?query=branch%3Amain)\n[![codecov](https://codecov.io/gh/psiace/republic/branch/main/graph/badge.svg)](https://codecov.io/gh/psiace/republic)\n[![Commit activity](https://img.shields.io/github/commit-activity/m/psiace/republic)](https://img.shields.io/github/commit-activity/m/psiace/republic)\n[![License](https://img.shields.io/github/license/psiace/republic)](https://img.shields.io/github/license/psiace/republic)\n\nBuild LLM workflows like normal Python while keeping a full audit trail by default.\n\n\u003e Visit https://getrepublic.org for concepts, guides, and API reference.\n\nRepublic is a **tape-first** LLM client: messages, tool calls, tool results, errors, and usage are all recorded as structured data. You can make the workflow explicit first, then decide where intelligence should be added.\n\n## Quick Start\n\n```bash\npip install republic\n```\n\n```python\nfrom __future__ import annotations\n\nimport os\n\nfrom republic import LLM\n\napi_key = os.getenv(\"LLM_API_KEY\")\nif not api_key:\n    raise RuntimeError(\"Set LLM_API_KEY before running this example.\")\n\nllm = LLM(model=\"openrouter:openrouter/free\", api_key=api_key)\nresult = llm.chat(\"Describe Republic in one sentence.\", max_tokens=48)\n\nif result.error:\n    print(result.error.kind, result.error.message)\nelse:\n    print(result.value)\n```\n\n## Why It Feels Natural\n\n- **Plain Python**: The main flow is regular functions and branches, no extra DSL.\n- **Structured Result**: Core interfaces return `StructuredOutput`, with stable `ErrorKind` values.\n- **Tools without magic**: Supports both automatic and manual tool execution with clear debugging and auditing.\n- **Tape-first memory**: Use anchor/handoff to bound context windows and replay full evidence.\n- **Event streaming**: Subscribe to text deltas, tool calls, tool results, usage, and final state.\n\n## Development\n\n```bash\nmake check\nmake test\n```\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md) for local setup, testing, and release guidance.\n\n## License\n\n[Apache 2.0](./LICENSE)\n\n---\n\n\u003e This project is derived from [lightning-ai/litai](https://github.com/lightning-ai/litai) and inspired by [pydantic/pydantic-ai](https://github.com/pydantic/pydantic-ai); we hope you like them too.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsiace%2Frepublic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsiace%2Frepublic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsiace%2Frepublic/lists"}