{"id":51951736,"url":"https://github.com/dubsopenhub/agentic-loops","last_synced_at":"2026-07-29T06:01:29.530Z","repository":{"id":362846923,"uuid":"1261032640","full_name":"DUBSOpenHub/agentic-loops","owner":"DUBSOpenHub","description":"Standalone agentic loop templates, examples, and safety utilities.","archived":false,"fork":false,"pushed_at":"2026-06-06T06:41:29.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-07T22:21:29.168Z","etag":null,"topics":["agentic-loops","agents","automation","copilot","templates"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/DUBSOpenHub.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":"SECURITY.md","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-06T06:39:50.000Z","updated_at":"2026-06-06T06:41:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/DUBSOpenHub/agentic-loops","commit_stats":null,"previous_names":["dubsopenhub/agentic-loops"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DUBSOpenHub/agentic-loops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DUBSOpenHub%2Fagentic-loops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DUBSOpenHub%2Fagentic-loops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DUBSOpenHub%2Fagentic-loops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DUBSOpenHub%2Fagentic-loops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DUBSOpenHub","download_url":"https://codeload.github.com/DUBSOpenHub/agentic-loops/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DUBSOpenHub%2Fagentic-loops/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36020486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-29T02:00:04.910Z","response_time":95,"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":["agentic-loops","agents","automation","copilot","templates"],"created_at":"2026-07-29T06:01:27.711Z","updated_at":"2026-07-29T06:01:29.516Z","avatar_url":"https://github.com/DUBSOpenHub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Agentic Loops\n\n[![CI](https://github.com/DUBSOpenHub/agentic-loops/actions/workflows/ci.yml/badge.svg)](https://github.com/DUBSOpenHub/agentic-loops/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n![Node.js \u003e=20](https://img.shields.io/badge/node-%3E%3D20-232F3E.svg)\n\nA home for standalone agentic loops: tiny programs that can observe, decide, act, judge, save state, and stop safely.\n\nThe goal is to make every loop reusable and understandable:\n\n```text\nGoal -\u003e Observe -\u003e Decide -\u003e Act -\u003e Judge -\u003e Save -\u003e Repeat or Stop\n```\n\n## Quick start\n\n```bash\nnpm run loop:hello\nnpm run loop:repo-health\n```\n\nCreate a new loop from the template:\n\n```bash\nnpm run new-loop my-daily-check\nnpm run loop my-daily-check\n```\n\n## Repo layout\n\n```text\nloops/\n  _template/           reusable starter loop\n  hello-loop/          tiny learning example\n  repo-health-check/   read-only repo inspection loop\n\nshared/\n  loop.js              generic loop runner\n  logger.js            JSONL + console logger\n  state-store.js       local JSON state helpers\n  approvals.js         approval prompt helpers\n\nscripts/\n  run-loop.js          run any loop by folder name\n  new-loop.js          create a loop from the template\n```\n\n## Safety model\n\nEach loop should answer five questions:\n\n| Question | Example |\n|---|---|\n| What is the goal? | \"Check repo health and summarize risk.\" |\n| What can it access? | \"Current repo files, read-only.\" |\n| What actions can it take? | \"Read package.json, inspect git status, count TODOs.\" |\n| How does it know it is done? | \"All checks completed and summary generated.\" |\n| When must it stop? | \"After 5 attempts or timeout.\" |\n\nUse `requiresApproval: true` on any action that writes files, sends messages, calls external systems, or changes production-like resources.\n\n## Commands\n\n| Command | What it does |\n|---|---|\n| `npm run loop:hello` | Runs the simplest learning loop |\n| `npm run loop:repo-health` | Runs a read-only health check on this repo |\n| `npm run loop \u003cname\u003e` | Runs `loops/\u003cname\u003e/loop.js` |\n| `npm run new-loop \u003cname\u003e` | Creates a new loop folder from `loops/_template` |\n| `npm test` | Runs unit tests for the loop runner |\n| `npm run verify` | Checks syntax, runs tests, and runs examples |\n\n## Scheduling\n\nThe loops are standalone. Run them manually, from cron, from a macOS LaunchAgent, from GitHub Actions, or from another daemon like Hoot.\n\nExample cron entry for an hourly repo health check:\n\n```cron\n0 * * * * cd /Users/greggcochran/agentic-loops \u0026\u0026 npm run loop:repo-health\n```\n\n---\n\n🐙 Created with 💜 by [@DUBSOpenHub] with the GitHub Copilot CLI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubsopenhub%2Fagentic-loops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubsopenhub%2Fagentic-loops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubsopenhub%2Fagentic-loops/lists"}