Skip to content

Commit 401d45d

Browse files
authored
fix: introduce SupportsNativeAgentFile capability; move Claude agent-file injection to compiler (#25589)
1 parent f4b234c commit 401d45d

8 files changed

Lines changed: 183 additions & 83 deletions

.github/workflows/design-decision-gate.lock.yml

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/hourly-ci-cleaner.lock.yml

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/workflow/agentic_engine.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,13 @@ type CapabilityProvider interface {
116116
// SupportsMaxContinuations returns true if this engine supports the max-continuations feature
117117
// When true, max-continuations > 1 enables autopilot/multi-run mode for the engine
118118
SupportsMaxContinuations() bool
119+
120+
// SupportsNativeAgentFile returns true if this engine handles agent-file imports natively
121+
// in its own execution steps (reading the file, stripping frontmatter, and prepending the
122+
// content to the prompt at runtime). When false, the compiler is responsible for including
123+
// the agent file content in prompt.txt during the activation job so that the engine just
124+
// reads the standard /tmp/gh-aw/aw-prompts/prompt.txt as usual.
125+
SupportsNativeAgentFile() bool
119126
}
120127

121128
// WorkflowExecutor handles workflow compilation and execution
@@ -260,6 +267,7 @@ type BaseEngine struct {
260267
supportsMaxTurns bool
261268
supportsMaxContinuations bool
262269
supportsWebSearch bool
270+
supportsNativeAgentFile bool
263271
llmGatewayPort int
264272
}
265273

@@ -295,6 +303,10 @@ func (e *BaseEngine) SupportsMaxContinuations() bool {
295303
return e.supportsMaxContinuations
296304
}
297305

306+
func (e *BaseEngine) SupportsNativeAgentFile() bool {
307+
return e.supportsNativeAgentFile
308+
}
309+
298310
func (e *BaseEngine) getLLMGatewayPort() int {
299311
return e.llmGatewayPort
300312
}

0 commit comments

Comments
 (0)