Skip to content

Instantly share code, notes, and snippets.

View caffeinum's full-sized avatar
🐶
Coffee Driven Development

Aleksey Bykhun caffeinum

🐶
Coffee Driven Development
View GitHub Profile
// use at https://gate-rinkeby.buildship.dev/deploy/...
// when contract address isnt fetched from tx properly
const verifyContract = address => {
const [,hash] = window.location.href.match(/deploy\/(\w+)/)
localStorage.deployedContracts = JSON.stringify({ ...JSON.parse(localStorage.deployedContracts), [hash]: address })
window.location.reload()
import type { KernelAccountClient, KernelSmartAccount } from "@zerodev/sdk";
import type { Account, Chain, Transport, WalletClient } from "viem";
import { getPublicClient, type SupportedChainId } from "~/utils/publicClient";
export function pretendWalletClient(
kernelAccountClient: KernelAccountClient<
"0x0000000071727De22E5E9d8BAf0edAc6f37da032",
Transport,
Chain,
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
interface IAI {
function chat(string calldata systemPrompt, string calldata message) external returns (string memory);
}
contract AIAgent {
string public constant AI_PROMPT =
"You are a business manager of this DAO treasury. "

Set up a separate git worktree to solve the issue: $ARGUMENTS.

If this is a number, fetch issue description from Github.

  1. Fetch issue info if number is provided. Use gh issue view ### --comments without specifying repo. It will use default from the dir we're currently in.

  2. Come up with a branch name from the issue description

  3. Create branch git branch "$BRANCH_NAME" main

  4. Find worktrees directory for this project in a parent directory

@caffeinum
caffeinum / README.md
Last active June 12, 2025 01:48
Put into `~/.local/bin/feature`. Export `ANTHROPIC_API_KEY` in your `.bashrc`

feature

Usage

Run once in a repo to setup worktree directory:

feature init

or manually: