@probelabs/probe 0.6.0-rc166 → 0.6.0-rc168

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -352,6 +352,45 @@ const agent = new ProbeAgent({
352
352
 
353
353
  **Note:** MCP tools are automatically initialized when needed (lazy initialization), so you don't need to call `agent.initialize()` when using the SDK.
354
354
 
355
+ ## Claude Code Integration
356
+
357
+ ProbeAgent now supports Claude Code's `claude` command for zero-configuration usage in Claude Code environments. See the [Claude Code Integration Guide](./docs/CLAUDE_CODE_INTEGRATION.md) for full details.
358
+
359
+ ### Quick Start
360
+
361
+ ```javascript
362
+ import { ProbeAgent } from '@probelabs/probe';
363
+
364
+ // Works automatically if claude command is installed!
365
+ const agent = new ProbeAgent({
366
+ allowedFolders: ['/path/to/your/code']
367
+ });
368
+
369
+ await agent.initialize();
370
+ const response = await agent.answer('Explain how this codebase works');
371
+ ```
372
+
373
+ ### Auto-Fallback
374
+
375
+ ProbeAgent automatically detects and uses Claude Code when:
376
+ - No API keys are configured (no ANTHROPIC_API_KEY, OPENAI_API_KEY, etc.)
377
+ - The `claude` command is available on your system
378
+
379
+ Priority order:
380
+ 1. Explicit `provider: 'claude-code'`
381
+ 2. API keys (Anthropic, OpenAI, Google, AWS)
382
+ 3. Claude command (auto-detected)
383
+
384
+ ### Features
385
+
386
+ - **Zero Configuration**: No API keys needed in Claude Code environments
387
+ - **Black-box Operation**: Claude Code handles its own agentic loop
388
+ - **Tool Event Extraction**: Visibility into internal tool usage
389
+ - **Built-in MCP Server**: Provides Probe's semantic search tools
390
+ - **Auto-fallback**: Seamlessly switches based on environment
391
+
392
+ For complete documentation, examples, and troubleshooting, see [docs/CLAUDE_CODE_INTEGRATION.md](./docs/CLAUDE_CODE_INTEGRATION.md).
393
+
355
394
  ## API Reference
356
395
 
357
396
  ### Search
@@ -11,6 +11,8 @@ export interface ProbeAgentOptions {
11
11
  sessionId?: string;
12
12
  /** Custom system prompt to replace the default system message */
13
13
  customPrompt?: string;
14
+ /** Alias for customPrompt. More intuitive naming for system prompts. */
15
+ systemPrompt?: string;
14
16
  /** Predefined prompt type (persona) */
15
17
  promptType?: 'code-explorer' | 'engineer' | 'code-review' | 'support' | 'architect';
16
18
  /** Allow the use of the 'implement' tool for code editing */
@@ -35,6 +37,10 @@ export interface ProbeAgentOptions {
35
37
  mcpConfig?: any;
36
38
  /** @deprecated Use mcpConfig instead */
37
39
  mcpServers?: any[];
40
+ /** List of allowed tool names. Use ['*'] for all tools (default), [] or null for no tools (raw AI mode), or specific tool names like ['search', 'query', 'extract']. Supports exclusion with '!' prefix (e.g., ['*', '!bash']). */
41
+ allowedTools?: string[] | null;
42
+ /** Convenience flag to disable all tools (equivalent to allowedTools: []). Takes precedence over allowedTools if set. */
43
+ disableTools?: boolean;
38
44
  /** Retry configuration for handling transient API failures */
39
45
  retry?: RetryOptions;
40
46
  /** Fallback configuration for multi-provider support */
@@ -227,4 +233,4 @@ export interface ProbeAgentEvents {
227
233
  }
228
234
 
229
235
  // Default export
230
- export { ProbeAgent as default };
236
+ export { ProbeAgent as default };