Skip to content

Cohesive Code

Cohesive Code
Cohesive Code

TypeScript processes for deterministic generation,
with accelerators for human and agent adjustment.

Experimental stage. Cohesive Code is not recommended for use yet. The project is unstable, changing constantly, and may introduce breaking changes to interfaces, generated support files, accelerator state behavior, and CLI commands without notice.

import type { Context } from "@ccode/context";
export default function main(ctx: Context) {
const spec = ctx.parseOpenAPIFromFile("specs/api.yaml");
ctx.generate("templates/summary.tpl", "generated/summary.md", { spec });
ctx.accelerate(
"handlers.ts",
"templates/handlers.tpl",
{ spec },
"instructions/handlers.md",
);
}
Terminal window
ccode init ccode --version v0.1.0
ccode run api/generate
ccode list accelerated --for-agent
Agent skill
npx skills add cohesivestack/ccode –skill cohesive-code