Skip to content

Instantly share code, notes, and snippets.

View galanggg's full-sized avatar
👋
Hi there

Galanggg galanggg

👋
Hi there
View GitHub Profile
@galanggg
galanggg / claude-code-token-saving-guide.md
Created September 23, 2025 14:02 — forked from artemgetmann/claude-code-token-saving-guide.md
Practical workflow for reducing token usage in Claude Code while preserving session continuity. Includes compacting strategies, CLAUDE.md structure, modular context management, and prompt engineering tips.

🧠 How to Save Context Tokens When Using Claude Code

This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).


✅ Setup: Populate CLAUDE.md

Claude loads CLAUDE.md automatically at session start.

@galanggg
galanggg / *claude.md
Created June 16, 2025 06:12 — forked from ruvnet/*claude.md
The Claude-SPARC Automated Development System is a comprehensive, agentic workflow for automated software development using the SPARC methodology with the Claude Code CLI

Claude-SPARC Automated Development System For Claude Code

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

The SPARC Automated Development System (claude-sparc.sh) is a comprehensive, agentic workflow for automated software development using the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion). This system leverages Claude Code's built-in tools for parallel task orchestration, comprehensive research, and Test-Driven Development.

Features

@galanggg
galanggg / roo_workflow.md
Created June 16, 2025 06:07 — forked from livecodelife/roo_workflow.md
Roo Code Setup and Workflow for the best $0 development

Roo Code Workflow: An Advanced LLM-Powered Development Setup

This gist outlines a highly effective and cost-optimized workflow for software development using Roo Code, leveraging a multi-model approach and a custom "Think" mode for enhanced reasoning and token efficiency. This setup has been successfully used to build complex applications, such as Baccarat game simulations with betting strategy analysis.


Core Components & Model Allocation

The power of this setup lies in strategically assigning different Large Language Models (LLMs) to specialized "modes" within Roo Code, optimizing for performance, cost, and specific task requirements.

@galanggg
galanggg / docker-compose.yml
Created April 16, 2025 04:57
litellm setup
version: "3.9"
services:
litellm:
build:
context: .
args:
target: runtime
image: ghcr.io/berriai/litellm:main-stable
ports:
- "4000:4000"
@galanggg
galanggg / cursor-agent-system-prompt.txt
Created March 18, 2025 07:05 — forked from sshh12/cursor-agent-system-prompt.txt
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.
{
"public_identifier": "galang-kerta",
"profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/galang-kerta/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20241218%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20241218T015540Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=765650a9306990409a7df028385dceb2d7d0f011040d7609de7216dc9a80d2ec",
"background_cover_image_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/galang-kerta/cover?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20241218%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20241218T015540Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=446b4b53b986b51e0065f8aa0f1652fb468b50695a40ec93316fea7ec449d19e",
"first_name": "Galang",
"last_name": "Kerta",
"full_name": "Galang Kerta",
"follower_count": 545,
"occupation": "Software Engineer Frontend at Chronicle",
"headline": "Software Engineer",
@galanggg
galanggg / index.html
Created October 20, 2024 05:36
Resize Observer Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Frontend System Design Fundamentals</title>
<style>
* {
box-sizing: border-box;
}
body {
@galanggg
galanggg / index.html
Created October 20, 2024 03:09
Mutation Observer Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Frontend System Design Fundamentals</title>
<link rel="stylesheet" href="../../styles/index.css">
<template id="card_template">
<article class="card">
<h3 class="card__title"></h3>
<div class="card__body">
@galanggg
galanggg / index.html
Created October 19, 2024 01:54
Intersection Observer API with Document Fragment
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Frontend System Design Fundamentals</title>
<link rel="stylesheet" href="../../styles/index.css">
<template id="card_template">
<article class="card">
<h3 class="card__title"></h3>
<div class="card__body">
@galanggg
galanggg / function-composition.ts
Created June 7, 2024 05:50
Function Composition demo
//define type for increment function
type Increment = (x: number) => number
const increment: Increment = x => x + 1
//define type for toString function
type Tostring = (x: number) => string
const toString: Tostring = x => `"${x}"`