From f6cc68a7d481ba30849a13de299d08275b357346 Mon Sep 17 00:00:00 2001 From: AgentSeal Date: Mon, 13 Apr 2026 17:52:27 -0700 Subject: [PATCH] support CLAUDE_CONFIG_DIR environment variable Respects CLAUDE_CONFIG_DIR if set, falls back to ~/.claude. Closes #3. --- src/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.ts b/src/parser.ts index 609e728e..d38541c9 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -18,7 +18,7 @@ import type { import { classifyTurn } from './classifier.js' function getClaudeDir(): string { - return join(homedir(), '.claude') + return process.env['CLAUDE_CONFIG_DIR'] || join(homedir(), '.claude') } function getProjectsDir(): string {