New
Apps 6,416Makers 6,395This week 12
Promote your app−30%
6views in
the last 30 days

Sinscribe

Git-centric CLI assistant for PR descriptions and commit messages

Built with Claude Code

by anderssonq · Unclaimed · from ARArgentina · added Oct 29, 2026
no ratings0 comments
         oo                                     oo dP
                                                   88
.d8888b. dP 88d888b. .d8888b. .d8888b. 88d888b. dP 88d888b. .d8888b.
Y8ooooo. 88 88'  `88 Y8ooooo. 88'  `"" 88'  `88 88 88'  `88 88ooood8
      88 88 88    88       88 88.  ... 88       88 88.  .88 88.  ...
`88888P' dP dP    dP `88888P' `88888P' dP       dP 88Y8888' `88888P'

Your git workflow, written for you — from the terminal.

npm Built with TypeScript

sinscribe demo: AI-drafted session context, main menu, PR templates, PR description, commit message, branch names, spec plan and live theme picker

Sinscribe is a git-centric developer-workflow assistant CLI. It reads your actual git state — diffs, branch, ticket, session context — and writes the prose around it: PR/MR descriptions, commit messages, branch names, project-context briefs, documentation with mermaid diagrams, and AI agent context files (CLAUDE.md / AGENTS.md). It runs in your terminal as a one-shot command or an interactive chat agent.

Note

Stable since v1.0.0. Sinscribe is in daily use and its CLI surface — commands, flags, env vars, and config layout — is now covered by semver. Install it globally with npm install -g sinscribe, or from source for development.

Features

  • PR/MR descriptions from your local changes vs the target branch, measured from the merge base up — so it works before you commit.
  • Conventional Commit + Gitmoji messages from your staged changes.
  • Branch names and task prompts for your AI coding agent, generated from a short description or ticket.
  • Project understanding — a structured context brief, full documentation with mermaid diagrams, and CLAUDE.md / AGENTS.md scaffolding, produced by an agent that explores the repo.
  • Interactive chat over the current repository.
  • Per-branch sessions that capture business context (feature, ticket, requirements, target branch) and feed it to every generation — typed by hand, or drafted by the AI from your direction and the repo's code and docs, then reviewed and approved by you.
  • Customizable templates — six built-in house styles plus your own, with typed placeholders filled deterministically from git or by the model.
  • Deterministic --dry-run on every command: no model call, no credentials read — useful for previewing detection and in CI.

Prerequisites

  • Node.js >= 20
  • git
  • An API key for a supported provider (OpenCode Go by default — see Configuration). The kiro-cli and claude-cli providers need no key.

Install

npm install -g sinscribe
sinscribe --help

Or from source, for development:

pnpm install
pnpm build
node dist/cli.js --help       # or: pnpm sinscribe --help
# optional: pnpm link --global   → `sinscribe` on your PATH

Quick start

The first command needs no API key, which makes it a good way to check that Sinscribe reads your repository correctly before you configure anything:

cd your-repo
sinscribe pr --dry-run          # detected branch, base, ticket, diff + scaffold

Then set a key and generate for real:

export OPENCODE_API_KEY=...     # or run `sinscribe` and let it ask
sinscribe pr                    # draft a PR description from your local changes
sinscribe commit                # Conventional Commit message from staged changes
sinscribe                       # interactive menu + chat over the current repo

The first interactive run asks for your provider API key and stores it in ~/.sinscribe/.env.

Commands

Command What it does
sinscribe Interactive chat agent + menu over the current repo
sinscribe pr PR/MR description from local changes vs the target branch
sinscribe commit Conventional Commit + Gitmoji message from staged changes
sinscribe branch Branch-name suggestions from a description/ticket
sinscribe prompt Copy-ready feature/bugfix task prompt for your AI coding agent
sinscribe plan Spec plan (SDD): requirements → design → tasks → handoff, plus an agent loop
sinscribe recover Take over a branch an automated pipeline could not finish, then fix or plan it
sinscribe context Structured project-context brief (markdown or JSON)
sinscribe docs Project documentation with mermaid diagrams
sinscribe agents Generate/refresh CLAUDE.md + AGENTS.md from the repo
sinscribe agent-setup Analyze the project and write specialized agent definitions to .claude/agents
sinscribe template Manage the template library (list / show / add / edit / path)

Command options

