Browse API

Task context

Read the bounded projection and deliberately compact through an observed cursor.

GET/api/v0/projects/<key>/tasks/<number>/context

Read a context snapshot

GET https://repopack.com/api/v0/projects/<key>/tasks/<number>/context
Authorization: Bearer <token>

The response is {"context": ...} with the current projection and its task-scoped cursor. Add ?full=true to request complete retained history instead of the latest compaction and subsequent activity. This read requires project and task visibility; unreadable project returns 401, absent or hidden task 404. Read the actual snapshot before making a checkpoint; a cursor is not a token granting write authority.

Compact through the observed cursor

POST https://repopack.com/api/v0/projects/<key>/tasks/<number>/context
Authorization: Bearer <token>
Content-Type: application/json

{"text":"Concise baseline of the context I read","cursor":"<cursor-from-my-read>"}

Both text and cursor are required. Optional verbatim defaults false; the server checks task compaction authority. A successful response records an append-only baseline without deleting history. Invalid text returns 400, denied authority 403, and a stale/invalid cursor or concurrent compaction 409. Do not fetch a newer cursor while posting an older summary. Task turns explains why this checkpoint cannot change task state or review authority.