feat: add wt step eval for template expression evaluation#1004
Open
feat: add wt step eval for template expression evaluation#1004
wt step eval for template expression evaluation#1004Conversation
…ntal)
Evaluates a minijinja template in the current worktree context and prints
the result to stdout. Reuses the existing hook template infrastructure
(variables, filters like hash_port/sanitize/sanitize_db).
Designed for scripting — no shell escaping, no decoration, output to
stdout only.
```
$ wt step eval '{{ branch | hash_port }}'
16066
$ curl http://localhost:$(wt step eval '{{ branch | hash_port }}')/health
```
Ref #947
Co-Authored-By: Claude <noreply@anthropic.com>
6 tasks
Owner
Author
|
Follow-up PR for per-branch kv state: #1006
|
# Conflicts: # src/main.rs # tests/integration_tests/completion.rs
The merge brought a debug_assert for multiline errors without .context(), which caught step_eval wrapping TemplateExpandError into a plain anyhow string. Let the typed error propagate so main.rs handles it via its TemplateExpandError display handler, producing better output with template line context and available variables. Co-authored-by: Claude <noreply@anthropic.com>
# Conflicts: # src/cli/mod.rs
worktrunk-bot
approved these changes
Feb 19, 2026
Features 1+2 are implemented across arbitrary-data (step eval) and kv-state (arbitrary per-branch state, templates, JSON output). Feature 3 (custom columns) can be tracked as a separate issue. Co-authored-by: Claude <noreply@anthropic.com>
max-sixty
added a commit
that referenced
this pull request
Feb 19, 2026
… code The CI reviewer was approving PRs without noticing obviously misplaced files (e.g. IDEAS.md at repo root in PR #1004). It read the diff but went straight to Rust code review without stepping back to look at the change holistically. Add a substep prompting the reviewer to look at what files are being added/changed before reading them in detail. Co-Authored-By: Claude <noreply@anthropic.com>
2 tasks
max-sixty
added a commit
that referenced
this pull request
Feb 20, 2026
…#1117) ## Summary - **pr-review skill**: adds a substep prompting the reviewer to assess the PR's shape (what files are being added/changed) before diving into code details — so obvious misplacements like a scratch file at the repo root don't slip through - **nightly review-reviewers**: adds a cross-check step that compares bot review verdicts against subsequent commits and human comments on the same PR, identifying things the bot should have caught Triggered by the bot approving PR #1004 without flagging an `IDEAS.md` design document at the repo root. ## Test plan - [ ] Next `claude-review` run: verify the reviewer pauses to assess file list before code review - [ ] Next `claude-nightly-review-reviewers` run: verify it cross-checks review sessions against PR outcomes > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com>
# Conflicts: # src/main.rs # tests/integration_tests/completion.rs
worktrunk-bot
approved these changes
Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wt step evalsubcommand that evaluates a minijinja template in the current worktree context and prints the result to stdoutbranch,repo,worktree_path, etc.) and filters (hash_port,sanitize,sanitize_db) are availableThis is the first step from the IDEAS.md design doc, directly addressing the user request in #947 — "found no way to run it on a single branch."
Test plan
Ref #947