Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.
JavaScript ai-codingclaudeclaude-codeclaude-code-pluginclicoding-agentsdeveloper-toolsgitllmtypescript
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);