Skip to content

Instantly share code, notes, and snippets.

@sshh12
sshh12 / cursor-agent-system-prompt.txt
Last active March 18, 2025 05:43
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@adammyhre
adammyhre / AnimationSystem.cs
Last active March 18, 2025 05:39
Simple Wrapper for Unity Playables API
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Animations;
using UnityEngine.Playables;
using MEC; // Uses More Effective Coroutines from the Unity Asset Store
public class AnimationSystem {
PlayableGraph playableGraph;
readonly AnimationMixerPlayable topLevelMixer;
@jlia0
jlia0 / agent loop
Last active March 18, 2025 05:38
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@Madhav-MKNC
Madhav-MKNC / .py
Created March 16, 2025 20:41
All the code you need to create a powerful agent that can create and edit any file on your computer using the new text_editor tool in the Anthropic API.
import anthropic
import os
import sys
from termcolor import colored
from dotenv import load_dotenv
class ClaudeAgent:
def __init__(self, api_key=None, model="claude-3-7-sonnet-20250219", max_tokens=4000):
"""Initialize the Claude agent with API key and model."""
@ThiagoMarques
ThiagoMarques / webpack.config.js
Created October 30, 2022 19:08
Webpack em create-react-app
// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
@elliotnash
elliotnash / theme-provider.tsx
Created October 6, 2024 00:25
Tanstack Start theme provider
'use client';
/*
This file is adapted from next-themes to work with tanstack start.
next-themes can be found at https://github.com/pacocoursey/next-themes under the MIT license.
*/
import * as React from 'react';
import { script } from './theme-script';
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active March 18, 2025 05:31
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@Khelechy
Khelechy / AndroidRenderer.cs
Created January 4, 2021 13:56
Android EntryRenderer
public CustomEntryRenderer(Context context) : base(context)
{
}
public override bool DispatchKeyEvent(KeyEvent e)
{
if (e.Action == KeyEventActions.Down)
{
if (e.KeyCode == Keycode.Del)
{
@lincuan
lincuan / ds_model_conversion.py
Created March 18, 2025 05:08
convert_fp8_to_mlx.py
import os
import subprocess
import sys
import shutil
import logging
from pathlib import Path
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
import mlx.core as mx