Add /ultraresearch-local for structured research combining local codebase analysis with external knowledge via parallel agent swarms. Produces research briefs with triangulation, confidence ratings, and source quality assessment. New command: /ultraresearch-local with modes --quick, --local, --external, --fg. New agents: research-orchestrator (opus), docs-researcher, community-researcher, security-researcher, contrarian-researcher, gemini-bridge (all sonnet). New template: research-brief-template.md. Integration: --research flag in /ultraplan-local accepts pre-built research briefs (up to 3), enriches the interview and exploration phases. Planning orchestrator cross-references brief findings during synthesis. Design principle: Context Engineering — right information to right agent at right time. Research briefs are structured artifacts in the pipeline: ultraresearch → brief → ultraplan --research → plan → ultraexecute. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
595 B
JavaScript
13 lines
595 B
JavaScript
#!/usr/bin/env node
|
|
// pre-write-pathguard.mjs — Block writes to sensitive paths
|
|
import { readFileSync } from 'node:fs';
|
|
const input = JSON.parse(readFileSync('/dev/stdin', 'utf-8'));
|
|
const filePath = input.tool_input?.file_path || '';
|
|
const BLOCKED = ['.env', '.ssh', '.aws', 'credentials', '.key', '.pem', 'hooks/scripts/'];
|
|
for (const pattern of BLOCKED) {
|
|
if (filePath.includes(pattern)) {
|
|
process.stdout.write(JSON.stringify({ decision: 'block', reason: 'Write to ' + pattern + ' blocked' }));
|
|
process.exit(0);
|
|
}
|
|
}
|
|
process.stdout.write(JSON.stringify({ decision: 'allow' }));
|