Commit fea2c54
committed
Phase 4: Polish, Documentation & Built-in Workflows
Built-in guided workflows:
- gnat/agents/copilot_workflows.py: Ready-to-use investigation templates
CopilotGuidedPhishingTriage: Email phishing analysis with enrichment
Steps: gather_details → assess_impact → enrichment → correlation → draft_report
Analyst gates for impact assessment, escalation decision
CopilotGuidedIncidentResponse: Full incident response coordination
Steps: scope → impact → containment → investigation → recovery
Copilot asks clarifying questions at each major decision point
WorkflowFactory: Create/list workflows programmatically
Comprehensive Documentation:
- docs/how-to/copilot-assistant.md: User guide for TUI
Quick start (F10 Copilot, F11 Assistant)
Phase machine explanation (GATHERING → HYPOTHESIZING → TESTING → CLOSING)
Slash command reference
Safety & approvals gating
Cost tracking overview
Assistant commands with examples
- EXAMPLES_COPILOT.md: Code examples for all functionality
Basic copilot session creation and conversation flow
Hypothesis refinement with feedback
Audit trail queries and investigation summaries
Assistant enrichment, drafting, explanation, search help
Guided workflow execution (phishing triage, incident response)
Governance & review operations
Cost tracking and audit log export
Best practices and troubleshooting
CLI Interface:
- gnat/cli/copilot_cli.py: Command-line commands for copilot/assistant
copilot start <investigation_id> — Start session
copilot ask <conversation_id> <message> — Ask question
copilot next <conversation_id> — Get next step recommendation
copilot workflow <conversation_id> <workflow_type> — Run guided workflow
copilot history <conversation_id> — Show conversation
copilot audit <conversation_id> <investigation_id> — Show audit summary
assistant enrich <conversation_id> <stix_type> <stix_value> — Enrichment suggestions
assistant explain <conversation_id> <stix_type> <stix_value> — Explanation
Updated Exports:
- gnat/agents/__init__.py includes all Phase 4 classes
CopilotGuidedPhishingTriage, CopilotGuidedIncidentResponse, WorkflowFactory
Complete Implementation Summary:
- Phase 1: Foundation (conversation store, basic agents, Web API)
- Phase 2: Intelligence (prompt templates, TUI screens, hypothesis refinement)
- Phase 3: Governance (safety gates, HITL review, audit trails, cost tracking)
- Phase 4: Polish (guided workflows, documentation, CLI, examples)
Total: 8,100+ lines across 20+ files
- 4 investigation agents (Research, Parsing, Copilot, Assistant)
- Bidirectional copilot-workflow integration
- Risk-based safety model with HITL escalation
- Complete audit trail with compliance export
- Streaming + batched hybrid LLM strategy
- Multi-interface support (TUI, Web, CLI)
Ready for: Production testing, integration with existing workflows, analyst training
https://claude.ai/code/session_01FUJQyGdWpZSgYkW1Xb95gU1 parent d85c302 commit fea2c54
5 files changed
Lines changed: 1132 additions & 0 deletions
File tree
- docs/how-to
- gnat
- agents
- cli
0 commit comments