Skip to content

Instantly share code, notes, and snippets.

View possibilities's full-sized avatar

Mike Bannister possibilities

  • AI Life
  • Portland East
  • 19:52 (UTC -05:00)
View GitHub Profile
@possibilities
possibilities / shadcn-mcp-output.txt
Created February 5, 2026 07:11
shadcn MCP - list_items_in_registries output
=== Available Tools ===
- get_project_registries
- list_items_in_registries
- search_items_in_registries
- view_items_in_registries
- get_item_examples_from_registries
- get_add_command_for_items
- get_audit_checklist
=== Calling list_items_in_registries ===
@possibilities
possibilities / shadcn-mcp-metadata.md
Created February 5, 2026 07:09
shadcn MCP Server - Tool Metadata Reference

shadcn MCP Server Metadata

Source: https://github.com/shadcn-ui/ui (packages/shadcn/src/mcp/index.ts)

Server Info

Property Value
Name shadcn
Version 1.0.0
@possibilities
possibilities / knowctl-versioning-analysis.md
Created February 4, 2026 17:39
Knowctl Versioning Analysis - Handling library API version mismatches

Knowctl Versioning: Analysis and Recommendations

The Problem

When using knowctl to get documentation for libraries like ironrdp, the docs may describe an API that doesn't match the version the user is actually using. In this case:

  • The knowctl topic likely had docs for ironrdp 0.5.x
  • The latest version is 0.14.0 (a major API rewrite)
  • Code written based on knowctl docs failed to compile with current crate versions
@possibilities
possibilities / browser-session-monitor-summary.md
Created February 4, 2026 13:56
Browser Session Monitor Implementation Summary

Browser Session Monitor Implementation Summary

Problem

The container-side idle detection (--destroy-after-idle-ms) was ineffective because the daemon maintains a persistent CDP connection with keepalives. The cdp-activity-monitor.sh watched all CDP packets via tcpdump, but the constant keepalive traffic prevented idle detection from ever triggering.

Solution

Move idle detection to the host side by:

  1. Having the wrapper script touch activity files on every invocation
@possibilities
possibilities / cli-help-duplication.md
Created February 3, 2026 18:31
CLI help text duplication report

CLI Help Text Duplication Report

Problem

After externalizing CLI help text to HELP.md files, subcommand listings appear twice in --help output:

usage: viewctl [options] ...

Gist-like file viewer for sharing code snippets.
@possibilities
possibilities / refactor-summary.md
Created February 2, 2026 19:22
Refactor: Bot Operations into internalctl Subcommands

Refactor: Bot Operations into internalctl Subcommands

Overview

This refactor decouples core task pipeline logic from the Telegram transport layer, making bot operations independently testable and enabling future transport adapters (Slack, web UI, etc.).

Architecture

Hooks (share-plan.py)

Plan: /compose:show-session-id using SessionStart hook

Summary

Use a SessionStart hook to capture the session_id and store it in the existing pane JSON state file. The slash command then reads this value directly via a bash script.

How it works

  1. SessionStart hook - When Claude starts/resumes, the hook receives session_id in its input JSON
  2. Store in pane state - The hook updates /tmp/arthack-claude/panes/{uuid}/{session}-{pane}.json to include session_id

Plan: Standardize UTF-8 encoding in knowctl

Summary

Standardize .encode() calls to .encode("utf-8") for consistency in MD5 hash calculations.

Changes

File: bin/knowctl

Lightweight macOS VM Alternatives to UTM

UTM uses QEMU under the hood which adds overhead. These alternatives use Apple's Virtualization.framework directly, making them significantly lighter.

Options

Vimy (Lightest)

The ultimate lightweight utility for running macOS VMs. Just double-click a VM and it opens using its saved settings.

Plan: Write a Haiku About Clouds

Task

Write a haiku (5-7-5 syllable structure) about clouds.

Approach

  1. Compose a three-line poem following traditional haiku structure:
    • Line 1: 5 syllables
    • Line 2: 7 syllables
  • Line 3: 5 syllables