Skip to content

feat(ai): ask-jev command, MCP tool and skill - #4315

Merged
dan-petty merged 3 commits into
mainfrom
feat/4306-ask-jev-command-mcp-tool-and-skill
Nov 10, 2026
Merged

dan-petty merged 3 commits into
mainfrom
feat/4306-ask-jev-command-mcp-tool-and-skill

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Add devops ai ask-jev (kinds choice, noul and score), the read-only MCP tool ai_ask_jev, and the skill ask-jev in the three agent skill roots. The command sends one typed question to TypeSafe Jev and prints the answer, its probability and the token count. It refuses an input with a secret and an input over a bound, so the CLI and the tool refuse the same input. A dry run sends no request.

Closes #4306

Change: openspec/changes/archive/2026-11-10-4306-ask-jev-command-mcp-tool-and/
Elapsed: 3.95s

@dan-petty dan-petty added type/feature Type feature: a new function scope/ai AI review pipeline, personas, prompts, LLM client, or RAG labels Nov 10, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Checks

  • Full devops ci run on the branch before the last rebase: 22,079 tests passed, coverage 92.90%. Four tests in tests/commands/test_scan.py fail the same way on origin/main (they reach the tool binaries of the host): not from this change.
  • The first full run found a ty diagnostic (uv check) and three mypy errors in the new code. Both are fixed; lint, format, typecheck, uv-check, docs and openspec pass after the fix.
  • devops ci fail-to-pass --base origin/main: 4 of the new test groups fail on the base (the missing skill, the missing constant and the missing tool) and pass on the branch.

Live check (Jev is live since #4300)

One call per kind, through the gateway:

$ uv run devops ai ask-jev noul "Is this issue about adding a command?" --context "feat(ai): ask-jev command, MCP tool and skill. Add devops ai ask-jev." --json
{"kind": "noul", "answer": "yes", "probability": 0.94, "probabilities": {"yes": 0.94, "no": 0.06}, "model": "typesafe/jev-1.14-20261014", "input_tokens": 295, "output_tokens": 20, ...}

$ uv run devops ai ask-jev choice "Which label fits?" --context "The command crashes on start." -o "bug=A defect" -o "idea=A proposal"
Answer: bug
Probability: 1.00
Tokens: 312 in, 31 out (typesafe/jev-1.14-20261014)

$ uv run devops ai ask-jev score "How complex is this task?" --context "Rename one variable in one file." -l Trivial -l Normal -l Hard
Score: 0.01
Confidence: 0.98
Tokens: 304 in, 17 out (typesafe/jev-1.14-20261014)

The live check ran before the last rebase onto origin/main.

Notes

@dan-petty
dan-petty force-pushed the feat/4306-ask-jev-command-mcp-tool-and-skill branch from 188703b to 45d4654 Compare November 10, 2026 01:17
@dan-petty

Copy link
Copy Markdown
Owner Author

The check Changed-Test Independence failed because the skill file .claude/skills/ask-jev/SKILL.md was ignored by .gitignore and was not committed. The fix adds the ignore exception and the file. The tests of the three skill roots pass again.

@dan-petty
dan-petty marked this pull request as ready for review November 10, 2026 01:30
@dan-petty
dan-petty merged commit ec160a2 into main Nov 10, 2026
26 checks passed
@dan-petty
dan-petty deleted the feat/4306-ask-jev-command-mcp-tool-and-skill branch November 10, 2026 01:45
dan-petty pushed a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.104.0](v0.103.3...v0.104.0)
(2026-11-10)


### Features

* **ai:** ask-jev command, MCP tool and skill
([#4315](#4315))
([ec160a2](ec160a2))
* **roadmap:** a Jev completeness check for draft pull requests
([#4320](#4320))
([e99dc01](e99dc01))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ai): ask-jev command, MCP tool and skill

1 participant