You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sprint: Core tooling hardening and experimental promotion
8
8
9
9
---
10
10
@@ -16,17 +16,17 @@ A simple, actionable framework to prioritize and track engineering tasks. Focus
16
16
# About the Current Project
17
17
AI-DDTK (AI Driven Development ToolKit) is a central, install-once toolkit used across WordPress projects to standardize AI agent guidance, security practices, and developer workflows (e.g., WPCC scanning, runtime perf profiling, AJAX endpoint testing).
18
18
19
-
This week’s focus is adding passwordless Playwright auth for WP admin (`pw-auth`) to enable AI agents to drive headless browser automation without hardcoded credentials.
19
+
This week’s focus is shipping core tooling improvements (.wpcignore, servers-audit promotion) and reducing the gap between experimental tooling and mainline.
20
20
21
21
---
22
22
23
23
## 1. Strategic Backlog
24
24
**Maximum of 4 items. Focus on long-term goals and impactful improvements.**
25
25
26
-
1.-[] Ship native `.wpcignore` support in WPCC (reduce recursive scans; unblock repo-wide scanning)
26
+
1.-[x] Ship native `.wpcignore` support in WPCC (reduce recursive scans; unblock repo-wide scanning)
27
27
2.-[x] Weekly UX audit now automated via CI ([recipe](recipes/weekly-ux-audit.md)) — version drift, doc parity, and link checks run every Monday; failures create GitHub issues
28
28
3.-[ ] Prove the experimental crash-loop workflow on 2-3 projects before promoting it beyond `experimental/`
**Capture insights to improve processes and avoid repeating mistakes.**
56
57
57
-
1. Externalizing embedded helper scripts (e.g., from bash into separate `.js` files) is a low-risk, high-reward first step in a larger refactor. It immediately improves syntax highlighting, linting, and code isolation without changing the core logic.
58
-
2. Unit tests that mock shell execution are good for verifying a script's *interface* (arguments, output), but they don't confirm the script's *functionality*. End-to-end testing, even via a simple manual `doctor` command, is necessary to ensure the refactored script still works.
59
-
3. A well-built `doctor` command in a CLI tool is an invaluable asset for both development and testing, providing a quick way to verify environment-dependent functionality.
60
-
4. Never use `eval` with user-controlled strings in shell scripts — bash arrays with `"${arr[@]}"` invocation are safer and just as flexible.
61
-
5.`.mjs` files run as ESM — `require()` is CJS-only. Use `.js` extension for scripts that need `require()`.
58
+
1. Dropping the `[Unreleased]` CHANGELOG section eliminated friction without losing signal — at current velocity, versioned blocks on commit are more useful than a batched unreleased bucket.
59
+
2. Experimental scripts that receive 4+ consecutive hardening commits are no longer experimental — promote them to reduce confusion about maturity.
60
+
3. The VS Code extension's real value is zero-config workspace onboarding (MCP server auto-discovery), not wrapping terminal commands with UI chrome.
61
+
4.`.wpcignore` should have shipped much earlier — the placeholder file existed but was never wired in, leaving WPCC unable to do repo-wide scans without false positives from `tools/`, `temp/`, etc.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
19
19
-**Native `.wpcignore` support in WPCC** — `check-performance.sh` now loads gitignore-style patterns from a `.wpcignore` file and filters the PHP file list before scanning. Auto-detects `.wpcignore` in the scan target directory or current working directory. Supports directory patterns (`tools/`), extension globs (`*.min.js`), and literal substring matches. New flags: `--wpcignore-file <path>` for explicit file, `--no-wpcignore` to disable. Unblocks repo-wide scanning without false positives from embedded tools, temp files, and vendor directories.
20
20
-**VS Code extension dynamic MCP discovery (v0.2.0)** — the extension's MCP server definition provider now merges configs from 5 layers (static AI-DDTK fallback, workspace `.mcp.json`, `.vscode/mcp.json`, `.mcp.local.json`, `temp/mcp/local-snippets/*.json`) with file watchers for live re-discovery. Site-specific WP MCP Adapter servers are automatically provided to all VS Code MCP clients without manual wiring or restart.
21
21
-**`experimental/end-of-day.sh` — solo developer session cleanup script** — automated script for end-of-work synchronization. Checks 4X4.md, CHANGELOG.md, and MEMORY.md freshness; archives session-scoped MEMORY.md to `PROJECT/1-INBOX/MEMORY-<timestamp>.md` for clean sessions. Supports `--commit` (with confirmation), `--push` (implies commit, with confirmation), `--force` (skip prompts for automation), `--dry-run`, and agent hook integration for orchestration. Default mode reports findings only; opt-in flags enable commit/push. Includes build validation (PHP syntax check) and structured event emission for agent coordination.
22
+
-**MCP tool: `end_of_day_session_cleanup`** — expose end-of-day.sh as a typed MCP tool (v0.9.0). Agents can call `end_of_day_session_cleanup` with `mode` (report/commit/push), `dryRun`, `force`, `skipValidation` flags. Returns structured check results (4X4.md, CHANGELOG.md, MEMORY.md, build validation), git state (branch, modified files, untracked), and command exit code. Enables VS Code agents to orchestrate session cleanup without shell escaping.
22
23
23
24
### Changed
24
25
-**`servers-audit.sh` and `servers-preflight.sh` promoted to `tools/`** — moved from `experimental/` to `tools/` alongside `servers.md` template. These scripts have received 4+ consecutive hardening releases (Launchd plist parsing, KeepAlive detection, expanded TLD coverage, Valet site discovery) and are no longer experimental. Internal path references (`$SCRIPT_DIR`) are relative and required no changes. CLI-REFERENCE.md updated with new sections for both scripts.
**Purpose:** Capture a baseline snapshot of your local development environment — running services, ports, hostnames, DNS config, and Launchd service states — for diffing when things break.
Writes machine-readable artifacts under `temp/servers-audit/<run-id>/`.
651
+
652
+
---
653
+
654
+
## servers-preflight.sh
655
+
656
+
**Purpose:** Interactive pre-check for adding new local development domains — validates that hostnames, ports, and DNS entries won't conflict with existing Local WP sites, Valet links, or Homebrew services.
Copy file name to clipboardExpand all lines: tools/mcp-server/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# AI-DDTK MCP Server
2
2
3
-
> Version: 0.7.0
3
+
> Version: 0.9.0
4
4
5
-
Unified MCP server for AI-DDTK. Exposes LocalWP, WPCC, `pw-auth`, `wp-ajax-test`, tmux, and Query Monitor workflows as typed **Tools**, **Resources**, and **Prompts** — compatible with Claude Code, GitHub Copilot, Cline, Augment Code, Cursor, Claude Desktop, and any MCP-capable client.
5
+
Unified MCP server for AI-DDTK. Exposes LocalWP, WPCC, `pw-auth`, `wp-ajax-test`, tmux, Query Monitor, and end-of-day session cleanup workflows as typed **Tools**, **Resources**, and **Prompts** — compatible with Claude Code, GitHub Copilot, Cline, Augment Code, Cursor, Claude Desktop, and any MCP-capable client.
6
6
7
7
## Quick Start
8
8
@@ -55,6 +55,7 @@ npm run mcp:http
55
55
| AJAX |`wp_ajax_test`| Test `admin-ajax.php` endpoints with structured inputs |
56
56
| tmux |`tmux_start`, `tmux_send`, `tmux_capture`, `tmux_stop`, `tmux_list`, `tmux_status`| Run resilient long-lived commands and inspect output |
| Session cleanup |`end_of_day_session_cleanup`| Automated solo dev session cleanup: sync 4X4.md/CHANGELOG.md/MEMORY.md, optionally commit and push with confirmation |
0 commit comments