Built-in PreToolUse hook mode for ganja evaluate
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2
- Forks
- 0
- Avg merge
- 1h
- Merged PRs (30d)
- 17
Description
What it does
Gives ganja evaluate a hook mode of its own (for example --hook pretooluse with thresholds as flags), so a PreToolUse gate in ganja.toml is one command line instead of a shell script.
Source
ganja-code-l8n4 (a built-in PreToolUse hook mode for ganja evaluate in place of the sh and awk recipe).
The bead is closed when this issue is published, with its external reference pointing here (#38).
File and line references in this issue are to main as of 75a7a92.
Against the three criteria
- Direction (README): The README does not mention Jev or
evaluate. The nearest passage is the isolation bullet (README.md:23-27). - Today's terminal users: A user of the PreToolUse gate gets thresholds that the command-line parser validates, and loses a failure class: the recipe has to pin
LC_ALL=C(docs/recipes/typesafe-pretooluse-hook.sh:19) because under a comma-decimal localeawkreads"0.92"as 0 and the gate fails open silently. - Evidence: The gate today is
docs/recipes/typesafe-pretooluse-hook.sh, 132 lines ofshandawk; no--hookflag exists. The owner chose on 2026-09-19 not to start it.
Depends on
It does not need the judge seam: it is a mode of the existing command (D564). Its reopening is tied to #59.
Verdict
- Verdict: park
- Reopens: when #59 (the judge seam) is built.
- Exception to the probe rule: no.
- Date: 2026-09-19
- Verdict ticket: #47
Theme: #50
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with docs/recipes/typesafe-pretooluse-hook.sh and the existing ganja evaluate command; compare the recipe’s thresholds and locale handling with the command’s current parser. Check #59 before beginning, since the issue says this work reopens only after the judge seam is built. Done means ganja evaluate supports a native --hook pretooluse mode with threshold flags, replacing the shell and awk recipe.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- awk, rust, shell
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100