Skip to content

armgit / cogit

Public Imported from GitHub
0

Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.

435 B
Raw Blame
import { exitOnClosedPipe } from "./io.js";
import { createProgram } from "./program.js";
import { migrateGlobal, takeMigrationWarnings } from "./store/migrate.js";

// Silent, idempotent: a `~/.config/codelineage` from before the rename becomes `cogit`.
await migrateGlobal();
for (const line of takeMigrationWarnings()) process.stderr.write(`warning: ${line}\n`);

exitOnClosedPipe();
await createProgram().parseAsync(process.argv);