Cohesive Code is an AI-enabled code generation CLI built around TypeScript processes, Gonja templates, OpenAPI parsing, and accelerators for human or agent adjustment.
It is designed for deterministic generation where generator authors control the process code and templates, while downstream developers or agents can safely inspect and adjust generated proposals.
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",
);
}Run the process and inspect accelerator work:
ccode run api/generate
ccode list accelerated --for-agent
ccode get accelerated generate-api:handlers.ts --instructions --for-agentStart with:
Install the wrapper to ~/.local/bin/ccode:
curl -fsSL https://raw.githubusercontent.com/cohesivestack/ccode/master/installer/install.sh | bashFrom this repository clone:
bash installer/install.shThe wrapper resolves the binary version for each workspace and caches release binaries under ~/.cache/ccode/releases.
This repository includes Cohesive Code Agent Skills installable with npx skills:
npx skills add cohesivestack/ccodeInstall only the broad workspace skill:
npx skills add cohesivestack/ccode --skill cohesive-codeFocused workflow skills:
npx skills add cohesivestack/ccode --skill author-ccode-generation
npx skills add cohesivestack/ccode --skill run-ccode-generation
npx skills add cohesivestack/ccode --skill merge-ccode-accelerator-state- Start Here
- Using Cohesive Code
- Reference
- Cookbook
- About
Releases are automated with GoReleaser through GitHub Actions.
- Trigger: push a Git tag matching
v* - Accepted format:
vMAJOR.MINOR.PATCH, for examplev1.2.3, and prereleases such asv1.3.0-rc1 - Published assets:
linux/amd64linux/arm64darwin/amd64darwin/arm64windows/amd64
Each release includes platform archives and checksums.txt.
Create a release:
git tag v1.2.3
git push origin v1.2.3We welcome contributions to the project. To make review smooth, please follow these guidelines:
- Discuss larger changes first: Open an issue or discussion before starting broad design or behavior changes.
- Make commits small and cohesive: Keep each commit focused on one task or change.
- Format Go code: Run
gofmton changed Go files. - Cover behavior with tests: Add or update tests for runtime, CLI, wrapper, or accelerator-state changes.
- Update docs and skills when behavior changes: Keep
docs/src/content/docs, README, and installable skills aligned with user-facing behavior. - Use respectful language: Keep collaboration direct, specific, and constructive.
Copyright © 2026 Carlos Forero
Cohesive Code is developed and maintained by Cohesive Stack LLC and released under the MIT License.