Skip to content

Instantly share code, notes, and snippets.

View prmichaelsen's full-sized avatar
🌚

Patrick Michaelsen prmichaelsen

🌚
  • 01:26 (UTC -06:00)
View GitHub Profile
@prmichaelsen
prmichaelsen / intro.md
Last active April 21, 2026 18:34
intro

I'm a Senior Software Engineer with nine years of professional experience, one year at Cisco working on agentic systems, six years at Amazon working on customer facing .com product customization features, and two years at American Express. I hold a BS in Computer Science with a focus in Software Engineering from Arizona State University, and I spent a semester on exchange at the National University of Singapore. I'm especially passionate about effective agentic code development workflows, agentic systems, automation, process improvement, UX design, frontend engineering, and open source.

Outside of work, I enjoy playing guitar, piano, and other instruments and performing at open mics. I co-produced and co-starred in a local indie film. I love spending time with my 2 year old red heeler mix, Arabella.

Looking forward to working together!


If you're interested in chatting more, I've worked on a wide array of projects with diverse requirements and I'm always happy to talk about any of them. Some projects

@prmichaelsen
prmichaelsen / .zshrc
Created April 21, 2026 16:34
.zshrc, abspath util, prompt rice
set -o vi
autoload -Uz compinit
compinit
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm use 20
@prmichaelsen
prmichaelsen / test.md
Created March 12, 2026 09:48
ingest-test.md

Ingest test code is "Me oh my, what a successful test!"

@prmichaelsen
prmichaelsen / usecase.md
Created March 11, 2026 15:40
Reddit OAuth Usecase for agentbase.me

What I'm Building

I'm building reddit-mcp — an MCP (Model Context Protocol) server that integrates Reddit API with AgentBase.me, a secure multitenant chat platform. This enables AI agents on AgentBase to interact with Reddit on behalf of authenticated users.

GitHub: https://github.com/prmichaelsen/reddit-mcp

What it does:

  • AI agents on AgentBase can browse subreddits, search Reddit, read comments
  • AI agents can post, comment, vote, save content on behalf of the authenticated user
  • AI agents can manage messages, moderate subreddits, edit wiki pages
@prmichaelsen
prmichaelsen / local.rem-background-relationships.md
Created March 2, 2026 17:09
pattern for REM memories in remember-core

REM — Relationship Engine for Memories

Concept: Background cron job that automatically discovers and creates relationships between memories using embedding similarity and LLM validation Created: 2026-03-02 Status: Design Specification


Overview

@prmichaelsen
prmichaelsen / initialize.md
Last active February 11, 2026 15:49
Agent Prompts - Reusable prompts for quick agent context loading.

Read ALL files in @agent. We are going to understand this project then work on a generic task.

Then read KEY src files per your understanding.

Then read @agent again, update stale @agent/tasks, stale documentation, and update @/agent/progress.yaml.

@prmichaelsen
prmichaelsen / yargs-completion-demo.ts
Created July 14, 2025 16:51
Demonstrates building rich completion via yargs
import yargs, { Arguments } from 'yargs';
import fs from 'fs';
export const cli = yargs(process.argv)
.scriptName('confluence-sync')
.usage('$0 <command> [options]')
.demandCommand(1, 'You need to specify a command')
.completion('completion', (current: string, argv: Arguments<any>, completionFilter, done) => {
const [_, command] = argv._;
/**

AWS Claude Sonnet 3.7 Quota Increase Request

Request Details

Use-Case Description:

We at XXXXX are building a Model Context Protocol (MCP) client that functions as an agentic AI root cause analysis bot, which will be integrated into our enterprise observability and incident management platform. This enterprise-grade product is following a phased deployment approach:

Phase 1 (Current - Development): Supporting 1-3 XXXXX developers who are actively building and testing the workflow. During this phase, our engineering team needs sufficient quota to iteratively test and refine the system's capabilities to:

  • Use Claude to analyze user intent and determine appropriate investigative actions
  • Invoke multiple MCP server tools to fetch operational data from XXXXX platforms (XXXXX)
@prmichaelsen
prmichaelsen / .vimrc
Last active March 15, 2025 21:32
Clipboard .vimrc
" https://stackoverflow.com/questions/3961859/how-to-copy-to-clipboard-in-vim
" Enable Cmd + C
vnoremap <C-c> :w !pbcopy<CR><CR> noremap <C-v>
" Enable Cmd + P
noremap <C-v> :r !pbpaste<CR><CR>
@Log4j2
public class ImageUtility {
public MultipartFile removeExifAndApplyOrientation(MultipartFile file, String mimeType) throws Exception {
final BufferedImage image = ImageIO.read(file.getInputStream());
final Path tempDir = Paths.get(System.getProperty("java.io.tmpdir"));
final Path originalFile = Files.createTempFile(tempDir, "original-image-", "");
final String originalPath = originalFile.toAbsolutePath().toString();
final ByteArrayOutputStream originalBytes = new ByteArrayOutputStream();
// jpg is lossy, and in this case when we try to write the file out,