feat: scaffold experimental aw-harness TypeScript project (engine: aw)#29783
Closed
feat: scaffold experimental aw-harness TypeScript project (engine: aw)#29783
Conversation
Implements specs/aw-harness.md as an EXPERIMENTAL engine: aw execution engine built on the Pi SDK (@mariozechner/pi-coding-agent). - Creates aw-harness/ TypeScript project with pinned deps, vitest tests, and esbuild bundler - Implements all 5 Pi extensions: provider-setup, cost-tracker, steering, repair, observability - 75 unit tests covering all modules - Adds make aw-harness, make deps-aw-harness, make lint-aw-harness targets - Links aw-harness to make build (aw-harness as build dep) and make lint - Marks as [EXPERIMENTAL] in entry point, README, step summary, and runtime stderr warning Agent-Logs-Url: https://github.com/github/gh-aw/sessions/c34f8c7a-4089-44e1-8a52-edaaa5c215a7 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Remove unused turnCostUsd variable in observability.ts - Fix cost-tracker fallback to only update when context tokens > current count - Emit warning when invalid budget config is silently ignored in loader.ts - Use instanceof Error check in index.ts main() catch handler - Add critical-message-once test in steering.test.ts - Add test verifying budget warning is emitted to stderr in loader.test.ts Agent-Logs-Url: https://github.com/github/gh-aw/sessions/c34f8c7a-4089-44e1-8a52-edaaa5c215a7 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pelikhan
May 2, 2026 15:51
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements
specs/aw-harness.mdas an EXPERIMENTALengine: awexecution engine built on the Pi SDK (@mariozechner/pi-coding-agent).Changes
New:
aw-harness/TypeScript projectA standalone TypeScript project that compiles to
aw_harness.cjs(bundled via esbuild):src/index.tsAgentSession, runs prompt, disposessrc/types.tsHarnessConfig,SharedHarnessState)src/loader.tsconfig.json+prompt.txtfrom compiler outputssrc/context.tsimports:+ prompt bodysrc/user-extensions.tsharness.extensionssrc/extensions/provider-setup.tsANTHROPIC_API_KEY,OPENAI_API_KEY,GITHUB_TOKEN)src/extensions/cost-tracker.tssrc/extensions/steering.tssrc/extensions/repair.tssrc/extensions/observability.tsTests
Makefile targets
make aw-harnessactions/setup/js/aw_harness.cjsmake deps-aw-harnessaw-harness/npm dependenciesmake lint-aw-harnessmake test-aw-harnessmake buildnow depends onaw-harness;make lintnow depends onlint-aw-harness.Experimental marking
⚠️ EXPERIMENTAL: engine: aw is experimentalaw-harness/README.mdprominently marks as experimentalsrc/index.tshas⚠️ EXPERIMENTALheader commentTesting
Notes
actions/setup/js/aw_harness.cjsis gitignored (43 MB bundle — generated bymake aw-harness)engine: awparsing/compilation is a follow-up)