{"id":51181308,"url":"https://github.com/perseus-computing-llc/perseus-agent-core","last_synced_at":"2026-06-27T07:02:54.955Z","repository":{"id":364797486,"uuid":"1267867664","full_name":"Perseus-Computing-LLC/perseus-agent-core","owner":"Perseus-Computing-LLC","description":"Shared memory and tool layer for Perseus agents — MemoryEntry, Elastic/Engram backends, decision log, knowledge graph, project context.","archived":false,"fork":false,"pushed_at":"2026-06-15T23:23:14.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T06:26:18.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Perseus-Computing-LLC.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-06-12T23:42:06.000Z","updated_at":"2026-06-17T05:09:48.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Perseus-Computing-LLC/perseus-agent-core","commit_stats":null,"previous_names":["tcconnally/perseus-agent-core","perseus-computing-llc/perseus-agent-core"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Perseus-Computing-LLC/perseus-agent-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fperseus-agent-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fperseus-agent-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fperseus-agent-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fperseus-agent-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Perseus-Computing-LLC","download_url":"https://codeload.github.com/Perseus-Computing-LLC/perseus-agent-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Perseus-Computing-LLC%2Fperseus-agent-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34844346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-27T07:02:52.336Z","updated_at":"2026-06-27T07:02:54.943Z","avatar_url":"https://github.com/Perseus-Computing-LLC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# perseus-agent-core\n\nShared memory and tool layer for Perseus agents. Extracted from\n[perseus-rapid-agent](https://github.com/tcconnally/perseus-rapid-agent) and\n[perseus-qwen-memory](https://github.com/tcconnally/perseus-qwen-memory), which\npreviously carried copy-pasted copies of this code — the same `MemoryEntry`\ncrash shipped twice because of it. Fixes now land once, here.\n\n## What's in it\n\n- `perseus_agent_core.memory` — `MemoryEntry`, `MemorySearchResult`,\n  `MemoryBackend` (interface), `MemoryBackendError`, plus two implementations:\n  - `ElasticMemoryBackend` — Elasticsearch via `elasticsearch-py`, keyword\n    search always, ELSER semantic search when the deployment supports it.\n  - `EngramMemoryBackend` — shells out to the [engram-rs](https://github.com/tcconnally/engram-rs)\n    CLI; retry-on-lock, timeout handling, helpful install hint when missing.\n- `perseus_agent_core.tools` — `DecisionLogTool`, `KnowledgeGraphTool`,\n  `ProjectContextTool`.\n\nAgent-specific code (`AgentConfig`, agent classes, LLM clients, demos) stays in\nthe consuming repos.\n\n## Install\n\n```bash\npip install \"perseus-agent-core @ git+https://github.com/tcconnally/perseus-agent-core.git\"\n# with the Elasticsearch backend:\npip install \"perseus-agent-core[elastic] @ git+https://github.com/tcconnally/perseus-agent-core.git\"\n```\n\nThere are zero hard dependencies — the elastic client is imported lazily only\nwhen `ElasticMemoryBackend` is used.\n\n## Usage\n\n```python\nfrom perseus_agent_core.memory import EngramMemoryBackend, MemoryEntry\nfrom perseus_agent_core.tools import DecisionLogTool\n\nmemory = EngramMemoryBackend()\nlog = DecisionLogTool(memory)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperseus-computing-llc%2Fperseus-agent-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperseus-computing-llc%2Fperseus-agent-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperseus-computing-llc%2Fperseus-agent-core/lists"}