← back to leaderboard

swiftlang/swiftGitHub

https://github.com/swiftlang/swift
Stars:
70.5k
Language:
Swift
Default branch:
main
Last scored:
13h ago
Overall

At a glance

Rank
#340 of 371
#7 of 8 Swift repos
Checks passed
6 of 16
Full list below
Best set up for
Aider
Score 54.6
Needs most work for
OpenHands
Biggest fix: CI configuration (+10.4 pts)

What to fix first

  1. 1
    CI configuration
    Add a CI workflow (e.g. .github/workflows/ci.yml or .gitlab-ci.yml) that runs tests + linter on every PR.
    +10.4 pts
  2. 2
    Reproducible dev env
    Add a Makefile or devcontainer or Dockerfile so the agent can set up the project in one command.
    +10.4 pts
  3. 3
    .openhands/setup.sh
    Add a `.openhands/setup.sh` that installs dependencies and prepares the project so OpenHands can run tests and lints out of the box.
    +10.4 pts

Score for each AI agent

Each agent looks for different things in a repo, based on its own docs. Under each score are the three checks it cares about most.

Aider
54.6
Pi
52.1
Kimi CLI
51.8
Devin
50.9
Claude Code
50.0
GPT-5 Codex
49.3
Cursor
48.0
Gemini CLI
46.6
OpenHands
46.2

Similar repos

Scored for OpenHands. Same language and host as this repo, scoring near it.

All Swift repos →

All checks

No agent instructions file found
.aider.conf.yml· 0% pass
No .aider.conf.yml at repo root
No CI config found
CONTRIBUTING guide· 100% pass
Guide present
CONTRIBUTING.md
No .cursor/rules/*.mdc or .cursorrules
Manifest present
CMakeLists.txt
No Makefile / devcontainer / Docker / equivalent found
GEMINI.md· 0% pass
No GEMINI.md at repo root
License file· 100% pass
License present
LICENSE.txt
Config detected
.flake8
No .openhands/setup.sh
No pre-commit / husky / lefthook found
README· 100% pass
README detailed (5773 chars)
README.md
Manageable size· 20% pass
10001+ files — very large
Test suite· 100% pass
Found /test
test
No type config found

Add a badge to your README

Paste this at the top of the README. It shows the score, and links back to this page.

Agent friendly score for github/swiftlang/swift
[![Agent Friendly](https://agentfriendlycode.com/api/badge/github/swiftlang/swift.svg)](https://agentfriendlycode.com/repo/github/swiftlang/swift)

Check the score on every pull request

Add this file to your repo. On each pull request, it posts one comment showing how the score changed and why. It runs in your own CI, with no outside server involved.

# .github/workflows/agent-friendly.yml
name: Agent-friendly score diff

on:
  pull_request:
    branches: [main]

permissions:
  contents: read
  pull-requests: write

jobs:
  score-diff:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
        with:
          fetch-depth: 0
      - uses: hsnice16/agent-friendly-action@v0
        with:
          agents-badge-token: ${{ secrets.AGENTS_BADGE_TOKEN }}

Add AGENTS_BADGE_TOKENto the repo's secrets to turn the comment on. Without it, the action does nothing. Where do I add it?