Skip to content

feat(preset): add agent preset manifests and llm session auto-titling - #219

Merged
Patel230 merged 1 commit into
mainfrom
feat/agent-presets-and-llm-title
Aug 21, 2026
Merged

feat(preset): add agent preset manifests and llm session auto-titling#219
Patel230 merged 1 commit into
mainfrom
feat/agent-presets-and-llm-title

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Summary

Port of DSH preset/agent-presets and session-title-*-llm capabilities into Hawk (closing Gap #19 and Gap #20).

  • Agent Presets (internal/preset/preset.go): Implemented Preset registry supporting scope-based discovery and hierarchy (project > user > builtin) with built-in presets (code-reviewer, security-auditor, architect, pair-programmer, debugger).
  • Manifest Loading: Supported JSON/YAML file parsing from project (.hawk/presets/) and user (~/.hawk/presets/) scopes.
  • LLM Session Auto-Titling (internal/engine/title.go): Implemented Session.GenerateTitle performing LLM-based 3–6 word session summarization based on initial user prompt and assistant reply, with deterministic JournalTitle fallback and journal event tracking (AppendSessionTitleLLMRequest, AppendSessionTitle).
  • Test Coverage: Added test suites for preset overrides, directory loading, title sanitization, and deterministic fallback.

Verification

  • go test -race ./internal/preset/... ./internal/engine/... -> PASS
  • ./scripts/check-internal-layer-imports.sh -> PASS
  • make lint -> 0 issues
  • hawk verify -> verification passed

Port of DSH preset/agent-presets and session-title-*-llm capabilities into Hawk.

- preset: Implemented Preset registry supporting scope-based hierarchy (project > user > builtin) with built-in presets (code-reviewer, security-auditor, architect, pair-programmer, debugger).
- preset: Implemented LoadFromDir for JSON/YAML preset manifests.
- engine: Implemented GenerateTitle performing LLM-based 3–6 word session summarization with JournalTitle deterministic fallback.
- tests: Added comprehensive test suites for preset overrides, directory discovery, title sanitization, and deterministic fallback.
@Patel230
Patel230 merged commit 70658d9 into main Aug 21, 2026
26 checks passed
@Patel230
Patel230 deleted the feat/agent-presets-and-llm-title branch August 21, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant