@jigyasudham/veto 1.4.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/AGENTS.md +134 -0
  2. package/README.md +61 -144
  3. package/dist/adapters/index.d.ts +3 -2
  4. package/dist/adapters/index.d.ts.map +1 -1
  5. package/dist/adapters/index.js +105 -1
  6. package/dist/adapters/index.js.map +1 -1
  7. package/dist/agents/executor.d.ts +2 -0
  8. package/dist/agents/executor.d.ts.map +1 -1
  9. package/dist/agents/executor.js +50 -3
  10. package/dist/agents/executor.js.map +1 -1
  11. package/dist/agents/llm-runner.d.ts +11 -0
  12. package/dist/agents/llm-runner.d.ts.map +1 -0
  13. package/dist/agents/llm-runner.js +252 -0
  14. package/dist/agents/llm-runner.js.map +1 -0
  15. package/dist/agents/local-llm.d.ts +14 -0
  16. package/dist/agents/local-llm.d.ts.map +1 -0
  17. package/dist/agents/local-llm.js +51 -0
  18. package/dist/agents/local-llm.js.map +1 -0
  19. package/dist/agents/manifest.d.ts +13 -0
  20. package/dist/agents/manifest.d.ts.map +1 -0
  21. package/dist/agents/manifest.js +55 -0
  22. package/dist/agents/manifest.js.map +1 -0
  23. package/dist/agents/quality/clone-detector.d.ts +16 -0
  24. package/dist/agents/quality/clone-detector.d.ts.map +1 -0
  25. package/dist/agents/quality/clone-detector.js +72 -0
  26. package/dist/agents/quality/clone-detector.js.map +1 -0
  27. package/dist/agents/types.d.ts +15 -0
  28. package/dist/agents/types.d.ts.map +1 -1
  29. package/dist/agents/validate.d.ts +11 -0
  30. package/dist/agents/validate.d.ts.map +1 -0
  31. package/dist/agents/validate.js +54 -0
  32. package/dist/agents/validate.js.map +1 -0
  33. package/dist/cli.js +331 -21
  34. package/dist/cli.js.map +1 -1
  35. package/dist/council/llm-council.d.ts.map +1 -1
  36. package/dist/council/llm-council.js +10 -9
  37. package/dist/council/llm-council.js.map +1 -1
  38. package/dist/council/types.d.ts +2 -0
  39. package/dist/council/types.d.ts.map +1 -1
  40. package/dist/memory/local.d.ts +29 -1
  41. package/dist/memory/local.d.ts.map +1 -1
  42. package/dist/memory/local.js +96 -2
  43. package/dist/memory/local.js.map +1 -1
  44. package/dist/memory/schema.d.ts +28 -43
  45. package/dist/memory/schema.d.ts.map +1 -1
  46. package/dist/memory/schema.js +41 -0
  47. package/dist/memory/schema.js.map +1 -1
  48. package/dist/memory/sync.d.ts +13 -0
  49. package/dist/memory/sync.d.ts.map +1 -1
  50. package/dist/memory/sync.js +113 -0
  51. package/dist/memory/sync.js.map +1 -1
  52. package/dist/repo-map/ignore.d.ts +8 -0
  53. package/dist/repo-map/ignore.d.ts.map +1 -0
  54. package/dist/repo-map/ignore.js +65 -0
  55. package/dist/repo-map/ignore.js.map +1 -0
  56. package/dist/repo-map/index.d.ts +29 -0
  57. package/dist/repo-map/index.d.ts.map +1 -0
  58. package/dist/repo-map/index.js +240 -0
  59. package/dist/repo-map/index.js.map +1 -0
  60. package/dist/router/context-compressor.d.ts +1 -1
  61. package/dist/router/context-compressor.d.ts.map +1 -1
  62. package/dist/router/context-compressor.js +9 -3
  63. package/dist/router/context-compressor.js.map +1 -1
  64. package/dist/router/index.d.ts +8 -3
  65. package/dist/router/index.d.ts.map +1 -1
  66. package/dist/router/index.js +20 -4
  67. package/dist/router/index.js.map +1 -1
  68. package/dist/router/learning-updater.d.ts +41 -0
  69. package/dist/router/learning-updater.d.ts.map +1 -1
  70. package/dist/router/learning-updater.js +62 -0
  71. package/dist/router/learning-updater.js.map +1 -1
  72. package/dist/router/model-selector.d.ts +4 -1
  73. package/dist/router/model-selector.d.ts.map +1 -1
  74. package/dist/router/model-selector.js +24 -28
  75. package/dist/router/model-selector.js.map +1 -1
  76. package/dist/server.js +3121 -1634
  77. package/dist/server.js.map +1 -1
  78. package/dist/tools/definitions.d.ts +1205 -171
  79. package/dist/tools/definitions.d.ts.map +1 -1
  80. package/dist/tools/definitions.js +678 -4
  81. package/dist/tools/definitions.js.map +1 -1
  82. package/dist/watcher/index.d.ts +1 -0
  83. package/dist/watcher/index.d.ts.map +1 -1
  84. package/dist/watcher/index.js +7 -6
  85. package/dist/watcher/index.js.map +1 -1
  86. package/dist/workflow/pipeline.d.ts +12 -2
  87. package/dist/workflow/pipeline.d.ts.map +1 -1
  88. package/dist/workflow/pipeline.js +395 -16
  89. package/dist/workflow/pipeline.js.map +1 -1
  90. package/p7.ts +6 -0
  91. package/package.json +8 -4
package/AGENTS.md ADDED
@@ -0,0 +1,134 @@
1
+ # Veto Tool & Agent Tier Policy
2
+
3
+ Every tool and agent in this codebase has a tier. New additions must be classified here at creation — never retroactively. Reclassification (e.g. mechanical → intelligence) requires an explicit council debate and a new entry in this file.
4
+
5
+ ---
6
+
7
+ ## Tool Tiers
8
+
9
+ ### ⚡ Mechanical — deterministic, instant, no LLM ever
10
+
11
+ Pure DB reads/writes and state queries. Personal data never leaves the local machine. Adding LLM to these tools adds latency with zero value.
12
+
13
+ **Rule:** If a tool's entire job is a SQLite read, write, or a filesystem stat — it is mechanical. Period.
14
+
15
+ | Tool | What it does |
16
+ |------|-------------|
17
+ | `veto_session_save` | Writes session to DB |
18
+ | `veto_session_restore` | Reads session from DB |
19
+ | `veto_sessions_list` | Lists sessions from DB |
20
+ | `veto_memory_store` | Writes knowledge entry to DB |
21
+ | `veto_memory_search` | Keyword search over DB entries |
22
+ | `veto_memory_delete` | Deletes knowledge entry by ID |
23
+ | `veto_memory_export` | Exports DB to JSON |
24
+ | `veto_memory_import` | Imports JSON into DB |
25
+ | `veto_status` | Reads current session + context state |
26
+ | `veto_health` | Checks DB + server health |
27
+ | `veto_rate_status` | Reads rate usage from DB |
28
+ | `veto_autosave_status` | Reads autosave config |
29
+ | `veto_context_status` | Reads context_usage table |
30
+ | `veto_usage_status` | Reads usage_log table |
31
+ | `veto_changelog` | Reads changelog file |
32
+ | `veto_audit_log` | Reads audit log from DB |
33
+ | `veto_metrics` | Reads metrics from DB |
34
+ | `veto_patterns_list` | Lists learned patterns from DB |
35
+ | `veto_pattern_store` | Writes pattern to DB |
36
+ | `veto_record_outcome` | Writes outcome to DB |
37
+ | `veto_learning_apply` | Applies stored learning rules |
38
+ | `veto_learning_stats` | Reads learning stats from DB |
39
+ | `veto_ci_gate` | Reads CI gate config/status |
40
+ | `veto_benchmark` | Runs deterministic benchmark |
41
+
42
+ ---
43
+
44
+ ### 🤖 Intelligence — LLM-backed via agentic loop
45
+
46
+ Two-phase protocol: Phase 1 returns a structured prompt, Phase 2 accepts `agent_outputs` (JSON from the host AI reasoning as each specialist), Phase 3 parses and returns the result. The host AI (Claude/Gemini/Codex) is the LLM — no external API calls from the server, no API keys required.
47
+
48
+ **Rule:** If a tool's value comes from reasoning, interpretation, or natural language generation — it is intelligence tier. It must implement the two-phase agentic loop.
49
+
50
+ **Hard constraint:** LLM output returned in Phase 2 must pass schema validation before any write to SQLite. Phase 3 parse failures must surface as a visible error — never a silent empty result.
51
+
52
+ | Tool | What it does |
53
+ |------|-------------|
54
+ | `veto_council_debate` | 7-agent council debates a task |
55
+ | `veto_code_review` | LLM-backed code review via agents |
56
+ | `veto_security_scan` | OWASP + semantic security analysis |
57
+ | `veto_secrets_scan` | Secret/credential detection + analysis |
58
+ | `veto_diff_review` | Reviews a git diff |
59
+ | `veto_pr_review` | Reviews a GitHub PR |
60
+ | `veto_route_task` | Routes task to optimal agent(s) via LLM |
61
+ | `veto_execute_parallel` | Runs multiple agents, batched into one LLM call |
62
+ | `veto_explain` | Explains code or a decision |
63
+ | `veto_summarize` | Summarizes session or context |
64
+ | `veto_handoff` | Generates handoff summary (natural language output) |
65
+ | `veto_discover` | Generates project discovery report |
66
+ | `veto_task_parse` | Parses and structures a natural language task |
67
+ | `veto_agent_plan` | Builds an agent execution plan |
68
+
69
+ ---
70
+
71
+ ### 📡 Observer — deterministic, feeds intelligence tools
72
+
73
+ Stateful event emitters. They watch filesystem or process state and emit events. They never interpret what they observe — that is the job of intelligence tools downstream.
74
+
75
+ **Rule:** If a tool watches for changes and emits events — it is observer tier. It never calls an LLM and never writes analysis to DB.
76
+
77
+ | Tool | What it does |
78
+ |------|-------------|
79
+ | `veto_watch` | Starts a filesystem watcher |
80
+ | `veto_watch_poll` | Polls for new watcher events |
81
+ | `veto_watch_stop` | Stops a watcher |
82
+
83
+ ---
84
+
85
+ ## Agent Tiers
86
+
87
+ All 43 worker agents follow the same two-tier pattern as tools.
88
+
89
+ ### Deterministic agents (current default)
90
+
91
+ Keyword-matching for `plan()`, regex-matching for `analyze()`. Zero tokens, instant, consistent.
92
+ Path: `src/agents/executor.ts` → `resolveAgent()` → individual agent module.
93
+
94
+ ### LLM-backed agents (opt-in via `llm_backed: true`)
95
+
96
+ Two-phase agentic loop. Host AI reasons using compact role from `src/agents/manifest.ts`.
97
+ Path: `src/agents/llm-runner.ts` → builds prompt from manifest → host AI responds → server validates + returns `AgentResult`.
98
+
99
+ **Token reduction rules for LLM-backed agents:**
100
+ - Load only the requested agent's role (~50 tokens), never the full manifest
101
+ - Use compressed output field names (`a`, `s`, `c`, `p`, `t`, `d`) in LLM response — server expands before returning
102
+ - Batch parallel agent calls into one LLM prompt — `veto_execute_parallel` with `llm_backed: true` sends all roles together
103
+ - For `analyze()` agents: run existing regex pass first, pass findings as context to LLM (reduces re-discovery tokens)
104
+ - Enforce `max_tokens` per agent type: plan agents 300, analysis agents 400
105
+
106
+ ### Agent classification by category
107
+
108
+ | Category | Agents | Notes |
109
+ |----------|--------|-------|
110
+ | Development | `coder` `reviewer` `tester` `debugger` `refactor` `database` `api` `frontend` `backend` `devops` `performance` `migration` | High LLM value — deeply context-dependent |
111
+ | Security | `security-scanner` `auth` `privacy` `secrets` `dependency-audit` `penetration` | `analyze()` agents — regex pre-filter + LLM deepens |
112
+ | Memory | `context-manager` `decision-logger` `project-mapper` `pattern-learner` `knowledge-base` | Low LLM value — mostly DB operations; keep deterministic |
113
+ | Research | `researcher` `tech-advisor` `cost-analyzer` `competitor-analyzer` `risk-assessor` `estimator` `ethics-bias` | High LLM value — research quality is entirely context-dependent |
114
+ | Quality | `code-quality` `documentation` `accessibility` `compatibility` `error-handling` | High LLM value — quality judgement is subjective and context-aware |
115
+ | Workflow | `task-planner` `task-coordinator` `file-manager` `git-agent` `search-agent` `reporter` `automation` | Mixed — planner/coordinator benefit from LLM; file/git/search stay deterministic |
116
+
117
+ ---
118
+
119
+ ## Governance Rules
120
+
121
+ 1. **Classify at creation.** Every new tool or agent gets a tier entry here before its PR merges.
122
+ 2. **No silent drift.** A mechanical tool that starts doing text generation must be reclassified explicitly.
123
+ 3. **Reclassification requires a council debate.** Run `veto_council_debate` on the reclassification decision, record the outcome ID here.
124
+ 4. **LLM outputs never write to DB without schema validation.** Intelligence tools must validate Phase 2 responses before any `INSERT` or `UPDATE`.
125
+ 5. **Phase 3 parse failures are visible errors.** Return `{ error: "LLM response malformed: ..." }` — never return an empty result silently.
126
+ 6. **Memory agents stay mechanical by default.** They handle personal data. Reclassifying any memory tool to intelligence tier requires a security review.
127
+
128
+ ---
129
+
130
+ ## Reclassification Log
131
+
132
+ | Date | Tool/Agent | From | To | Council outcome ID | Reason |
133
+ |------|-----------|------|----|--------------------|--------|
134
+ | — | — | — | — | — | (no reclassifications yet) |
package/README.md CHANGED
@@ -1,152 +1,33 @@
1
1
  # veto
2
2
 
3
- > **50 agents. 49 tools. 3 AIs. Self-learning. Zero extra cost.**
3
+ > **62 agentic tools. 50+ specialists. 3 AIs. Self-learning. Zero cost.**
4
4
 
5
- An MCP server that runs locally on your machine, plugs into Claude Code, Codex CLI, Gemini CLI, Cursor, Windsurf, and Zed using your existing subscriptions — giving every AI a council of specialist agents, persistent cross-platform memory, a self-learning router, CI/CD gates, workspace discovery, live docs, cross-platform handoff, usage metrics, and the ability to say no to bad decisions before any code is written.
5
+ An MCP server that runs locally on your machine, plugs into Claude Code, Codex CLI, Gemini CLI, Cursor, Windsurf, Zed, Copilot, and JetBrains using your existing subscriptions — giving every AI a council of specialist agents, local LLM support, SDD agents, playwright automation, persistent cross-platform memory, a self-learning router, CI/CD gates, workspace discovery, and bidirectional IDE communication.
6
6
 
7
7
  ---
8
8
 
9
9
  ## How the Agents Actually Work
10
10
 
11
- **This is the most important thing to understand about Veto.**
11
+ **Veto v2.0 is now 100% Agentic.**
12
12
 
13
- Veto has two fundamentally different types of agents:
13
+ Every tool in Veto uses a **2-phase agentic loop pattern** — no API keys required, zero extra cost, working identically across Claude Code, Gemini CLI, and Codex CLI.
14
14
 
