here you goThings I’ve made, read and saved — shared here.

Archive

9,608 entries: 53 from X, 8,925 from Pinboard, saved 1998 to 2026.

Browse by tag, site, author, folder or language

Tags

Sites

Authors

Folders

Languages

2 entries#anthropic ×

2024

Prompt Engineering

via Let the LLM Write the Prompts: An Intro to DSPy in Compound AI Pipelines

Prompt Engineering in Python | Automatic and Programmatic Prompt Optimization | Complete Course - YouTube by Maxime Rivest; Aug 2025.

--

Tools

<poml>
  <role>you are a ... </role>
  <task>describe the .. </task>
  <output-format> use a friendly tone</output-format>
  <hint>
    <document></document>
  </hint>
  <example>
    <input></input>
  </example>

notes#anthropic#chatgpt#llm#prompts

mufeedvh/code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.

github.com

You can run this tool on the entire directory and it would generate a well-formatted Markdown prompt detailing the source tree structure, and all the code. You can then upload this document to either GPT or Claude models with higher context windows and ask it to:

Rewrite the code to another language.
Find bugs/security vulnerabilities.
Document the code.
Implement new features.
You can customize the prompt template to achieve any of the desired use cases. It essentially traverses a codebase and creates a prompt with all source files combined. In short, it automates copy-pasting multiple source files into your prompt and formatting them along with letting you know how many tokens your code consumes.