IImprint

Repository intelligence / 0.0.1

Every commit gets its own
repository-aware LLM.

Turn a Git commit into repository context an LLM can use—and prove exactly which source it learned.

import { Imprint, WorkersAiProvider } from 'imprint';

const imprint = new Imprint({
  directory: './repo',
  provider: new WorkersAiProvider({ accountId, apiToken }),
});

const repo = await imprint.open('abc123');
await repo.ask('How do sessions work?');

IMP–001
COMMIT → CONTEXT → INFERENCE

01 / What ships

One repository.
Two commits. Two answers.

The included check changes an API, imprints both commits, promotes the new release, then rolls back. Each release remains bound to its own source.

imprint · proof
$ bun run prove

old   a9c49d7  ✓ knows createSession
next  591f70d  ✓ knows openSession
diff             session.ts changed
rollback         ✓ exact old release active

02 / Use it

Start with one commit.
Add the lifecycle when needed.

Each example adds one operation. The release remains tied to the commit selected in the first line.

01Ask one commit

Read committed source and answer with Workers AI.

const release = await imprint.imprint('HEAD');
const repo = await imprint.open(release.commit);
await repo.ask('Where is authentication implemented?');
02Compare commits

See which committed files changed between releases.

await imprint.imprint('HEAD~1');
await imprint.imprint('HEAD');

const diff = await imprint.diff('HEAD~1', 'HEAD');
03Promote and roll back

Move the local active pointer between verified releases.

await imprint.promote('HEAD');
await imprint.rollback('HEAD~1');

const active = await imprint.open();
Install from GitHubbun add github:acoyfellow/imprint

03 / System

Ask against
an exact commit.

The current release stores selected source from one commit and sends it to Workers AI. The release records which files and digests produced the answer.

01Commit

Resolve immutable source and parents.

02Imprint

Select committed source and build bounded context.

03Record

Record source and context digests.

04Ask

Run inference against that exact release.