Project / tool

ctxcuts

AI tooling CLI Context Local-first

A tiny CLI for defining reusable context shortcuts and turning compact instructions into focused task contracts for coding agents, assistants and other AI-driven workflows.

01 / Overview

An .editorconfig for agent context

ctxcuts avoids repeating long prompts and keeping oversized context blocks permanently active. Instead, small versionable task contracts live with the project and only the context required for the current task is loaded when needed.

02 / Model

Context shortcuts

01
:r :f :s :a

Shortcut

A compact instruction selects the kind of work an agent should perform: review, fix, investigate, audit, security analysis, tests, documentation and other defined modes.

02
Markdown Versionable

Context contract

Each shortcut references a context file that explicitly defines the objective, constraints and expected working mode for that task.

03
Target Focus Output

Variables

Contracts can receive information from the invocation through small template variables, allowing the same definition to be reused across different targets and areas of work.

04
Prompt Portable

Expansion

ctxcuts combines the shortcut, target and context contract into a complete prompt that can be consumed by different tools without depending on a particular provider.

03 / Workflow

From shortcut to agent

ctxcuts deliberately stays outside the agent: it prepares context and lets each tool decide how to consume it.

Define

Shortcuts and their context files live under .ctxcuts/ inside the project and can be maintained alongside the code.

Invoke

A compact instruction such as :r src/app.py selects the contract and provides the specific target for the task.

Expand

The CLI renders variables and constructs the complete prompt only when that particular context is required.

Pipe

Expanded output can be sent directly to other tools and agents through standard Unix pipelines.

Validate

doctor validates the setup and reports missing context files or suspicious context issues before they are used.

Measure

stats provides a lightweight estimate of how much reusable context is loaded from a compact shortcut invocation.

04 / Tooling

Local-first and vendor-neutral

Local-first Versionable Vendor-neutral

Portable context contracts

ctxcuts does not implement memory, embeddings, vector search or autonomous agent orchestration. Its responsibility is keeping context explicit, focused, reusable and easy to share or remove without coupling a project to a particular agent.

05 / Links

Links