{"id":50395074,"url":"https://github.com/hsnice16/agent-friendly-action","last_synced_at":"2026-05-30T20:30:37.820Z","repository":{"id":354806752,"uuid":"1224920733","full_name":"hsnice16/agent-friendly-action","owner":"hsnice16","description":"GitHub Action that posts a per-PR delta of the Agent Friendly Code score.","archived":false,"fork":false,"pushed_at":"2026-05-08T06:34:00.000Z","size":531,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-08T08:32:57.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hsnice16.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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},"funding":{"github":"hsnice16"}},"created_at":"2026-04-29T19:07:13.000Z","updated_at":"2026-05-08T06:33:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hsnice16/agent-friendly-action","commit_stats":null,"previous_names":["hsnice16/agent-friendly-action"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hsnice16/agent-friendly-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Fagent-friendly-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Fagent-friendly-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Fagent-friendly-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Fagent-friendly-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsnice16","download_url":"https://codeload.github.com/hsnice16/agent-friendly-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsnice16%2Fagent-friendly-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33709269,"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-05-30T02:00:06.278Z","response_time":92,"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-05-30T20:30:36.295Z","updated_at":"2026-05-30T20:30:37.805Z","avatar_url":"https://github.com/hsnice16.png","language":"TypeScript","funding_links":["https://github.com/sponsors/hsnice16"],"categories":[],"sub_categories":[],"readme":"# agent-friendly-action\n\nGitHub Action that posts a per-PR delta of the [Agent Friendly Code](https://github.com/hsnice16/agent-friendly-code) score — _\"this PR drops your Claude Code score by 4.1 points because it removed CI config.\"_\n\n\u003e **Version**: `v0.1.3` — per-release plans live in [`tasks/`](./tasks/) (one folder per version). Pin `@v0` to follow the latest 0.x release; pin a precise tag (`@v0.1.3`) if you want to opt out of automatic minor/patch updates. Tracking task in the parent project: [`tasks/0.5.0/02-score-diff-on-pr.md`](https://github.com/hsnice16/agent-friendly-code/blob/main/tasks/0.5.0/02-score-diff-on-pr.md).\n\n## What it does\n\nOn every pull request, the action:\n\n1. Reads the PR head and base refs from the GitHub event payload.\n2. Fetches the base ref locally (no network clone — `actions/checkout` already gave us the head).\n3. Scores both trees with the bundled scorer.\n4. Posts (or edits) a single PR comment with the delta + per-signal breakdown.\n\nIt runs entirely **inside your CI** — no third-party server is required. The bundled scorer is the only thing that decides the delta; the [Agent Friendly Code](https://github.com/hsnice16/agent-friendly-code) web app is not contacted at runtime.\n\n## Install\n\n```yaml\n# .github/workflows/agent-friendly.yml\nname: Agent-friendly score diff\n\non:\n  pull_request:\n    branches: [main]\n\npermissions:\n  contents: read\n  pull-requests: write\n\njobs:\n  score-diff:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          fetch-depth: 0\n      - uses: hsnice16/agent-friendly-action@v0\n        with:\n          agents-badge-token: ${{ secrets.AGENTS_BADGE_TOKEN }}\n```\n\n`AGENTS_BADGE_TOKEN` is the **opt-in marker**, not an API credential. Set it in the repo's secrets to enable the comment; leave it unset and the action exits silently.\n\n## Inputs\n\n| Input                | Required | Default              | Description                                          |\n| -------------------- | -------- | -------------------- | ---------------------------------------------------- |\n| `agents-badge-token` | yes      | —                    | Opt-in marker. Action no-ops when empty.             |\n| `github-token`       | no       | `${{ github.token }}`| Used to post / edit the PR comment.                  |\n| `base-ref`           | no       | event base           | Override the base ref (advanced — usually unneeded). |\n\n## Why opt-in?\n\nTwo reasons:\n\n1. **Templates / starter repos** can ship the workflow file without it firing for forks or unenrolled users — only repos that explicitly set the secret get the comment.\n2. **Future-proofing** — when the upstream web app exposes a runtime weights endpoint (deferred to its `1.0.0/03` benchmark harness), the same env var can be promoted to a real key with no workflow change.\n\n## Self-contained\n\nThe scorer is bundled into `dist/` via `@vercel/ncc`. The action does not call the [Agent Friendly Code](https://github.com/hsnice16/agent-friendly-code) web app at runtime — weights and signal logic ship inside the bundle. If the web app goes offline tomorrow, this action keeps producing PR comments unchanged.\n\n## Want this in your editor too?\n\nThe [`agent-friendly-skill`](https://github.com/hsnice16/agent-friendly-skill) sibling vendors the same scorer for your editor. Profiles the same 8 agents this action does (Claude Code, Cursor, Devin, GPT-5 Codex, Gemini CLI, Aider, OpenHands, Pi); installs into any [`vercel-labs/skills`](https://github.com/vercel-labs/skills)-compatible agent. Recommendation is score-driven — the skill picks the highest-scoring profile as the best fit and tells you which model class to switch to; you do the actual switch.\n\n```bash\nnpx skills add hsnice16/agent-friendly-skill\n```\n\n## Sponsor\n\nIf this action is useful to you, consider sponsoring its development: [github.com/sponsors/hsnice16](https://github.com/sponsors/hsnice16).\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsnice16%2Fagent-friendly-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsnice16%2Fagent-friendly-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsnice16%2Fagent-friendly-action/lists"}