惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
MongoDB | Blog
MongoDB | Blog
A
About on SuperTechFans
M
MIT News - Artificial intelligence
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
P
Proofpoint News Feed
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
VS Code extension that compiles structured prompts — no A...
Ali Malik · 2026-05-05 · via DEV Community
Cover image for VS Code extension that compiles structured prompts — no AI calls, no API keys

Ali Malik

What I Built

Pup is a VS Code extension that treats your prompt like source code — you fill a form, it compiles to whatever format your model prefers.

Pup builder view

The insight behind it: LLMs aren't all trained the same way, and the format of your prompt actually matters.

Model Preferred Format
Claude (Anthropic) XML tags
GPT-4 / GPT-5 (OpenAI) Markdown or JSON
Gemini (Google) Markdown or structured JSON
Cursor / Copilot Chat Markdown

Pup compiles the same prompt into all four. One toggle. No rewriting.


How It Works

  1. Open the builderCmd/Ctrl+Shift+PPup: Open Builder
  2. Pick a preset — Bug Fix, New Feature, Refactor, Code Review, Research, Agentic Task, or Custom
  3. Fill the sections — Role, Context, Task, Constraints, Output Format
  4. Type @ inside any field to fuzzy-search and reference workspace files
  5. Copy or save — export as Markdown, XML, JSON, or plain text

Saved prompts live in .prompts/ as .md files with embedded frontmatter. Right-click → Open Selected .md as Prompt to pick up exactly where you left off.


A Few Details Worth Knowing

Live token counter. A char/word-blended estimator (±10–15%) shows context window usage in real time as you type — no per-model tokenizer required. Switch your target model and the usage bar updates.

Minimize hallucination toggle. Appends an <investigate_before_answering> directive that forces the model to read referenced files before responding. Surprisingly effective.

Caveman mode. Appends a directive that strips filler from the model's reply — roughly 75% fewer output tokens. Great for high-volume iteration.

Zero outbound requests. No API calls inside the extension. No accounts. No telemetry. Your prompts never leave your machine.

Remote-ready. Works in Remote-SSH, Codespaces, dev containers, and virtual workspaces.


Install

# VS Code
code --install-extension alimalik.pup

# Cursor
cursor --install-extension alimalik.pup

Enter fullscreen mode Exit fullscreen mode

Or search Pup in the Extensions panel (Cmd/Ctrl+Shift+X).

Marketplace listing


What I'm Looking For

This started as a personal workflow fix. I'm shipping it publicly because if I had this problem, others probably do too.

Feedback I'm specifically curious about:

  • Which output formats do you actually reach for?
  • What role presets are missing from your workflow?
  • Edge cases in the token estimator you've hit?

Source is on GitHub. PRs are welcome — new presets especially.


If it saves you time, a ⭐ on the repo helps others find it.


✨ Why Pup?

LLMs respond better to structured prompts — role, context, task, constraints, output format. Most developers freestyle into a chat window, get mediocre output, then iterate forever.

Pup is a form-based prompt compiler. Fill out sections → Pup compiles them into Markdown / JSON / XML / plain text. Save once, reuse forever. No accounts. No telemetry. No AI calls inside the extension.

Important

Zero outbound requests. Zero API keys. Zero telemetry. Your prompts never leave your machine. Pup is a pure compiler — your prompt, your model, your editor.


🎯 Why Format Matters

Different model vendors are trained against different prompt structures. Matching the format their training data used measurably improves output quality…