🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
security: protect workspace identity git calls
rUv043545b0797e
diff --git a/v3/@claude-flow/cli/src/services/git-workspace-identity.ts b/v3/@claude-flow/cli/src/services/git-workspace-identity.tsindex 16a40c2c38..fe3286fa99 100644--- a/v3/@claude-flow/cli/src/services/git-workspace-identity.ts+++ b/v3/@claude-flow/cli/src/services/git-workspace-identity.ts@@ -22,10 +22,10 @@* callers never need a special case.*/-import { execFileSync } from 'child_process';import { createHash } from 'crypto';import { resolve } from 'path';import * as fs from 'fs';+import { safeGitTextSync } from '@claude-flow/security/safe-git';export interface GitWorkspaceIdentity {/** Absolute root of this worktree (or the input dir when not a git repo). */@@ -44,13 +44,10 @@ const GIT_TIMEOUT_MS = 3000;function git(cwd: string, ...args: string[]): string | null {try {- return execFileSync('git', args, {- cwd,- encoding: 'utf-8',- timeout: GIT_TIMEOUT_MS,- stdio: ['ignore', 'pipe', 'ignore'],- windowsHide: true,- }).trim();+ return safeGitTextSync(cwd, args, {+ timeoutMs: GIT_TIMEOUT_MS,+ stderr: 'ignore',+ });} catch {return null;}