Skip to content

Instantly share code, notes, and snippets.

View praveenc's full-sized avatar
🎯
Focusing

Praveen Chamarthi praveenc

🎯
Focusing
  • United States
View GitHub Profile
@praveenc
praveenc / pi-settings.json
Created March 7, 2026 18:09
sample pi-coding-config
{
"lastChangelogVersion": "0.57.0",
"packages": [
"npm:pi-mcp-adapter",
"npm:pi-subagents"
],
"defaultProvider": "amazon-bedrock",
"defaultModel": "us.anthropic.claude-opus-4-6-v1"
}
@praveenc
praveenc / litellm_config.yaml
Created February 20, 2026 21:28
sample litellm config with Amazon Bedrock
litellm_settings:
drop_params: true
general_settings:
master_key: sk-1234
model_list:
- model_name: bedrock-claude-sonnet-4-6
litellm_params:
model: bedrock/us.anthropic.claude-sonnet-4-6
@praveenc
praveenc / start_litellm.sh
Created February 20, 2026 21:28
Start litellm proxy (local)
#!/usr/bin/env bash
set -euo pipefail
# ── Resolve script directory ──
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# ── Activate virtual environment ──
VENV_DIR="${SCRIPT_DIR}/.venv"
if [[ ! -f "${VENV_DIR}/bin/activate" ]]; then
echo "Error: virtual environment not found at ${VENV_DIR}" >&2
@praveenc
praveenc / scrape_aws_linkedpages_trafilatura.py
Created January 30, 2026 15:24
Scrapes linked AWS documentation to local dir (Supports HTML, MD, TXT) formats.
# /// script
# requires-python = ">=3.12.9"
# dependencies = [
# "loguru==0.7.3",
# "beautifulsoup4==4.12.3",
# "requests",
# "trafilatura[all]==2.0.0",
# "rich==13.9.4"
# ]
# ///
@praveenc
praveenc / json
Last active January 11, 2026 18:51
Zed editor Cobaltz theme
{
"name": "Cobaltz",
"author": "Praveen Chamarthi",
"themes": [
{
"name": "Cobaltz",
"appearance": "dark",
"style": {
"background": "#0F2438",
"syntax": {
@praveenc
praveenc / interview.md
Created December 31, 2025 18:49
Use `AskUserQuestionTool` for robust agent implementation
description argument-hint model
Interview me about the plan
plan
opus

Read this plan file $1 and interview me in detail using the AskUserQuestionTool about literally anything: technical implementation, UI & UX, concerns, tradeoffs, etc. but make sure the questions are not obvious.

@praveenc
praveenc / starship_config.toml
Last active December 13, 2025 01:25
Starship Config
"$schema" = 'https://starship.rs/config-schema.json'
#"$schema"= "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
command_timeout = 1500 # Reduce from default 500ms
add_newline = true
palette = "catppuccin_mocha"
# Replace the "❯" symbol in the prompt with "➜"
@praveenc
praveenc / ruff-lint.md
Created July 27, 2025 17:59
ruff-lint - Claude code custom command
allowed-tools description
Bash(ruff check:*), Bash(ruff format:*), Read(~/.config/ruff/ruff.toml)
Lint and format codebase using Ruff

Lint codebase using Ruff

Your goal is to lint and format the codebase using Ruff.

Do the following:

@praveenc
praveenc / bedrock_utils_v2.py
Created June 14, 2025 16:01
Python util script to invoke Amazon Bedrock using ConverseAPI. Supports Document upload, Prompt Caching, Reasoning Enabled.
import re
import time
from dataclasses import dataclass
from functools import lru_cache
from pathlib import Path
from typing import Any, ClassVar, Final, Literal
import boto3
from botocore.config import Config
from botocore.exceptions import ClientError
@praveenc
praveenc / bedrock_utils.py
Last active June 10, 2025 17:58
Python util script to invoke Amazon Bedrock using ConverseAPI. Supports Document upload, Prompt Caching, Reasoning Enabled.
# /// script
# requires-python = ">=3.12.9"
# dependencies = [
# "loguru==0.7.3",
# "boto3==1.38.32",
# "rich==14.0.0",
# ]
# ///
import time