Skip to content

feat: thread aforge harness binary path through node config - #66

Open
AbirAbbas wants to merge 1 commit into
mainfrom
aforge-harness-config
Open

feat: thread aforge harness binary path through node config#66
AbirAbbas wants to merge 1 commit into
mainfrom
aforge-harness-config

Conversation

@AbirAbbas

@AbirAbbas AbirAbbas commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds PR_AF_AFORGE_BIN (default aforge) and threads it into HarnessConfig.aforge_bin, so a node started with PR_AF_PROVIDER=aforge can point at a specific aforge binary. Companion to Agent-Field/agentfield#891 (which adds the aforge harness provider) and Agent-Field/aforge-v2#1 (which adds aforge's one-shot exec mode). PR_AF_PROVIDER=aforge itself already passes through untouched — the provider field is a plain string.

Changes Made

  • config.py: aforge_bin field on AIIntegrationConfig, sourced from PR_AF_AFORGE_BIN
  • app.py: pass aforge_bin into HarnessConfig

With SDKs that predate the aforge provider, HarnessConfig ignores the extra field (pydantic extra="ignore"), so this is inert until the SDK supports it.

Test Plan

  • ruff check src/ scripts/ clean
  • docker build gate passes
  • Config smoke: PR_AF_AFORGE_BIN=/x/aforgeAIIntegrationConfig.from_env().aforge_bin == "/x/aforge"
  • Live node smoke with the new SDK (running as part of an aforge-vs-opencode head-to-head; will report back on this PR)

🤖 Generated with Claude Code

PR_AF_AFORGE_BIN (default "aforge") now reaches HarnessConfig.aforge_bin
so a node started with PR_AF_PROVIDER=aforge can point at a specific
aforge binary. With SDKs that predate the aforge provider the extra
field is ignored, so this is inert until the SDK supports it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@AbirAbbas AbirAbbas closed this Aug 8, 2026
@AbirAbbas AbirAbbas reopened this Aug 8, 2026
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