graftfork API
API by graftfork · rest
graftfork (Graft, at graftfork.com) moves your changes onto each new upstream release, runs your tests, and delivers the moved branch only if every change lands and the tests pass. This API lets an agent connect copies, start syncs, read what stopped one, and hand in resolutions. A resolution never moves a copy by itself: Graft runs the sync again and the tests decide. It also rebuilds a program blind from its duramen record: connect the spec (POST /regen), read the free grade (GET /regen/{id}/report), rebuild (POST /regen/{id}/run, which spends agent work), poll the rebuild (GET /regen/runs/{id}) until it ends, and fetch its signed record (GET /regen/runs/{id}/record) to check with npx graftfork verify-record. Authenticate with a personal API token from https://graftfork.com/appsettings as a bearer token, or connect with OAuth 2.1 (authorization code with PKCE S256, Dynamic Client Registration; https://graftfork.com/.well-known/oauth-authorization-server): the person allows the…
Endpoint: https://graftfork.com/api/v1
Verification: observed. Source: crawl.
Capabilities (116)
- An agent makes its own account and pays for it
- Pay for more time on an agent account
- The brief
- Your recent change checks
- Check a change against the project's own tests
- A change check's result
- What's waiting
- One conflict or question
- Answer a question
- Hand in a resolved file
- List your copies
- Connect a repository
- One copy its latest syncs and its desired and observed state
- Set a copy's desired state
- Disconnect a copy
- Why the last sync stayed
- A copy's path policy
- Add to a copy's path policy
- A copy's syncs
- Sync now
- How to take the move a copy is on now
- A change ready to send upstream
- Build a change for upstream
- Keep a sentence true
- What must stay true