{"id":51052453,"url":"https://github.com/filipores/sheepdog","last_synced_at":"2026-06-22T18:30:49.715Z","repository":{"id":365739605,"uuid":"1272425196","full_name":"filipores/sheepdog","owner":"filipores","description":"Boundary-guard mode for AI agents. Does this responsibility belong in this field?","archived":false,"fork":false,"pushed_at":"2026-06-18T16:06:21.000Z","size":855,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-18T18:10:28.277Z","etag":null,"topics":["agent-skills","agentic-coding","architecture","claude-code","codex"],"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/filipores.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-17T15:42:50.000Z","updated_at":"2026-06-18T16:06:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/filipores/sheepdog","commit_stats":null,"previous_names":["filipores/sheepdog"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/filipores/sheepdog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipores%2Fsheepdog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipores%2Fsheepdog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipores%2Fsheepdog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipores%2Fsheepdog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filipores","download_url":"https://codeload.github.com/filipores/sheepdog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filipores%2Fsheepdog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34661702,"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-22T02:00:06.391Z","response_time":106,"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":["agent-skills","agentic-coding","architecture","claude-code","codex"],"created_at":"2026-06-22T18:30:45.375Z","updated_at":"2026-06-22T18:30:49.700Z","avatar_url":"https://github.com/filipores.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/social-preview.png\" width=\"640\" alt=\"Sheepdog\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eSheepdog\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eHe catches every stray sheep.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/version-0.1.0-111111?style=flat-square\" alt=\"Version 0.1.0\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-111111?style=flat-square\" alt=\"MIT license\"\u003e\n\u003c/p\u003e\n\n---\n\nYou know him. Low to the ground at the edge of the field. Silent. Watching.\nOne responsibility drifts into the wrong module; he moves once, and it is back\nwhere it belongs.\n\nSheepdog puts that stare inside your AI agent.\n\nInspired by [Ponytail](https://github.com/DietrichGebert/ponytail).\n\nPonytail asks: **Does this need to exist?**  \nSheepdog asks: **Does this belong here?**\n\n## What it stops\n\nAI agents are good at local correctness and bad at system boundaries. Sheepdog\nblocks the small architectural shortcuts that turn into god orchestrators:\n\n- business rules in entrypoints\n- policy decisions in orchestrators\n- side effects without adapters or idempotency\n- persistence from the wrong layer\n- duplicate validators, mappers, clients, helpers\n- wrong-way imports and cycles\n- new responsibility added to existing god files\n\n## Boundary laws\n\n1. **Entrypoints route only.**\n2. **Orchestrators coordinate only.**\n3. **Business decisions live in decision/domain/policy modules.**\n4. **External side effects go behind adapter/service + idempotency guard.**\n5. **Persistence goes through store/repository/data layer.**\n6. **Reuse existing patterns before creating parallel implementations.**\n7. **Respect dependency direction; no shortcuts/cycles.**\n8. **Existing god files are not precedent for new responsibility.**\n\n## Block format\n\n```md\nBLOCKED by Law 2 — Orchestrator Law\n\nStray sheep: new Slack side effect\nWrong field: workflow.py coordinates the flow\nRight field: notification service + idempotency guard\n\nSmallest safe move:\n1. Move message construction/send logic to the notification service\n2. Keep the orchestrator as one method call\n3. Add one focused reservation/dedupe check\n```\n\nBlock means **not here**, not **never**.\n\n## Commands\n\n| Command | What it does |\n|---|---|\n| `/sheepdog [on | off | status]` | Set/report Sheepdog mode. |\n| `/sheepdog-review` | Review the current diff or target for boundary-law blockers. |\n| `/sheepdog-audit` | Repo-wide boundary drift audit. |\n| `/sheepdog-loop` | Review → fix → review until clean or stopped. |\n| `/sheepdog-debt` | List accepted boundary-debt markers. |\n| `/sheepdog-help` | Quick reference. |\n\n## Accepted boundary debt\n\nSometimes a hotfix must ship. Mark it so the agent never treats it as a new\npattern:\n\n```py\n# sheepdog: accepted boundary debt, production hotfix only; home: notification service; trigger: before next Slack-related feature\n```\n\nNo reason, no home, no trigger = not accepted debt.\n\n## Install\n\n### Claude Code\n\n```text\n/plugin marketplace add filipores/sheepdog\n/plugin install sheepdog@sheepdog\n```\n\n### Codex\n\n```bash\ncodex plugin marketplace add filipores/sheepdog\ncodex\n```\n\nOpen `/plugins`, select the Sheepdog marketplace, install Sheepdog, review and\ntrust hooks, then start a new thread.\n\n### Pi agent harness\n\n```bash\npi install git:github.com/filipores/sheepdog\n```\n\n## Development\n\n```bash\nnpm test\n```\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipores%2Fsheepdog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilipores%2Fsheepdog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilipores%2Fsheepdog/lists"}