{"id":48044637,"url":"https://github.com/agent-sh/agent-core","last_synced_at":"2026-04-04T14:16:55.898Z","repository":{"id":339696011,"uuid":"1163027184","full_name":"agent-sh/agent-core","owner":"agent-sh","description":"Shared core libraries for agent-sh plugins — synced to all repos on merge","archived":false,"fork":false,"pushed_at":"2026-03-22T21:34:34.000Z","size":289,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-23T11:57:32.934Z","etag":null,"topics":["agent","ai","ai-agents","claude-code","framework","javascript","library","plugins","sdk","shared-library"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agent-sh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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":"2026-02-21T01:40:46.000Z","updated_at":"2026-03-22T21:34:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/agent-sh/agent-core","commit_stats":null,"previous_names":["agent-sh/agent-core"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agent-sh/agent-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fagent-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fagent-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fagent-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fagent-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agent-sh","download_url":"https://codeload.github.com/agent-sh/agent-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agent-sh%2Fagent-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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","ai-agents","claude-code","framework","javascript","library","plugins","sdk","shared-library"],"created_at":"2026-04-04T14:16:55.783Z","updated_at":"2026-04-04T14:16:55.885Z","avatar_url":"https://github.com/agent-sh.png","language":"JavaScript","readme":"# agent-core\n\nShared core libraries for all agent-sh plugins. Changes here are automatically synced to consuming repos via CI-driven PRs.\n\n## Consumers\n\n| Repo | How it receives lib/ and CLAUDE.md |\n|------|------------------------------------|\n| agentsys | PR → merge → `sync-lib` propagates to 13 bundled plugins |\n| next-task | PR → merge (plugin uses lib/ directly) |\n| ship | PR → merge (plugin uses lib/ directly) |\n| enhance | PR → merge (plugin uses lib/ directly) |\n| deslop | PR → merge (plugin uses lib/ directly) |\n| learn | PR → merge (plugin uses lib/ directly) |\n| consult | PR → merge (plugin uses lib/ directly) |\n| debate | PR → merge (plugin uses lib/ directly) |\n| drift-detect | PR → merge (plugin uses lib/ directly) |\n| repo-map | PR → merge (plugin uses lib/ directly) |\n| sync-docs | PR → merge (plugin uses lib/ directly) |\n| audit-project | PR → merge (plugin uses lib/ directly) |\n| perf | PR → merge (plugin uses lib/ directly) |\n| web-ctl | PR → merge (plugin uses lib/ directly) |\n\n## How sync works\n\nOn merge to `main`, the `sync` workflow opens PRs in all consumer repos with the updated `lib/` directory and a freshly generated `CLAUDE.md` (rendered from `templates/CLAUDE.md.tmpl`). Consumer repos review and merge at their own pace.\n\n## CLAUDE.md generation\n\nEach consumer repo receives a generated `CLAUDE.md` rendered from `templates/CLAUDE.md.tmpl`. The generator reads `package.json` and optionally `components.json` from the target repo.\n\nAvailable template variables:\n- `{{pluginName}}` - package name with `@agentsys/` prefix stripped\n- `{{description}}` - package.json description\n- `{{#agents}}` / `{{#skills}}` / `{{#commands}}` - conditional sections from components.json\n\nTo test generation locally:\n\n```bash\nnode scripts/generate-claudemd.js --target ../some-plugin --template templates/CLAUDE.md.tmpl\n```\n\n## Developing\n\nEdit files in `lib/` for library changes. Edit `templates/CLAUDE.md.tmpl` to change the CLAUDE.md generated for all consumer plugins. On merge, changes propagate automatically. To test locally before merging:\n\n```bash\n# Copy to a consumer repo for testing\ncp -r lib/ ../agentsys/lib/\ncd ../agentsys \u0026\u0026 npx agentsys-dev sync-lib \u0026\u0026 npm test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-sh%2Fagent-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagent-sh%2Fagent-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-sh%2Fagent-core/lists"}