Credentials. The exported JSONL contains raw prompts that may include tokens or personal data, so do not share or commit the output file.
Who it is forA developer or team lead who wants to see how much time goes into repeated requests before picking shortcuts.
The problemWithout a count, it is hard to tell which requests are worth turning into shortcuts.
The outcomeA list of your matching prompts, a count since a chosen date, and JSONL records you can load into your own scripts.
What you need first
- git and Python 3.9+ installed (macOS, Linux, or Windows with the PowerShell steps)
- Claude Code, Codex or Cursor installed, with existing prompt history on the machine
- A project folder you have already worked in with one of those agents
Steps
- Run
E=~/.agents/skills/faq-shortcuts/scripts/extract_asks.pyafter the clone step in the Quick start. - Run
python3 "$E" . | headto see the matching prompts in your project folder. (inferred, check the README) - Run
python3 "$E" . --since 2026-09-01 | wc -lto count prompts since a date. - Run
python3 "$E" . --format jsonlto get one JSON record per prompt with date, source and prompt fields.
Prompt for your agent
Using the cli-faq-shortcuts extractor at ~/.agents/skills/faq-shortcuts/scripts/extract_asks.py, run it on <project_path> with --format jsonl and write the records to a file. Expected output: one JSON object per line with date, source and prompt fields. Verify the file line count matches the count from the default tsv output.
Caveat. Prompts longer than 400 characters are filtered by default, so raise --max-len if your usual requests are longer.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for kishormorol/cli-faq-shortcuts and "Count and export your repeated prompts"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer