Repository navigation
Description
Friction
A person who reviews an agent's diff has no review interface. The dashboard has no diff widget (grep -n diff src/devops_cli/ui/ finds only line counts). devops pr diff prints text. A person pastes comments into a chat by hand, and the agent gets no line numbers or comment ids.
An open tool fills this gap: tuicr, a terminal program that shows a diff, lets a person add typed comments on lines, and exports them as text or as JSON.
Evidence
- tuicr v0.27.0: Rust, MIT license, released 2026-09-23, last push 2026-10-21, 3,443 stars, 70 open issues and 25 open pull requests (GitHub API, 2026-10-22). One person wrote 138 commits against 21 for the next person. It is below 1.0, and its storage layout changed before (pull requests fix(release): eliminate duplicated issue text from automatic GitHub issue reference expansion in release epics #339 and fix(review): act on the verified findings and close the classes that produced the rest #380).
- Size: about 58,000 lines of non-test Rust. Two counts of
src/**/*.rsin the v0.27.0 tag, each minus the unit-test modules inside the source files (about 31,900 lines), give 57,700 and 58,400. That is 15 times the 3,963 lines of ourui/package. - The real installer installed the pinned musl build for linux-amd64 in a scratch home. It checked the sha256, took the member
tuicrfrom the archive, and_at_pinreturnedTrue.tuicr --versionprintedtuicr 0.27.0. All four hashes were checked by two separate downloads. - With the template config,
tuicr review add --type boguswarnedknown types: issue, question, nit, so the template loads. The export carried our intro, theComment types:legend with the definition of the type that was used, and numbered comments (1. **[ISSUE]** src/a.py:2 - ...). - With
.tuicrignore, the fixture review dropped from 5 entries to 3 (reviewed 0/5 filesbecamereviewed 0/3 files). The 5 entries are 4 changed files and the commit message, which tuicr shows as a pseudo-file. - Network: one outgoing connection at start without
--no-update-check, none with it (strace). The config keyno_update_check = truedoes the same. The review CLI and the-wand-rmodes make no GitHub request. The pull request mode (tuicr pr N) runs the bareghcommand, at least seven times per open, outsiderun_gh. We do not use it. - A comment that
tuicr review addwrites shows in the open TUI after about 3 seconds (earlier run; poll interval 1000 ms). The CLI cannot start a session; the TUI does. tuicr review commentsneeds--repo <worktree>when the current directory is not that worktree. Without it, it exits 1 withsession ... was not found. With the flag, it works from any directory (run on 2026-10-22).- Open upstream items: feat(security): vault commands use the token
devops vault loginstores #709 (key bindings cannot change), docs(roadmap): plan LLM tuning and optimization work for v0.2.23 #483 (no resolved state), fix(tui): correct the Docker, telemetry, Valkey and review panels #368 (active-session discovery is a convenience signal), and pull request feat(review): review tools run through one injectable executor in a network-less sandbox with CPU, memory and time limits #772 (asynchronous review lifecycle hooks).
Proposed remedy
src/devops_cli/tools_lock/tools.lock: the[binary.tuicr]block fromtools-lock-entries.md..devops/tuicr.config.toml(18 lines):no_update_check = true, three comment types with definitions (issue,question,nit), and a short[export] intro. A person copies it once to~/.config/tuicr/config.toml. The installer does not write it, because AGENTS.md requires a backup before an edit outside the workspace..tuicrignore(7 lines):docs/commands/*.mdanddocs/CLI_REFERENCE.mdonly. Lockfiles, the tools lock,CHANGELOG.mdanddocs/ROADMAP.mdstay visible, because a change to one of them is a change to a trust root or a rule.tests/test_tuicr_config.py: 3 tests.tests/test_tools_lock.py: add"tuicr"to_REQUIRED_TOOLS.pyproject.toml,[tool.mutmut] also_copy: add".tuicrignore"(.devopsis in the list already).docs/DEVCONTAINER_USAGE.md: one sentence in the "Terminal tools" paragraph. It says: tuicr is for the person; copy the template once; start it withtuicr -r <release-branch>..HEADortuicr -win the worktree of the agent; never usetuicr pr,tuicr updateorcurl | sh.changelog.d/<issue>.mdunder### Added.
What it deletes
Nothing. No internal diff review exists.
Tests
tests/test_tuicr_config.py: the template parses with tomllib and sets no_update_check to true; every comment type has a definition (the export legend shows it to the agent); every line of .tuicrignore is in the generated class of CONST_DOCS_INVENTORY. The tests run in under one second.
Person-run steps
- Run
devops install-tools --tool tuicr, thendevops install-tools --check. - Copy the template:
mkdir -p ~/.config/tuicr && cp .devops/tuicr.config.toml ~/.config/tuicr/config.toml. If that file exists, back it up first with the suffix.bak-<YYYYMMDD-HHMMSS>. - In an agent worktree, run
tuicr -r <release-branch>..HEAD. Add a comment, then pressyand check the export. - In another terminal, run
tuicr review list --repo <worktree>andtuicr review comments --repo <worktree> --session <slug>. Check the JSON fields:id,location,path,start_line,end_line,side,comment_type,author,lifecycle_state,created_at,content. - Judge the VS Code terminal. The clipboard (OSC 52) and Shift-Enter are not verified (tuicr issue chore(docs): plan the architecture review's deepening candidates and defects #782).
Cost (written)
- Apply, from the drafts: about 100 lines; about half a day; about 25k to 40k tokens (estimate).
- Upkeep: a bump edits 1 version, 4 URLs and 4 hashes. After a bump, run the CLI JSON check of the pull request "feat(review): 'devops review export-tuicr' ..." if that change exists.
- Fix cost: tuicr is below 1.0 with one main maintainer. We rely only on the documented CLI JSON, never on the session file. If the project stops, pin the last good release.
Dependencies
- feat(tools): pin gh-dash and ship .gh-dash.yml for the oldest-first PR queue and issue triage (both changes edit
tools.lockandtests/test_tools_lock.py; merge that one first).
Acceptance criteria
devops install-tools --tool tuicrinstalls the pinned build, anddevops install-tools --checkexits 0.- A person has run one review in a worktree and has read the comments as JSON.
uv run pytest tests/test_tuicr_config.py tests/test_tools_lock.pypasses, anduv run devops cipasses.
Size: S.
Second part (folded in by the intake duplicate check on 2026-10-22): the human review round
Friction
After a person reviews a diff, the comments reach the agent as pasted text. No rule says how an agent reads them, how it replies, or what it must never run. Without a rule, an agent can run tuicr review clear and delete the person's session, read the clipboard text instead of the JSON, or start a tool that needs a terminal. The docs also still describe the internal dashboard as the whole terminal answer (docs/VISION.md item 15).
Evidence
tuicr review clearcandcleardelete the session file when it becomes empty. A latertuicr review commentsthen exits 1 withsession not found(tuicr docs and earlier run).tuicr review commentsfails from another checkout unless--repo <worktree>is set (run on 2026-10-22).- Comments hold line numbers, and the session slug holds the HEAD sha. After the agent commits, the old session no longer matches the code (tuicr issue refactor(github): one github session per identity owning token, quota and transport #767).
- Two sessions can be active in one repository. Active-session discovery is "a convenience signal" (tuicr issue fix(tui): correct the Docker, telemetry, Valkey and review panels #368, open), so the agent must ask when two are active.
docs/SDLC.mdline 230 states the verdict rule: a person records verdicts withdevops review verify. tuicr comment types carry no verdict, so this rule stays true.- The permission file
.claude/settings.jsontoday allows onlyBash(uv run devops *).
Proposed remedy
- A skill
tuicr-review(38 lines,SKILL.md; draft:tui-tuicr-skill.md) in the skills directories that the pull request "feat(openspec): scaffold OpenSpec and gate its change folders in devops ci" creates. It tells the agent to: find the session withtuicr review list --repo <worktree>and use the entry with"active": true; read only the JSON oftuicr review comments --repo <worktree> --session <slug>; handleissue,questionandnitcomments in one round; reply by the first 8 characters of the comment id and the location; tell the person to start a new session after the commit; never runclear,clearc,delete,add,updateorpr; never starttuicrorgh-dash; record no verdict. - One planning convention in
openspec/config.yaml(the file that the OpenSpec scaffold creates): a change that alters code may end with the plain bulletPending a person: review the diff in tuicr (tuicr -r <base>..HEAD).Merge this text with the OpenSpec change, not in parallel. .claude/settings.jsonentries (draft:tui-tuicr-settings.json): allowBash(tuicr review list *)andBash(tuicr review comments *); denyBash(tuicr review clear *),Bash(tuicr review clearc *),Bash(tuicr review delete *),Bash(tuicr review add *),Bash(tuicr update*),Bash(tuicr pr *)andBash(gh-dash*). Reconcile them with the settings entries of the GitHub request budget design (no issue yet) so the file has one coherent set. The Gemini and Copilot equivalents are not verified.docs/SDLC.md, Phase 6: a "Human review round" bullet. The person reviews the diff and the commit message in tuicr; the agent reads the JSON, changes the code, and replies by comment id; the person starts a new session for the new range. Phase 5, "Verdicts & Feedback Loop" bullet: add one sentence after theexport-tuicrchange ships, and only then.docs/VISION.mditem 15: replace the claim that the internal dashboard removes the need for web dashboards. New meaning: the terminal canvas is made of pinned open tools (k9s for Kubernetes, gh-dash for pull requests and issues, tuicr for diff review), anddevops dashboardcovers only what no open tool covers.changelog.d/<issue>.mdunder### Added.
What it deletes
Nothing.
Tests
No new Python test. Follow the checks that the OpenSpec scaffold adds for skills and for the openspec/ folder.
Person-run steps
Run one real round: review an agent diff in tuicr, ask an agent to address the comments, and report what failed. Check that the allow entries stop the permission prompt for the two read commands and that a deny entry blocks clear.
Cost (written)
About 80 lines of text and JSON; about 2 hours; about 15k to 25k tokens (estimate). No code, so no upkeep beyond the skill text.
Dependencies
- feat(tools): pin tuicr with a no-update-check config template and .tuicrignore
- feat(openspec): scaffold OpenSpec and gate its change folders in devops ci (feat(openspec): scaffold OpenSpec and gate its change folders in devops ci #1844)
- The GitHub request budget design (investigation in progress, no issue yet), for the settings entries.
Acceptance criteria
- An agent that follows the skill reads the comments of a test session and replies by id.
- The settings file holds the allow and deny entries, with no duplicate of the budget design's entries.
docs/SDLC.mdanddocs/VISION.mddescribe the review round and the open-tool canvas.uv run devops cipasses.
Size: S.
Proposed design
Problem statement
The devops-cli project needs to integrate tuicr, a terminal-based tool for reviewing diffs and adding typed comments, into its tooling ecosystem. This involves pinning a specific version of tuicr, providing a configuration template, and ignoring certain documentation files during reviews.
Acceptance criteria
- Criterion 1: The pinned version of tuicr is installed when running
devops install-tools --tool tuicr
Verification: Rundevops install-tools --tool tuicrand verify that the tool is installed at the pinned version (0.27.0) with correct checksums. - Criterion 2: The
devops install-tools --checkcommand exits 0 after installing tuicr
Verification: Rundevops install-tools --checkafter installing tuicr and confirm it returns exit code 0. - Criterion 3: A person can run a review using tuicr in a worktree and read comments as JSON
Verification: Executetuicr -r ..HEADin a worktree, add a comment, then usetuicr review comments --repoto verify JSON output includes fields like id, location, path, start_line, end_line, side, comment_type, author, lifecycle_state, created_at, and content. - Criterion 4: The test suite passes for tuicr configuration and tools lock
Verification: Runuv run pytest tests/test_tuicr_config.py tests/test_tools_lock.pyand confirm all tests pass.
Key questions
- What is the specific version of tuicr to be pinned?: The specific version of tuicr to be pinned is 0.27.0. [sources: src/devops_cli/tools_lock/tools.lock]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 22, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The candidate proposes adding a new tool with configuration and related changes.It enhances developer experience but is not critical to core functionality.Improves workflow for developers reviewing diffs and comments, beneficial but not essential.Involves adding configuration files, tests, documentation updates, and integration with the tools lock.dan-petty commentedon Oct 22, 2026
Status set to Ready at ae8c2d9 (see proposed design in issue body).
feat(tools): pin tuicr and ship its config template, ignore file and …
dan-petty commentedon Oct 22, 2026
What changed
#1906, merged into
release/v0.2.39as f259dbb.12 file(s) changed.
How it was verified
Check runs at af9c22e:
Acceptance Criteria of
docs/agent/tasks/task-1884-pin-tuicr-and-ship-config.md:tools.lockpins tuicr 0.27.0 with a SHA-256 and anhttpsURL for each platform:test_the_packaged_lock_holds_every_tool_install_tools_installsandtest_every_binary_build_is_an_https_url_with_a_sha256.The template keeps the update check off:
test_the_template_keeps_the_update_check_off.Every comment type of the template has a definition for the legend:
test_every_comment_type_of_the_template_has_a_definition_for_the_legend.The ignore file hides only generated documents:
test_the_ignore_file_hides_only_generated_documents.tests/test_tuicr_config.pyandtests/test_tools_lock.pypass. They run offline and never start tuicr.devops cipasses in the pre-push hook before the push.docs/SDLC.mdPhase 6 describes the human review round,docs/VISION.mditem 15 describes the open-tool canvas, anddocs/DEVCONTAINER_USAGE.mdsays how to start tuicr.changelog.d/1884.mdrecords the change.CHANGELOG.mdanddocs/ROADMAP.mdare not edited.Pending a person: merge these permission entries into
.claude/settings.json. An agent must not edit its own permission file. The same entries close the gh-dash part of #1882. Thegh-dashdeny entry and thetuicrdeny entries are one settings change. First compare the file with the settings entries of the GitHub request budget design. The file must hold one set and no duplicate.{ "permissions": { "allow": [ "Bash(tuicr review list *)", "Bash(tuicr review comments *)" ], "deny": [ "Bash(tuicr review clear *)", "Bash(tuicr review clearc *)", "Bash(tuicr review delete *)", "Bash(tuicr review add *)", "Bash(tuicr update*)", "Bash(tuicr pr *)", "Bash(tuicr)", "Bash(tuicr -*)", "Bash(tuicr tui*)", "Bash(gh-dash*)" ] } }Pending a person: check the three start patterns of the deny list.
Bash(tuicr),Bash(tuicr -*)andBash(tuicr tui*)must block a start of the interface. They must not matchtuicr review listortuicr review comments. They also blocktuicr --help, which is acceptable. The Gemini and Copilot equivalents are not verified.Pending a person: run
devops install-tools --tool tuicr, thendevops install-tools --check. The check exits 0 when every tool has its locked version.Pending a person: copy the template with
mkdir -p ~/.config/tuicr && cp .devops/tuicr.config.toml ~/.config/tuicr/config.toml. If that file exists, copy it first to~/.config/tuicr/config.toml.bak-<YYYYMMDD-HHMMSS>.Pending a person: run one real review. In a worktree of an agent, run
tuicr -r <release-branch>..HEAD, add a comment, pressyand check the export. In another terminal, runtuicr review list --repo <worktree>andtuicr review comments --repo <worktree> --session <slug>. Check the JSON fieldsid,location,path,start_line,end_line,side,comment_type,author,lifecycle_state,created_atandcontent. Judge the VS Code terminal. The clipboard (OSC 52) and Shift-Enter are not verified (issue 782 of the tuicr repository).Pending a person: run one agent round. Ask an agent to address the comments of that review, with the "Human Review Round" bullet of
docs/SDLC.md. Keep tuicr open during the round, or give the agent the session slug, because"active"is true only while tuicr is open. Check that the allow entries stop the permission prompt for the two read commands. Check that a deny entry blockstuicr review clearand a start oftuicr. Report what failed.chore(settings): allow the devops, openspec and tuicr commands, and d…
feat(release): v0.2.39 (#1947)