AI Engineer Guide

Google Jules via API

Google Jules now support triggering the triggering the background/cloud agent via API.

With that, we can automate lot of things. And unlike Cursor or other apps, you can use Google Jules for free. 2025-11-05-at-22.30.132x.png

It is powered by Gemini 2.5 Pro

How to get started?

Head over to setting page and create a API key 2025-11-05-at-22.31.572x.png

Make sure that you’ve connected to your GitHub and given access to the needed repos.

List connected repos/sources

You can find the connected repos using this API.

curl 'https://jules.googleapis.com/v1alpha/sources' \
    -H 'X-Goog-Api-Key: $YOUR_API_KEY'

And that will give us connected sources

{
  "sources": [
    {
      "name": "sources/github/AshikNesin/404less",
      "githubRepo": {
        "owner": "AshikNesin",
        "repo": "404less",
        "isPrivate": true,
        "defaultBranch": {
          "displayName": "develop"
        },
        "branches": [
          {
            "displayName": "main"
          },
          {
            "displayName": "develop"
          }
        ]
      },
      "id": "github/AshikNesin/404less"
    }
  ]
}

Note: This API has pagination so make sure to handle it.

Triggering a task

With the help of new session, you can trigger a task/job for the background agent to work on 🤖

curl 'https://jules.googleapis.com/v1alpha/sessions' \
    -X POST \
    -H "Content-Type: application/json" \
    -H 'X-Goog-Api-Key: $YOUR_API_KEY' \
    -d '{
      "prompt": "Rename frontend directory to website",
      "sourceContext": {
        "source": "sources/github/AshikNesin/404less",
        "githubRepoContext": {
          "startingBranch": "develp"
        }
      },
      "automationMode": "AUTO_CREATE_PR",
      "title": "404less website"
    }'

You’ll be getting a response like this

{
  "name": "sessions/11459899729363870000",
  "title": "404less website",
  "sourceContext": {
    "source": "sources/github/AshikNesin/404less",
    "githubRepoContext": {
      "startingBranch": "develop"
    }
  },
  "prompt": "Rename frontend directory to website",
  "url": "https://jules.google.com/session/11459899729363870000",
  "id": "11459899729363870000",
  "automationMode": "AUTO_CREATE_PR"
}

You can now view the progress in the dashboard 2025-11-05-at-22.48.202x.png

Reference

Happy async coding!

#Google-Jules #Async-Agent

Stay Updated

Get the latest AI engineering insights delivered to your inbox.

No spam. Unsubscribe at any time.