feat(ultraplan-local): v1.6.0 — /ultraresearch-local deep research command
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>
This commit is contained in:
commit
caee558e79
152 changed files with 17734 additions and 0 deletions
57
hooks/scripts/session-start.mjs
Normal file
57
hooks/scripts/session-start.mjs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
#!/usr/bin/env node
|
||||
// Check for active (incomplete) config-audit sessions on session start
|
||||
// Non-blocking: always exits 0
|
||||
|
||||
import { readdirSync, readFileSync, existsSync } from 'fs';
|
||||
import { join, basename } from 'path';
|
||||
import { homedir } from 'os';
|
||||
|
||||
const sessionsDir = join(homedir(), '.config-audit', 'sessions');
|
||||
|
||||
if (!existsSync(sessionsDir)) {
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
function parseYamlValue(content, key) {
|
||||
const match = content.match(new RegExp(`${key}:\\s*"?([^"\\n]*)"?`));
|
||||
return match ? match[1].trim() : '';
|
||||
}
|
||||
|
||||
const activeSessions = [];
|
||||
|
||||
try {
|
||||
const entries = readdirSync(sessionsDir, { withFileTypes: true });
|
||||
|
||||
for (const entry of entries) {
|
||||
if (!entry.isDirectory()) continue;
|
||||
|
||||
const stateFile = join(sessionsDir, entry.name, 'state.yaml');
|
||||
if (!existsSync(stateFile)) continue;
|
||||
|
||||
const content = readFileSync(stateFile, 'utf-8');
|
||||
const currentPhase = parseYamlValue(content, 'current_phase');
|
||||
|
||||
if (currentPhase && currentPhase !== 'verify' && currentPhase !== 'complete') {
|
||||
const nextPhase = parseYamlValue(content, 'next_phase');
|
||||
activeSessions.push({
|
||||
id: entry.name,
|
||||
phase: currentPhase,
|
||||
next: nextPhase,
|
||||
});
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
if (activeSessions.length > 0) {
|
||||
console.log(`config-audit: ${activeSessions.length} active session(s) found:`);
|
||||
let lastNext = '';
|
||||
for (const s of activeSessions) {
|
||||
console.log(` - Session ${s.id}: phase=${s.phase}, next=${s.next}`);
|
||||
lastNext = s.next;
|
||||
}
|
||||
console.log(` Resume with: /config-audit ${lastNext}`);
|
||||
}
|
||||
|
||||
process.exit(0);
|
||||
Loading…
Add table
Add a link
Reference in a new issue