Skip to content

CLI Reference

The writetighter binary provides five subcommands: lint (deterministic), revise (contextual), prompt (instructional), config (setup), and profile (management).

Commands

  • lint checks sentence length and paragraph density. No model required.
  • revise uses your configured model to provide rewrites and clarifications.
  • prompt prints revision instructions for delegation. No model required.
  • config interactive setup for model endpoints.
  • profile manages embedded or custom rule bundles.

--text, --stdin, and file/dir paths are mutually exclusive. Prefer --stdin for shell safety.

writetighter lint

Checks deterministic profile rules.

writetighter lint (PATH... | --stdin | --text STRING) [flags]

Flags

FlagDefaultDescription
--kinddescriptionSets sentence-length limit (see table below)
--formathumanhuman, json, or agent
--fail-onnonenone, warning, or error
--profileembedded defaultPin a specific ID@VERSION

Kinds

--kindUse forSentence limit
prPR/commit bodies20 words
procedureInstructions20 words
descriptionProse/READMEs25 words
code-commentInline comments25 words
referenceAPI/Config docs25 words
decisionADRs/Design docs25 words
incidentIncident reports25 words
agent-instructionSkills/Prompts25 words
status-updateStatus/Diagnostics25 words

writetighter revise

Provides contextual rewrites and clarifications.

writetighter revise (PATH... | --stdin | --text STRING) --kind KIND

Output is JSON. Each item in revisions[] is either a rewrite or a clarification.

writetighter prompt

Prints revision instructions for subagent delegation.

sh
writetighter prompt --kind code-comment

writetighter config

Interactive setup for OpenAI-compatible endpoints. Writes to ~/.config/writetighter/config.toml.

writetighter profile

sh
writetighter profile list
writetighter profile verify software-docs-en@0.4.0
writetighter profile install ./path/to/bundle

Exit codes

CodeMeaning
0Success
1lint findings reached --fail-on
2Usage, config, or input error
3revise model call failed