Skip to content

glib-code integration

How glib-code consumes GitTrix as its storage-routing layer.

glib-code is the canonical downstream consumer for GitTrix v1.

const session = await gittrix.startSession({ task: 'implement feature x' })
const agentSession = session.forAgent() // narrowed API, no promote
// agent uses agentSession for read/write/commit
// user reviews diff in glib UI
await session.promote({ selector: { all: true }, strategy: 'auto', message: 'Promote accepted work' })