15
- ### Council agents real LLM reasoning via agentic loop (7 agents)
15
+ ### The 2-Phase Agentic Loop
16
+ 1. **Phase 1 (Sampling):** The tool first attempts real LLM reasoning via **MCP Sampling** (the host AI's native ability to "create a message"). If supported by your client (like Claude Code or Gemini CLI), the agent performs deep reasoning and returns a structured plan or analysis instantly.
17
+ 2. **Phase 2 (Upgrade Prompt):** If Sampling is unavailable or fails, Veto returns an `llm_upgrade` prompt. You (the host AI) read the specialist's role and task, perform the reasoning yourself, and pass the JSON response back to complete the operation.
16
18
 
17
- The 7 council agents use the **agentic loop pattern** — no API key, no extra cost, works on Claude Code, Gemini CLI, and Codex CLI identically. The tool returns an instant deterministic result plus a `debate_prompt`. You (the host AI) read it, reason as all 7 specialists, and pass the responses back. Veto runs the verdict engine on your real LLM output.
19
+ ### Specialist Roles
20
+ Veto provides a council of 7 senior governance agents plus 55+ domain-specific worker agents.
18
21
 
19
- | Agent | Role |
22
+ | Agent Group | Specialist Roles |
20
23
  |---|---|
21
- | Lead Developer | Code quality, maintainability, implementation risk |
22
- | Product Manager | Scope, timeline, business value |
23
- | System Architect | Architecture fit, scalability, coupling |
24
- | UX Designer | User impact, accessibility, friction |
25
- | Devil's Advocate | Challenges assumptions, stress-tests the plan |
26
- | Legal & Compliance | License risks, data handling, regulatory exposure |
27
- | Security | OWASP, auth, injection, data leakage |
24
+ | **Council** | Lead Dev · PM · Architect · UX · Devil's Advocate · Legal · Security |
25
+ | **Development** | Coder · Reviewer · Tester · Debugger · Refactor · Database · API · Frontend · Backend · DevOps · Performance · Migration |
26
+ | **Advanced** | Local LLM (Ollama) · Semantic Search · SDD Agent · Playwright · i18n Translate · a11y Advisor |
27
+ | **Intelligence** | Task Planner · Researcher · Tech Advisor · Risk Assessor · Cost Analyzer · Ethics/Bias |
28
+ | **Workflow** | File Manager · Git Agent · Search Agent · Reporter · Automation |
28
29
 
29
- Use `strictness` to control depth:
30
- - `fast` — 3 agents (Lead Dev + Architect + Security), instant
31
- - `standard` — all 7 agents, default
32
- - `strict` — all 7 agents + Devil's Advocate rebuttal round on the most critical blocker
33
-
34
- `veto_benchmark` also runs council — two debates in parallel for side-by-side approach comparison.
35
-
36
- ### Expert modules — deterministic, instant, zero tokens (42+ agents)
37
-
38
- Every other agent in Veto — coder, reviewer, tester, debugger, security scanner, secrets scanner, database, frontend, devops, and all 30+ others — is a **deterministic expert module**: structured templates, OWASP regex patterns, and domain heuristics compiled into code. They run offline, produce zero token cost, and return results in milliseconds.
39
-
40
- ```
41
- veto_agent_plan { agent: "coder", task: "..." } ← deterministic plan, instant
42
- veto_code_review { code: "..." } ← regex + heuristic scanner, instant
43
- veto_secrets_scan{ text: "..." } ← pattern matching, instant
44
- veto_council_debate { task: "..." } ← agentic loop: host AI reasons as 7 specialists
45
- ```
46
-
47
- **Why this split?** LLM reasoning is only worth it for high-stakes architecture/security/migration decisions. Pattern-matching is MORE reliable than LLMs for secrets detection and OWASP scanning (no hallucinations). The deterministic agents are the workhorses; the council is the gatekeeper.
48
-
49
- ---
50
-
51
- ## Prerequisites
52
-
53
- | Requirement | Version | Notes |
54
- |---|---|---|
55
- | **Node.js** | 22.5.0 or higher | Required — uses built-in `node:sqlite` (no native compilation). Download at [nodejs.org](https://nodejs.org). |
56
- | **At least one AI CLI** | Latest | Claude Code, Gemini CLI, or Codex CLI — whichever you use. Veto works with all. |
57
-
58
- ```bash
59
- node --version # must be v22.5.0 or higher
60
- ```
61
-
62
- ---
63
-
64
- ## Quick Start
65
-
66
- ```bash
67
- npx @jigyasudham/veto@latest init
68
- ```
69
-
70
- `init` auto-detects every AI tool installed on your machine, configures them all in one shot, and builds a project map from your current directory — no manual steps.
71
-
72
- ### Claude Code (global — works in every window and project)
73
-
74
- ```bash
75
- claude mcp add veto -s user -- npx -y --package @jigyasudham/veto veto-server
76
- ```
77
-
78
- The `-s user` flag registers Veto at user scope so it is available in **every window and project** automatically.
79
-
80
- ### Other platforms
81
-
82
- | Platform | Config file written by `veto init` |
83
- |---|---|
84
- | **Gemini CLI** | `~/.gemini/settings.json` |
85
- | **Codex CLI** | `~/.codex/config.toml` |
86
- | **Cursor** | `~/.cursor/mcp.json` |
87
- | **Windsurf** | `~/.codeium/windsurf/mcp_config.json` |
88
- | **Zed** | `~/.config/zed/settings.json` · Windows: `%APPDATA%\Zed\settings.json` (`context_servers` key) |
89
-
90
- All config files are home-directory relative — they apply globally across all projects. Restart the AI client after `veto init`.
91
-
92
- ```json
93
- {
94
- "mcpServers": {
95
- "veto": {
96
- "command": "npx",
97
- "args": ["-y", "--package", "@jigyasudham/veto", "veto-server"]
98
- }
99
- }
100
- }
101
- ```
102
-
103
- ---
104
-
105
- ## What Veto Does
106
-
107
- **Council** — Before any significant task, 7 specialist agents debate it using the agentic loop and return a GREEN / YELLOW / RED / DEADLOCK verdict. Works on Claude Code, Gemini CLI, and Codex CLI — no API keys needed. Bad decisions get blocked before any code is written.
108
-
109
- **Metrics** — `veto_metrics` gives you a live usage dashboard: sessions saved, council verdict breakdown, top agents by call count, 7-day quality trend, and knowledge base stats. Zero cost, pure SQLite.
110
-
111
- **Changelog** — `veto_changelog` reads your git history since the last tag, groups commits by conventional type (feat, fix, refactor...), and returns a structured changelog ready to publish.
112
-
113
- **Git blame** — `veto_git_blame` returns contribution history for any file or directory — total commits, contributor list with counts, and last-modified metadata. Instant, local, no network.
114
-
115
- **Codebase-aware agents** — Pass `project_dir` to any tool and Veto auto-reads `package.json`, detects your tech stack, and injects recent `git diff` context. Every agent responds to your actual project.
116
-
117
- **Structured output** — Every agent result carries `confidence`, `severity`, `recommendation`, `affected_files`, and `line_refs` — composable and actionable.
118
-
119
- **Router** — Every task is scored locally (zero tokens) and sent to the right model tier. Rate limits are tracked across all platforms. The router self-adjusts from recorded outcomes and learns which agents perform best per file type.
120
-
121
- **Memory** — Sessions, decisions, knowledge, and coding patterns persist across every conversation and platform. Sessions are searchable by summary, context, tags, or project path. Tag sessions with `tags: ["auth", "migration"]` and find them later with `query: "auth"`.
122
-
123
- **Workspace discovery** — `veto_discover` scans a project once and builds a rich context map: git state, tech stack, file tree, dependencies, and key config files.
124
-
125
- **Project summarization** — `veto_summarize` generates a concise expert briefing of a project, directory, or file.
126
-
127
- **Explain anything** — `veto_explain` accepts a file path or raw text (error messages, stack traces, compiler output). Auto-routes to the right expert — file extension detection for source files, debugger agent for error-like content.
128
-
129
- **Diff review** — `veto_diff_review` runs code review, security scan, and secrets scan in parallel across a git diff. Returns a pass/warn/fail verdict ready for CI and pre-commit hooks.
130
-
131
- **File watching** — `veto_watch` monitors your project and tells you which agent to call when files change.
132
-
133
- **Sequential pipelines** — `veto_workflow` runs a chain of agents with pass/fail gates end to end.
134
-
135
- **Cross-platform handoff** — Claude hitting its rate limit? `veto_handoff` → open Gemini → `veto_continue`. Full context restored in seconds.
136
-
137
- **Plugin system** — Drop a `.js` file in `~/.veto/agents/` and it registers as a custom agent available in every tool.
138
-
139
- ---
140
-
141
- ## The 50 Agents
142
-
143
- ### Council Layer — LLM reasoning via agentic loop (8)
144
-
145
- > Real LLM reasoning, zero extra cost, works on all 3 platforms. The host AI reasons as all 7 specialists and passes structured responses back to Veto's verdict engine. Used by `veto_council_debate` and `veto_benchmark`.
146
-
147
- `Lead Developer` · `Product Manager` · `System Architect` · `UX Designer` · `Devil's Advocate` · `Legal & Compliance` · `Security` · `Decision Engine`
148
-
149
- ### Expert Modules — deterministic, instant, zero tokens (42)
30
+ ### All 62 Tools are now 100% Agentic
150
31
 
151
32
  > Pattern matching, domain heuristics, and structured templates compiled into code. Offline capable. No LLM calls.
152
33
 
@@ -170,24 +51,25 @@ All config files are home-directory relative — they apply globally across all
170
51
 
171
52
  ---
172
53
 
173
- ## MCP Tools (49)
54
+ ## MCP Tools (62)
174
55
 
175
56
  | Category | Tools |
176
57
  |---|---|
177
- | **Session** | `veto_status` · `veto_session_save` · `veto_session_restore` · `veto_sessions_list` · `veto_autosave_status` |
58
+ | **Session** | `veto_status` · `veto_session_save` · `veto_session_restore` · `veto_sessions_list` · `veto_autosave_status` · `veto_session_replay` |
178
59
  | **Router** | `veto_route_task` · `veto_rate_status` |
179
- | **Council** | `veto_council_debate` · `veto_benchmark` |
180
- | **Agents** | `veto_agent_plan` · `veto_execute_parallel` · `veto_explain` |
181
- | **Review** | `veto_code_review` · `veto_security_scan` · `veto_secrets_scan` · `veto_diff_review` |
182
- | **Pipelines** | `veto_workflow` |
60
+ | **Council** | `veto_council_debate` · `veto_benchmark` · `veto_adr` |
61
+ | **Agents** | `veto_agent_plan` · `veto_execute_parallel` · `veto_explain` · `veto_compose_agents` · `veto_delegate` |
62
+ | **Review** | `veto_code_review` · `veto_security_scan` · `veto_secrets_scan` · `veto_diff_review` · `veto_full_review` · `veto_pr_review` |
63
+ | **Pipelines** | `veto_pre_commit` · `veto_new_feature` · `veto_workflow` · `veto_task_parse` |
64
+ | **Advanced** | `veto_local_llm` · `veto_semantic_search` · `veto_sdd_agent` · `veto_playwright` · `veto_notify_ide` |
65
+ | **Quality** | `veto_clone_detector` · `veto_lint_rules` · `veto_api_contract` · `veto_a11y_advisor` · `veto_type_coverage` · `veto_test_gaps` |
183
66
  | **Watching** | `veto_watch` · `veto_watch_poll` · `veto_watch_stop` |
184
67
  | **Memory** | `veto_memory_store` · `veto_memory_search` · `veto_memory_delete` · `veto_project_map_update` · `veto_project_map_get` · `veto_pattern_store` · `veto_patterns_list` · `veto_memory_export` · `veto_memory_import` |
185
68
  | **Learning** | `veto_record_outcome` · `veto_learning_stats` · `veto_learning_apply` |
186
69
  | **Handoff** | `veto_handoff` · `veto_continue` · `veto_platform_setup` |
187
- | **Intelligence** | `veto_docs_fetch` · `veto_context_status` · `veto_task_parse` |
188
70
  | **Observability** | `veto_usage_status` · `veto_audit_log` · `veto_health` · `veto_metrics` |
189
- | **CI/CD** | `veto_ci_gate` · `veto_pr_review` |
190
- | **Discover** | `veto_discover` · `veto_summarize` · `veto_git_blame` · `veto_changelog` |
71
+ | **Discover** | `veto_discover` · `veto_summarize` · `veto_git_blame` · `veto_changelog` · `veto_onboard` · `veto_debt_register` |
72
+ | **DevTools** | `veto_docs_fetch` · `veto_context_status` · `veto_openapi_gen` · `veto_flag_auditor` · `veto_env_setup` · `veto_commit_message` · `veto_pr_description` · `veto_pr_post` · `veto_prompt_optimizer` · `veto_sre_advisor` · `veto_diagram` · `veto_rca` · `veto_translate` · `veto_merge_conflict` |
191
73
  | **Plugins** | `veto_plugins` |
192
74
 
193
75
  ## MCP Resources
@@ -339,6 +221,41 @@ veto_sessions_list { query: "auth" }
339
221
 
340
222
  ---
341
223
 
224
+ ## New in v1.4.4
225
+
226
+ ### Token count now updates from `veto_session_save`
227
+
228
+ Previously, token count and context window usage only updated when `veto_status { token_count: N }` was called. Saving a session without calling status first left the VS Code extension and autosave status showing stale or zero values.
229
+
230
+ Now `veto_session_save { token_count: N }` directly:
231
+ - Calls `trackTokens()` to update the daily rate tracker
232
+ - Upserts into the new `context_usage` table with `usage_pct` computed from the model's actual context window
233
+
234
+ ```
235
+ veto_session_save {
236
+ summary: "...",
237
+ context: "...",
238
+ token_count: 45000, ← now updates live display immediately
239
+ platform: "claude",
240
+ model: "claude-sonnet-4-6" ← resolves exact 1M window for accurate %
241
+ }
242
+ → { usage_pct: 4.5, auto_summarized: false, ... }
243
+ ```
244
+
245
+ ### `context_usage` table — live DB polling for VS Code extension
246
+
247
+ A new single-row-per-platform table in `~/.veto/veto.db` that always holds the latest known context state. Your VS Code extension can poll or watch this table directly:
248
+
249
+ ```sql
250
+ SELECT platform, model, token_count, context_window, usage_pct, updated_at
251
+ FROM context_usage
252
+ ORDER BY updated_at DESC
253
+ ```
254
+
255
+ Updated by both `veto_session_save` and `veto_status` whenever `token_count > 0` is passed. `veto_autosave_status` now includes `live_context_usage` in its response.
256
+
257
+ ---
258
+
342
259
  ## New in v1.4.3
343
260
 
344
261
  ### Council debate + session save — work on Gemini CLI and Codex CLI
@@ -24,8 +24,9 @@ export type ContinueResult = {
24
24
  message: string;
25
25
  restored_at: string;
26
26
  };
27
+ export type SetupPlatform = Platform | 'windsurf' | 'zed' | 'amazonq' | 'copilot' | 'jetbrains';
27
28
  export type PlatformSetupResult = {
28
- platform: Platform;
29
+ platform: SetupPlatform;
29
30
  mcp_config: object;
30
31
  setup_steps: string[];
31
32
  rate_limit_signals: string[];
@@ -42,5 +43,5 @@ export declare function handoff(options: {
42
43
  project_dir?: string;
43
44
  }): HandoffResult;
44
45
  export declare function continueSession(sessionId?: string, active_client?: string): ContinueResult;
45
- export declare function getPlatformSetup(platform: Platform, vetoServerPath: string): PlatformSetupResult;
46
+ export declare function getPlatformSetup(platform: SetupPlatform, vetoServerPath: string): PlatformSetupResult;
46
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAgB,MAAM,2BAA2B,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,QAAQ,CAAC;IACxB,WAAW,EAAE,QAAQ,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3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,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAIF,wBAAgB,OAAO,CAAC,OAAO,EAAE;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,aAAa,CAmChB;AAID,wBAAgB,eAAe,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,cAAc,CA2B1F;AA8CD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,GAAG,mBAAmB,CA8LrG"}
@@ -108,6 +108,111 @@ function buildContinueResult(session, now) {
108
108
  }
109
109
  // ─── Platform Setup ───────────────────────────────────────────────────────────
110
110
  export function getPlatformSetup(platform, vetoServerPath) {
111
+ const mcpEntry = { command: 'npx', args: ['-y', '--package', '@jigyasudham/veto', 'veto-server'] };
112
+ // ── Windsurf ────────────────────────────────────────────────────────────────
113
+ if (platform === 'windsurf') {
114
+ return {
115
+ platform,
116
+ mcp_config: { mcpServers: { veto: mcpEntry }, config_path: '~/.codeium/windsurf/mcp_config.json' },
117
+ setup_steps: [
118
+ '1. Run: npx @jigyasudham/veto init (auto-writes ~/.codeium/windsurf/mcp_config.json)',
119
+ '2. Fully restart Windsurf (quit and reopen)',
120
+ '3. Verify: call veto_status in Windsurf — should return { "status": "running" }',
121
+ 'Tip: Windsurf also reads ~/.codeium/windsurf/rules/veto.md written by veto init.',
122
+ ],
123
+ rate_limit_signals: ['rate limit', 'too many requests', '429', 'quota exceeded'],
124
+ continue_command: 'veto_continue',
125
+ notes: [
126
+ 'Windsurf uses mcpServers format in ~/.codeium/windsurf/mcp_config.json.',
127
+ 'Veto init writes both the config file and ~/.codeium/windsurf/rules/veto.md automatically.',
128
+ 'All veto_* tools work identically in Windsurf as in Claude Code.',
129
+ ],
130
+ };
131
+ }
132
+ // ── Zed ─────────────────────────────────────────────────────────────────────
133
+ if (platform === 'zed') {
134
+ const zedSettingsPath = process.platform === 'win32'
135
+ ? '%APPDATA%\\Zed\\settings.json'
136
+ : '~/.config/zed/settings.json';
137
+ return {
138
+ platform,
139
+ mcp_config: { context_servers: { veto: mcpEntry }, config_path: zedSettingsPath },
140
+ setup_steps: [
141
+ '1. Run: npx @jigyasudham/veto init (auto-writes context_servers entry to Zed settings.json)',
142
+ '2. Fully restart Zed',
143
+ '3. Verify: call veto_status — should return { "status": "running" }',
144
+ `Zed config path: ${zedSettingsPath}`,
145
+ ],
146
+ rate_limit_signals: ['rate limit', 'too many requests', '429', 'quota exceeded'],
147
+ continue_command: 'veto_continue',
148
+ notes: [
149
+ 'Zed uses "context_servers" (not "mcpServers") as the JSON key.',
150
+ 'veto init detects Zed automatically and writes the correct format.',
151
+ 'Zed AI features require a Pro subscription — MCP tools are only available in AI-enabled sessions.',
152
+ ],
153
+ };
154
+ }
155
+ // ── Amazon Q ────────────────────────────────────────────────────────────────
156
+ if (platform === 'amazonq') {
157
+ return {
158
+ platform,
159
+ mcp_config: {
160
+ mcpServers: { veto: mcpEntry },
161
+ global_config_path: '~/.aws/amazonq/mcp.json',
162
+ project_config_path: '.amazonq/mcp.json',
163
+ },
164
+ setup_steps: [
165
+ '1. Create ~/.aws/amazonq/mcp.json (global) or .amazonq/mcp.json (project-local):',
166
+ ' { "mcpServers": { "veto": { "command": "npx", "args": ["-y", "--package", "@jigyasudham/veto", "veto-server"] } } }',
167
+ '2. Restart Amazon Q Developer (VS Code extension or CLI)',
168
+ '3. Verify: call veto_status — should return { "status": "running" }',
169
+ 'Tip: project-local .amazonq/mcp.json takes precedence over global ~/.aws/amazonq/mcp.json.',
170
+ ],
171
+ rate_limit_signals: ['throttling', 'service quota', 'rate limit', 'too many requests', '429'],
172
+ continue_command: 'veto_continue',
173
+ notes: [
174
+ 'Amazon Q supports both global (~/.aws/amazonq/mcp.json) and project-local (.amazonq/mcp.json) configs.',
175
+ 'Amazon Q Developer requires an AWS Builder ID or IAM Identity Center account.',
176
+ 'veto init does not yet auto-configure Amazon Q — write the config file manually per the steps above.',
177
+ ],
178
+ };
179
+ }
180
+ // ── Copilot ─────────────────────────────────────────────────────────────────
181
+ if (platform === 'copilot') {
182
+ return {
183
+ platform,
184
+ mcp_config: { mcpServers: { veto: mcpEntry }, config_path: '.github/copilot/mcp.json' },
185
+ setup_steps: [
186
+ '1. Run: npx @jigyasudham/veto init (auto-writes .github/copilot/mcp.json)',
187
+ '2. Restart VS Code or your GitHub Copilot client',
188
+ '3. Verify: call veto_status — should return { "status": "running" }',
189
+ ],
190
+ rate_limit_signals: ['rate limit', 'too many requests', '429', 'quota exceeded'],
191
+ continue_command: 'veto_continue',
192
+ notes: [
193
+ 'Copilot MCP requires VS Code Insiders and the pre-release version of GitHub Copilot Chat.',
194
+ ],
195
+ };
196
+ }
197
+ // ── JetBrains ───────────────────────────────────────────────────────────────
198
+ if (platform === 'jetbrains') {
199
+ return {
200
+ platform,
201
+ mcp_config: { mcpServers: { veto: mcpEntry }, config_path: 'Settings > Tools > MCP Servers' },
202
+ setup_steps: [
203
+ '1. Open JetBrains IDE Settings > Tools > MCP Servers',
204
+ '2. Add a new server using stdio. Command: npx, Args: -y --package @jigyasudham/veto veto-server',
205
+ '3. Apply and restart the AI Assistant chat',
206
+ '4. Verify: call veto_status — should return { "status": "running" }',
207
+ ],
208
+ rate_limit_signals: ['rate limit', 'too many requests', '429', 'quota exceeded'],
209
+ continue_command: 'veto_continue',
210
+ notes: [
211
+ 'JetBrains AI supports MCP as of 2025.2 EAP.',
212
+ ],
213
+ };
214
+ }
215
+ // ── Claude / Gemini / Codex (existing platforms) ────────────────────────────
111
216
  const configs = {
112
217
  claude: {
113
218
  configPath: '~/.claude/settings.json (managed by `claude mcp add`)',
@@ -144,7 +249,6 @@ export function getPlatformSetup(platform, vetoServerPath) {
144
249
  },
145
250
  };
146
251
  const cfg = configs[platform] ?? configs['claude'];
147
- const mcpEntry = { command: 'npx', args: ['-y', '--package', '@jigyasudham/veto', 'veto-server'] };
148
252
  const claudeSteps = [
149
253
  `1. Run: claude mcp add veto -s user -- npx -y --package @jigyasudham/veto veto-server`,
150
254
  ` The -s user flag makes Veto available in ALL Claude Code windows and projects.`,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAE7E,OAAO,EAAE,aAAa,EAAgB,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAsC/E,iFAAiF;AAEjF,MAAM,UAAU,OAAO,CAAC,OAQvB;IACC,MAAM,UAAU,GAAG,aAAa,EAAE,CAAC;IACnC,MAAM,IAAI,GAAa,OAAO,CAAC,aAAa,IAAI,QAAQ,CAAC;IAEzD,0CAA0C;IAC1C,MAAM,EAAE,GAAa,OAAO,CAAC,WAAW,IAAI,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAE3E,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,UAAU;QACnD,CAAC,CAAC,GAAG,IAAI,UAAU,UAAU,CAAC,IAAI,CAAC,CAAC,YAAY,kBAAkB;QAClE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,SAAS;YACvC,CAAC,CAAC,GAAG,IAAI,UAAU,UAAU,CAAC,IAAI,CAAC,CAAC,YAAY,2BAA2B;YAC3E,CAAC,CAAC,kCAAkC,CAAC;IAEvC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,WAAW,CAAC;QAC3C,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,OAAO,CAAC,O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
+ import type { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
+ export declare function initLlmRunner(server: Server): void;
2
4
  export declare function executeOne(task: AgentTask): Promise<AgentResult>;
3
5
  export declare function executeParallel(tasks: AgentTask[]): Promise<AgentResult[]>;
4
6
  //# sourceMappingURL=executor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../src/agents/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAA0D,MAAM,YAAY,CAAC;AAiK5G,wBAAsB,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAmCtE;AAED,wBAAsB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAEhF"}
1
+ {"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../src/agents/executor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAA0D,MAAM,YAAY,CAAC;AAI5G,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAOxE,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAElD;AA+JD,wBAAsB,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CA2EtE;AAED,wBAAsB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAEhF"}