Quick TypeScript strict-mode edge case that catches senior devs off guard:
When checking unknown JSON payloads:
```ts
// ❌ Fails under `noPropertyAccessFromIndexSignature`:
if (typeof https://t.co/dZU4TpGUmm === "string") ...
// ✅ Bulletproof under strict compiler flags:
const record = value as Record<string, unknown>;
if (typeof record["id"] === "string") ...
```
Why?
Accessing `.id` assumes an explicit property exists.
Using indexed access `["id"]` correctly respects dynamic index signatures on generic object types without triggering TS4111.
Small detail, but keeps CI green on TS 4.8 through 5.x.
Everyone is building MCP servers right now, but most are walking security liabilities in production. 3 patterns to enforce before connecting local LLMs to your machine: 1. Fail-closed network egress: LLM tools should never have wildcard `fetch()`. Hardcode an explicit host allowlist or block external calls by default. 2. Enforce read-only at the engine level: Don't rely on LLM prompts to "only read data". Use native SQLite `PRAGMA query_only = ON;` or OS-level read-only file descriptors. 3. Zero dynamic shell execution: Never expose raw `exec(cmd)`. Replace arbitrary terminal tools with deterministic, strictly-typed schemas. Local agents are powerful because they have access to your OS. Sandboxing them isn't optional.
The biggest mistake devs make with Cursor in 2026: Dumping everything into one giant global `.cursorrules` file. Why this hurts code quality: 1. Context window bloat: Eats 2k+ tokens on every single query. 2. Rule collision: Backend DB rules polluting frontend Tailwind styling. 3. Instruction drift: LLMs ignore middle instructions in massive system prompts. The clean architecture: - Migrate to modular `.mdc` files in `.cursor/rules/`. - Restrict scope via precise `globs:` (e.g. `app/**`, `lib/db/**`). - Set `alwaysApply: false` for niche tasks (migrations, tests). Let the IDE load rules dynamically based on active file path. Context efficiency > Prompt length.
Next.js 16 catch: `params` is now a Promise in page/layout/metadata images, but `generateImageMetadata` STILL expects a plain synchronous object. Don't let your AI IDE hallucinate `.then()` on it or break TypeScript strict mode. Hardened our production Cursor .mdc rules for this exact edge case.
@rulesfile That's a solid fourth item. Long reference rules belong in Agent Requested: alwaysApply false, empty globs, and a clear description, so they only load when the agent actually needs them.
Your Cursor context window often isn't full of code. It's full of rules you didn't need this turn.
Three wastes in 2026:
1. alwaysApply: true on every rule
2. No globs, so Python rules load while you edit CSS
3. The same text twice — leftover .cursorrules plus AGENTS.md
That's context pollution. It burns tokens on every chat.
@abyss_md Agreed — that's the one I still see most often. A leftover .cursorrules file next to a newer AGENTS.md quietly doubles the same policy. One pass to pick a single source of truth usually clears a surprising amount of repeated context.
A 9:16 short from a thread does not have to start in a cloud editor.
The local path I actually use:
• Split the text into shots
• Narrate it
• Write two-line captions timed to the words
• Loop a vertical background in FFmpeg and burn the captions in
The render is local. Default speech still needs a network. No auto-posting.
Working sample is in the first reply.
I open-sourced a minimal sample: thread or Markdown in, voiceover + highlighted captions out. Grab it free here:
https://t.co/bBjq9AyOe6
The $29 pack adds the local 9:16 compositor and a preset background (November 2026 snapshot):
https://t.co/scgu7sbo2n
You already wrote the thread. The expensive part is turning it into a 30-second vertical cut every week.
Most short-form tools want $15–$29 a month to keep doing that.
A quieter path in 2026: keep the render on your own machine. You bring FFmpeg. The file stays with you. You publish it yourself.
This is not a clipping suite, and it does not auto-post.
Free working sample is in the first reply.
Free samples, November 2026:
Rules (Cursor .mdc + Windsurf + AGENTS.md):
https://t.co/YMsrWNRaEG
Local MCP starter (SQLite + allowlisted fetch):
https://t.co/dDDu2q3o0Y
Full packs and the $39 bundle are on my profile:
https://t.co/RF40HcPREe
You don't need a GPU box or a hosted agent cloud to ship a small AI tool in 2026.
The lightweight stack I actually run:
• Custom .mdc rules with globs — not a 4,000-token always-on prompt
• A local MCP server: allowlisted SQLite + a fail-closed HTTPS fetch
• Node 22.5+ built-in node:sqlite — no native binding, no hosted database
• Gumroad for checkout
No server bill for that product loop. November 2026 snapshot, official TypeScript MCP SDK 2.4.0. Not a cloud pitch.
I open-sourced a minimal working sample with official-format .mdc rules (TypeScript strict + Next.js 16 App Router). Grab it free here:
https://t.co/YMsrWNRaEG
Full 8-rule pack (incl. Tailwind CSS v4), $19 November 2026 snapshot:
https://t.co/iBtGxslWp0
The fix is scoped rules in the current official formats.
Cursor: .cursor/rules/*.mdc with description, globs, and alwaysApply: false.
Windsurf: .windsurf/rules/*.md with trigger: glob.
Pick one primary format so the same policy isn't loaded twice.
Write against today's defaults. Next.js 16 makes params, cookies(), and headers() async-only, and middleware is now proxy.ts.
Checked against official docs, November 2026. Free sample is in the first reply.
Free MCP starter, November 2026 (SQLite + fail-closed HTTPS fetch allowlist): https://t.co/dDDu2q3o0Y
The command allowlist (ls, read-only git, npm test) is in the full pack on my profile.
2026 AI agent safety: the scary failure is still an agent deleting local files.
If your MCP "terminal" tool is a raw shell, one invented command can wreck the machine.
The useful guard is a strict argv allowlist. The core check is short. A complete implementation is longer because it also jails the working directory and times out the process.
The free starter is already public. Link is in the first reply, and also on my profile.
Built against the official TypeScript MCP SDK v2, November 2026. Not an official Anthropic, Cursor, or Windsurf product.
Two more guards belong next to that check: keep paths inside a jail directory, and kill the process if it hangs.
The public November 2026 sample is a SQLite query tool plus an HTTPS fetch that fails closed until you set a host allowlist. It does not include the command allowlist.
The full TypeScript / Python pack adds ls, read-only git, and npm test, plus rate limits and an optional audit log. Neither one is a general-purpose shell.