Skip to content

Instantly share code, notes, and snippets.

View fcoury's full-sized avatar

Felipe Coury fcoury

View GitHub Profile
@fcoury
fcoury / agent.md
Created October 17, 2025 13:08 — forked from steipete/agent.md
Agent rules for git
  • Delete unused or obsolete files when your changes make them irrelevant (refactors, feature removals, etc.), and revert files only when the change is yours or explicitly requested. If a git operation leaves you unsure about other agents' in-flight work, stop and coordinate instead of deleting.
  • Before attempting to delete a file to resolve a local type/lint failure, stop and ask the user. Other agents are often editing adjacent files; deleting their work to silence an error is never acceptable without explicit approval.
  • NEVER edit .env or any environment variable files—only the user may change them.
  • Coordinate with other agents before removing their in-progress edits—don't revert or delete work you didn't author unless everyone agrees.
  • Moving/renaming and restoring files is allowed.
  • ABSOLUTELY NEVER run destructive git operations (e.g., git reset --hard, rm, git checkout/git restore to an older commit) unless the user gives an explicit, written instruction in this conversation. Treat t
@fcoury
fcoury / worktrees.fish
Last active September 5, 2025 15:04
Manage Worktrees
# Git Worktree Creation Function
function wk --description "Create a git worktree with format <current_dir>-<branch_name>"
# Check if we're in a git repository
if not git rev-parse --git-dir >/dev/null 2>&1
echo "Error: Not in a git repository"
return 1
end
set existing_only false
set branch_name ""
function codex_continue
# Find the most recently modified JSONL file in ~/.codex/sessions (recursively)
set latest (find ~/.codex/sessions -type f -name '*.jsonl' -print0 2>/dev/null | xargs -0 ls -t 2>/dev/null | head -n 1)
if test -z "$latest"
echo "No session files found in ~/.codex/sessions"
return 1
end
echo "Resuming from: $latest"
@fcoury
fcoury / spec.md
Created August 19, 2025 19:40 — forked from CypherpunkSamurai/spec.md
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.

=== Full Backtrace ===
#0 0x0000563016f63c87 in v8::internal::MarkingBarrier::MarkValueLocal(v8::internal::Tagged<v8::internal::HeapObject>) () at ../../../../v8/src/heap/marking-barrier-inl.h:98
#1 0x0000563016f633df in void v8::internal::MarkingBarrier::Write<v8::internal::FullHeapObjectSlot>(v8::internal::Tagged<v8::internal::HeapObject>, v8::internal::FullHeapObjectSlot, v8::internal::Tagged<v8::internal::HeapObject>) () at ../../../../v8/src/heap/marking-barrier-inl.h:25
#2 0x000056301720e5f6 in v8::internal::Dictionary<v8::internal::NameDictionary, v8::internal::NameDictionaryShape>::SetEntry(v8::internal::InternalIndex, v8::internal::Tagged<v8::internal::Object>, v8::internal::Tagged<v8::internal::Object>, v8::internal::PropertyDetails) () at ../../../../v8/src/objects/dictionary-inl.h:202
#3 0x000056301720e825 in v8::internal::Handle<v8::internal::NameDictionary> v8::internal::Dictionary<v8::internal::NameDictionary, v8::internal::NameDictionaryShape>::Add<v8::internal::Isolate, (v8::internal::All

Here's JavaScript code that will definitely trigger OOM in your deno_core setup:

Memory Bomb - Large Array Allocation

// This will quickly consume memory by creating large arrays
const arrays = [];
let counter = 0;

while (true) {
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: VibeTunnel [94882]
Path: /Applications/VibeTunnel.app/Contents/MacOS/VibeTunnel
Identifier: sh.vibetunnel.vibetunnel
Version: 1.0.0-beta.4 (109)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]

Building Your Own MCP Server for Claude Code

This guide will walk you through creating a custom MCP (Model Context Protocol) server that integrates with Claude Code, allowing you to extend Claude's capabilities with external tools, APIs, or even other AI models.

What is MCP?

MCP (Model Context Protocol) is a protocol that allows Claude to communicate with external servers to access tools and capabilities beyond its built-in features. Think of it as a plugin system for Claude.

Prerequisites

@fcoury
fcoury / etc-nixos
Created January 12, 2024 16:22 — forked from p-alik/etc-nixos
NixOS config on Dell XPS 13 Plus 9320
# /etc/nixos/configuration.nix
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
@fcoury
fcoury / xps_9320.nix
Created January 12, 2024 04:19 — forked from notgne2/xps_9320.nix
It Just Works ™️
{
config,
pkgs,
lib,
inputs,
...
}: let
ipu6-camera-bin = with pkgs;
stdenv.mkDerivation rec {
pname = "ipu6-camera-bin";