01
Repo primitives
Create repositories, list them, and resolve them under the authenticated organization.
Driftstone gives your product a Git system for agent work: repositories, branches, file contents, commits, merges, and sync operations behind a clean API.
agent.json
initial files
environment.json
committed
01
Create repositories, list them, and resolve them under the authenticated organization.
02
List, inspect, create, and delete branches around agent-generated work.
03
Create signed upload URLs for main branch files and complete uploads once storage succeeds.
Driftstone turns generated files and workspace updates into named Git operations your product can reason about, review, and publish.
Start an org-scoped repository with a stable slug and main branch metadata.
Create branches from the repository main head or create branch records for later uploads.
Request signed URLs for main branch files, upload bytes, and mark uploads complete.
Delete repositories or branches and let background jobs remove the stored files.
Driftstone is built around explicit Git movements: create, branch, write, merge, and sync. That gives teams a stable control plane for work that agents produce across many users.
An agent or product flow starts with /v1/repos and gets a real repository record instead of a loose file bundle.
A branch can start from the repository main head or wait for its first uploaded directory.
Upload URLs target main branch files under an identifier and expire after 15 minutes.
Completing an upload sets the repository main head identifier for future branches.
The endpoints stay narrow on purpose. Callers get the Git operations they need without taking responsibility for repo storage, organization resolution, or commit plumbing.
curl -X POST https://api.driftstone.ai/v1/repos \
-H "Authorization: Bearer dk-..." \
-d '{"name":"agent-work"}'
driftstone: repo created
main: ready for upload
branches: ready for reviewPOST /v1/repos/agent-work/uploads
{
"identifier": "ver-1234abcd",
"files": [
{
"name": "README.md",
"hash": "64-character-sha256-or-client-hash"
}
]
}/v1/reposCreate a repository./v1/reposList repositories for an organization./v1/repos/{repo}Get repository metadata./v1/repos/{repo}Delete a repository./v1/repos/{repo}/uploadsCreate signed upload URLs./v1/repos/{repo}/uploads/{upload}/completeComplete an upload./v1/repos/{repo}/branchesList branches for a repository./v1/repos/{repo}/branchesCreate a branch./v1/repos/{repo}/branches/{branch}Delete a branch.Driftstone is the Git system inside this folder: a repository API for creating repos, uploading main files, branching work, and cleaning up repository state.

Driftstone API
Repos, branches, contents, merges, and sync operations give the rest of Harnesslayer a stable system of record for agent workspace changes.