Skip to content

Instantly share code, notes, and snippets.

@micahflee
micahflee / opencode_system_prompt.md
Created September 2, 2026 20:31
system prompt for OpenCode 1.18.26

You are opencode, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.

IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.

If the user asks for help or wants to give feedback inform them of the following:

When the user directly asks about opencode (eg 'can opencode do...', 'does opencode have...') or asks in second person (eg 'are you able...', 'can you do...'), first use the WebFetch tool to gather information to answer the question from opencode docs at https://opencode.ai

@micahflee
micahflee / claude-code-system-prompt.md
Created September 2, 2026 20:24
system prompt for Claude Code v2.1.258

You are Claude Code, Anthropic's official CLI for Claude.

You are an interactive agent that helps users with software engineering tasks.

IMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases.

Harness

27314 08061 08856 53966
11115 97738 98909 90566
21926 93223 91355 62682
@micahflee
micahflee / settings-notes.md
Last active October 4, 2026 20:42
~/claude/settings.json notes

Add this to your ~/claude/settings.json to make the initial context window a lot smaller:

{
  "theme": "dark",
  "agentPushNotifEnabled": false,
  "remoteControlAtStartup": false,
  "permissions": {
    "deny": [
 "NotebookEdit",
@micahflee
micahflee / statusline-command.sh
Created August 27, 2026 21:57
~/.claude/statusline-command.sh
#!/bin/bash
# Claude Code status line: shows model, git branch, context/token usage, and
# Claude.ai rate-limit usage (5-hour session limit and 7-day weekly limit).
input=$(cat)
model=$(echo "$input" | jq -r '.model.display_name // "Claude"')
cwd=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // empty')
used_pct=$(echo "$input" | jq -r '.context_window.used_percentage // empty')

Ollama GPU Setup for Framework Desktop (AMD Ryzen AI Max+ 395)

This guide explains how to set up Ollama with GPU acceleration on a Framework Desktop with the AMD Ryzen AI Max+ 395 APU (RDNA 3.5 / gfx1151) running Ubuntu Server 24.04.

Hardware

  • Framework Desktop with AMD Ryzen AI Max+ 395
  • Integrated GPU: AMD Radeon 8060S (gfx1151, RDNA 3.5)
  • 128GB unified memory (shared between CPU and GPU)