In ~/.pi/agent/models.json, models are defined with explicit contextWindow and maxTokens fields, plus a modelOverrides block for the github-copilot provider:
"modelOverrides": {
"claude-opus-4.6": {
"contextWindow": 192000,In ~/.pi/agent/models.json, models are defined with explicit contextWindow and maxTokens fields, plus a modelOverrides block for the github-copilot provider:
"modelOverrides": {
"claude-opus-4.6": {
"contextWindow": 192000,| #!/usr/bin/env node | |
| // Minimal REST call to the Codex backend API using a local OAuth token. | |
| import fs from "fs"; | |
| import os from "os"; | |
| import path from "path"; | |
| const authFile = process.env.CODEX_AUTH_FILE || path.join(os.homedir(), ".codex", "auth.json"); | |
| const auth = JSON.parse(fs.readFileSync(authFile, "utf8")); | |
| const token = auth.access_token || auth.tokens?.access_token; |
Unified usage tracking across all AI coding assistants
Goal: Create a new @ccusage/omni package that aggregates usage data from all existing ccusage CLI tools into a single, unified view.
Supported Sources (v1): | Source | Package | Data Directory | Env Override |
| #!/bin/bash | |
| # AI CLI tools wrapper for scheduled activation of usage windows | |
| # Outputs JSON for machine-readable logs with human-friendly summaries | |
| # ============================================================================ | |
| # CONFIGURATION - Update these values for your environment | |
| # ============================================================================ | |
| # System paths | |
| USER_HOME="/home/code" |
| { | |
| "custom_models": [ | |
| { | |
| "model_display_name": "Claude Opus 4.5 Thinking Low [Proxy]", | |
| "model": "claude-opus-4-5-20251101(low)", | |
| "base_url": "http://localhost:8317", | |
| "api_key": "dummy-not-used", | |
| "provider": "anthropic" | |
| }, | |
| { |
| { | |
| "custom_models": [ | |
| { | |
| "model_display_name": "Claude Opus 4.5 [Proxy]", | |
| "model": "claude-opus-4-5-20251101", | |
| "base_url": "http://localhost:8317", | |
| "api_key": "dummy-not-used", | |
| "provider": "anthropic" | |
| }, | |
| { |
I use a bare Git repository approach with Git worktrees extensively. Every subdirectory in my projects represents a different git branch as a worktree.
When you see a project like /home/code/projects/my-app/:
my-app/ = project container (NOT a working tree)my-app/.bare/ = actual Git repository databasemy-app/.git = pointer file directing Git commands to .bare/