Command Option Effect
pr --template <name> Template to use (default: andersoftware)
--base <ref> Target branch to diff against (default: session, else detected)
--staged Diff only staged changes (default: all local changes)
--ticket <id> Ticket ID (default: parsed from the branch name)
--out <file> Write the description to a file
prompt --type <type> feature or bugfix (default: inferred from the description)
--out <file> Write the prompt to a file
--handoff Also write .sinscribe/handoff.md without asking
plan --stage <stage> requirements|design|tasks|handoff (default: the next stage needing work)
--feedback <text> Revise the stage's current version with this feedback
--no-explore Never let the model read the repository (single-shot)
--approve Approve the stage's saved draft — offline, no model call
--sync Match [T-n] commits and checkboxes; refresh progress — offline
--loop-prompt Print loop-prompt.md (e.g. to pipe into a coding agent) — offline
recover --worktree Open the branch in .worktrees/<ticket> instead of checking it out here
--no-fetch Resolve the branch from local refs only
--from <file> The pipeline's failure notes (ticket comment, CI log) for the AI to start from
--save Save the drafted context without review (the -p/--print route)
commit --all, -a Use all tracked changes, not only staged
--scope <scope> Force the Conventional Commit scope
--no-gitmoji Skip the gitmoji prefix (it is on by default)
branch --type <type> feat|fix|chore|docs|refactor|test|perf|build|ci|hotfix
context --out <file> Write the brief to a file
--format <md|json> Output format (default: md)
docs --out <file> Write the documentation to a file
agents --target <t> claude|agents|both (default: both; CLAUDE.md imports AGENTS.md)
--update Surgically refresh existing files
agent-setup — No options; the interactive flow asks what it needs
template add --from <file> Seed a new user template from an existing file

branch takes a required ticket ID and/or description as positional arguments. prompt takes an optional description; without one it falls back to the saved session context. recover takes an optional branch name or ticket ID; without one it recovers the current branch.

Global options

Accepted by every command, and — because they are parsed in one pass over the whole command line — they may appear anywhere in it.

Flag Effect
--dry-run Deterministic scaffold: no LLM call, no credentials read
-p, --print One-shot non-interactive run, result on stdout (default off a TTY)
--model-id <id> Model override for this run
--provider <name> Provider override for this run (not persisted)
--api-key <key> API key override for this run (not persisted)
-v, --version Print the version
-h, --help Show usage

-p/--print is also selected automatically when stdin is not a TTY, so sinscribe behaves correctly in a pipeline or a CI job.

Examples

# Pull requests
sinscribe pr --template github --base origin/main --out PR.md
sinscribe pr --base develop --staged       # only staged changes, vs develop
sinscribe pr --dry-run                      # branch/ticket/diff detection + scaffold

# Commits & branches
sinscribe commit --scope api --no-gitmoji
sinscribe branch ABC-123 add retry logic to uploader   # → feat/ABC-123-... suggestions

# Prompts & project understanding
sinscribe prompt --type bugfix uploader crashes on empty files
sinscribe prompt --handoff -p "add retry logic"   # also writes .sinscribe/handoff.md
sinscribe plan                                     # spec plan, stage by stage, in the TUI
sinscribe plan -p --stage design --feedback "reuse the queue module"   # writes a draft
sinscribe plan --approve --stage design            # approve it (offline)
sinscribe plan --sync                              # progress from [T-n] commits + checkboxes
sinscribe recover ABC-123 --worktree --from failure.md   # take over a branch a pipeline gave up on
sinscribe context --format json --out context.json
sinscribe agents --target claude --update

# Templates
sinscribe template list
sinscribe template show andersoftware
sinscribe template path

# Chat & per-run overrides
sinscribe -p "what changed on this branch?"
sinscribe pr --provider anthropic --api-key sk-ant-...

Ticket IDs (ABC-123, #42) are auto-detected from the branch name for pr and from the input for branch. When a branch session exists, its feature/ticket/requirements are fed to the model as business context.

Session handoff (.sinscribe/handoff.md)

A prompting session normally ends with the useful part — what was decided, what is still open — only in your head. After you approve a prompt, sinscribe prompt offers to write a .sinscribe/handoff.md: a snapshot of where the branch stands, not an accumulated log.

It is a fixed set of headings — where things stand, what was done, key decisions, open questions, next steps, known issues — written empty for you to fill, or filled by the model from the session.

The next sinscribe prompt on that branch reads the file back and feeds it to the model, so a second iteration starts warm instead of re-deriving settled ground. A handoff written on a different branch is still passed along, but labeled as such rather than presented as the current state.

--handoff writes the file without asking — the only route in -p/--print and other non-TTY runs, which cannot ask. The file is yours to commit or ignore; Sinscribe never adds it to .gitignore.

Spec plan (sinscribe plan)

Spec-driven development for the current branch, from its session context. Four documents are generated and approved in order — each one is reviewed (approve, modify with feedback, view full, save as draft) and the next is generated from the approved ones:

Stage File Defines
1 requirements.md The what and why: REQ-n with testable AC-n.m criteria, assumptions, out of scope, boundaries
2 design.md The how: decisions with alternatives, data/DB changes, affected APIs, mermaid sequences, risks
3 tasks.md Small verifiable tasks (T-n), each naming the ACs it implements and its exact verify command
4 handoff.md The implementation's memory: status, decisions, spec deltas, blockers, and an append-only log

They live in .sinscribe/specs/<branch>/ with an index.md that links them and records which stage is approved — tracked in git on purpose, so the plan travels with the branch and a teammate can resume it (mind this in public repos). The index is written only by Sinscribe; every stage file links to the others.

  • Grounded in the code. Requirements and design let the model read the repository first, read-only: with the Claude Code provider through claude with only Read/Glob/Grep, confined to the repo (--restricted); with Kiro through an agent whose only tool is fs_read, limited to the repo; with API-key providers through a write-denied agent. .env files and keys are never readable, and output is scanned for secrets. --no-explore uses a single call with a repo brief (tracked files, scripts, CLAUDE.md/AGENTS.md).
  • Traceable. Approving tasks.md is blocked while a task references an AC or task that does not exist, or the dependencies form a cycle; uncovered ACs, oversized tasks and missing verify commands are flagged.
  • Never silently stale. Editing or regenerating a document marks everything after it stale until it is regenerated (or the edit is accepted). Ticking a task's checkbox is progress, not an edit.

The implementation loop. Approving the tasks writes loop-prompt.md: the operating contract for your coding agent (Claude Code, Codex, …). The agent takes one task at a time in dependency order, verifies it with its command, ticks it, logs it in handoff.md, commits it with [T-n] in the subject (unless your rules forbid commits), and stops at checkpoints, blockers, or anything the spec does not decide — which it records as a spec delta instead of editing the spec. It finishes only when every task is checked and every AC is verified. Hand it over with Copy loop prompt in the menu, or sinscribe plan --loop-prompt. As work lands, Sync progress (--sync) refreshes the status in handoff.md and index.md from the checkboxes and commits, without touching the log; regenerating the handoff feeds the agent's log back into it.

Sinscribe does not run the loop itself (yet): the agent you already use does.

Recovering a failed branch (sinscribe recover)

When an automated pipeline (AI agents in CI) works on a branch and gives up — its fix attempts ran out, tests stayed red — a developer takes over. recover makes that a few keystrokes instead of an archaeology session:

  1. Open the branch. sinscribe recover ABC-123 fetches, finds the branch (an exact name, or every branch carrying the ticket — the one that ends with it wins, so bot/ABC-123 beats bot/ABC-123-design), and checks it out. With uncommitted work here it refuses; --worktree opens it in .worktrees/ABC-123 instead (kept out of git status through .git/info/exclude) and reuses that worktree next time. A branch that is only behind its remote is fast-forwarded; a diverged one is left alone and reported. Without a target, the current branch is recovered in place — but never the base branch (main, develop, …): there is nothing a pipeline left there, so recover (and the menu item) refuse it and ask for the failed branch or its ticket.
  2. Read what the pipeline left. The AI drafts the branch's session context in recovery mode — read-only, exactly like Generate session context with AI, but starting from the evidence: files whose path carries the ticket, the reports, specs, plans, logs and lock files the branch changed, its commits, and the diagnosis you pass with --from (the ticket comment or CI output, copied to a file). The draft names what the branch must deliver, lists one Failure: line per concrete failure and one Remaining: line per missing piece, and never proposes weakening the tests the pipeline was held to — a test or spec that looks wrong becomes an open question for you.
  3. Fix it. Review and approve the context as usual, then pick Quick fix — bugfix prompt (one copy-ready prompt for your coding agent) or Rework — spec plan (requirements → design → tasks). Pushing the fix is yours — it is what re-triggers the pipeline.

Nothing in recover knows which pipeline produced the branch. Team-specific rules — "never edit tests/** or .locks/**", "run make test before pushing" — belong in your project rules (.sinscribe/rules.md), which every step already follows. Recover a failed branch in the menu does the same for the current branch; sinscribe recover -p --save drafts and saves without review for scripts, so sinscribe prompt --type bugfix -p can follow it.

Configuration

On first interactive run, Sinscribe asks for your provider API key and stores it in ~/.sinscribe/.env (directory 0700, file 0600). Real environment variables always win over the file, and nothing secret is ever printed.

# ~/.sinscribe/.env (all optional; created by the CLI)
SINSCRIBE_PROVIDER="opencode-go"    # opencode-go | openrouter | baseten | fireworks | openai | openai-compatible | anthropic | kiro-cli | claude-cli
SINSCRIBE_MODEL_ID="kimi-k2.7-code" # default model for the provider
OPENCODE_API_KEY="..."
ANTHROPIC_API_KEY="..."             # if you switch to anthropic
                                    # (kiro-cli / claude-cli need no key — see below)
SINSCRIBE_TICKET_PATTERN="(T-\d+)"  # optional 

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#git · #cli · #pull-requests