Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
2012bd4
feat(task-list): explicit priority ordering and cross-list move
kamilio May 3, 2026
61b4817
docs(skill-plan): keep open questions in chat, never in the plan doc
kamilio May 3, 2026
11c0a2d
chore(plans): convert agent-human-in-loop to ralph harness doc
kamilio May 3, 2026
1207e11
docs(plans): add agent-harness, braintrust, and e2b plans
kamilio May 3, 2026
2211ba2
feat(config): add runtime config scope
kamilio May 3, 2026
c3ed350
feat(config): add runner scope
kamilio May 3, 2026
e198a00
feat(poe-code-config): add state manager registries
kamilio May 3, 2026
ac7b688
feat: add execution environment registry
kamilio May 3, 2026
82cb0a3
feat(agent-harness-tools): add workspace transfer helpers
kamilio May 3, 2026
e8e826a
feat(agent-harness-tools): add log stream helpers
kamilio May 3, 2026
3745204
feat(agent-harness-tools): add poe command runner
kamilio May 3, 2026
9633f40
feat(process-runner): add host execution env
kamilio May 3, 2026
99da17a
feat(agent-spawn): route spawns through execution harness
kamilio May 3, 2026
9cbad30
feat: route agent runs through harness execution
kamilio May 3, 2026
daff0d0
feat: add runtime overrides for agent runs
kamilio May 3, 2026
c7a86b3
feat: add docker execution env
kamilio May 4, 2026
af40a6a
feat: add runtime template commands
kamilio May 4, 2026
252ab0f
feat: add e2b runner
kamilio May 4, 2026
48e6e93
feat: add runtime job controls
kamilio May 4, 2026
1110d44
docs: update e2b runtime documentation
kamilio May 4, 2026
bdaeafc
docs: archive e2b integration plan
kamilio May 4, 2026
bc18a77
feat(runner-e2b): own the e2b auth config scope
kamilio May 4, 2026
6c05bad
fix(runner-e2b): export buildE2bRuntimeTemplate for the runtime build…
kamilio May 4, 2026
f6beafc
fix(cli): default Dockerfile installs poe-code, not @poe-code/cli
kamilio May 4, 2026
82b50f3
chore: scaffold e2b runtime for the poe-code project
kamilio May 4, 2026
d79fdaf
fix(cli): default runtime Dockerfile installs only poe-code
kamilio May 4, 2026
0093857
chore: install all coding agents in the project sandbox image
kamilio May 4, 2026
63581b4
chore: install agents via poe-code install instead of inlining commands
kamilio May 4, 2026
20fcd6a
feat(sdk): export the resolved Poe API key into process.env before spawn
kamilio May 4, 2026
0a0dcc5
chore: stop pinning runtime type in project config
kamilio May 4, 2026
3350dbe
feat(runtime): surface build log tail on e2b failures and add a spinner
kamilio May 4, 2026
362b493
fix(runtime): host runtime in build is a user error, not a no-op
kamilio May 4, 2026
76ca4c9
chore: bump e2b sandbox memory to 4096 MB for the poe-code project
kamilio May 4, 2026
34f1b65
chore: raise e2b sandbox to 8 GB / 4 vCPU for the poe-code project
kamilio May 4, 2026
4d97b02
fix: install bzip2 in the project sandbox image
kamilio May 4, 2026
4b4d513
chore: slim the project sandbox image and revert to default e2b sizing
kamilio May 4, 2026
da47533
feat(runtime): support extending an e2b base template via from_template
kamilio May 4, 2026
1362a9e
chore: switch project sandbox to extend e2b/claude-code
kamilio May 4, 2026
3e495ae
docs(agents): add 700ms spinner guideline
kamilio May 4, 2026
bc7d04a
docs(agent-script): document supported globals
kamilio May 4, 2026
6a7663a
fix(harness-tools): preserve raw runtime scope for override re-parse
kamilio May 4, 2026
017fb8f
docs(plans): add harness/approval/toolcraft planning docs
kamilio May 4, 2026
db1ef74
feat(toolcraft-schema): add runtime validation
kamilio May 4, 2026
1e6169c
feat(agent-script): parse module exports
kamilio May 4, 2026
c619bd9
feat(agent-script): parse import meta
kamilio May 4, 2026
385af05
feat(agent-script): lint module export syntax
kamilio May 4, 2026
400b80c
feat(agent-script): add runtime entry point support
kamilio May 4, 2026
646ce7e
feat(agent-script): export const initializer lookup
kamilio May 4, 2026
470995e
feat(agent-harness): add package scaffold
kamilio May 4, 2026
01c1655
feat(agent-harness): add schema module
kamilio May 4, 2026
c10d764
feat(agent-harness): resolve harness file pairs
kamilio May 4, 2026
a3760fd
feat(agent-harness): discover harness pairs
kamilio May 4, 2026
acf9f0e
feat(agent-harness): extract script schemas
kamilio May 4, 2026
368b509
feat(agent-harness): validate frontmatter
kamilio May 4, 2026
4eeb767
feat(agent-harness): run harness pairs
kamilio May 4, 2026
8c08da4
feat(agent-harness): add builtin demo templates
kamilio May 4, 2026
70202eb
feat: generate harness schemas
kamilio May 4, 2026
cf8a2ba
feat(cli): add harness command
kamilio May 4, 2026
44f4148
docs: archive agent harness plan
kamilio May 4, 2026
6712a33
feat: add braintrust integration
kamilio May 4, 2026
2bac5a1
feat(runner-e2b): support sandbox workspace directory
kamilio May 4, 2026
2b77298
fix: surface e2b command stderr failures
kamilio May 4, 2026
019e8d2
fix: configure e2b spawn agents automatically
kamilio May 4, 2026
3f10e12
fix: support e2b runtime spawn workspaces
kamilio May 4, 2026
5156edf
fix: reuse e2b runtime for ralph
kamilio May 4, 2026
6348649
feat: add runner sync runtime option
kamilio May 4, 2026
fb3459e
docs: archive e2b runtime spawn plan
kamilio May 4, 2026
b074071
feat(task-list): add gh issues open options
kamilio May 4, 2026
f5a2d32
feat(task-list): add github issues client
kamilio May 4, 2026
864d284
feat(task-list): add gh issues backend skeleton
kamilio May 4, 2026
33de9d7
feat(task-list): add GitHub issues read path
kamilio May 4, 2026
56a6971
feat(task-list): support GitHub issue mutations
kamilio May 4, 2026
b13c418
feat(task-list): support gh issue ordering operations
kamilio May 4, 2026
74b2736
feat(task-list): wire gh issues backend
kamilio May 4, 2026
d066553
docs: archive completed task-list plan
kamilio May 4, 2026
ca914f7
fix: wrap help formatter columns
kamilio May 4, 2026
ff067b2
feat(design-system): add section header text helper
kamilio May 4, 2026
49fcab4
feat(design-system): add plain help formatter
kamilio May 4, 2026
90bf5f2
fix: update toolcraft help rendering
kamilio May 4, 2026
38e02a2
fix: improve help value token rendering
kamilio May 4, 2026
8a8bcdf
fix(toolcraft): refine help rendering
kamilio May 4, 2026
07e7fd6
fix: unwrap toolcraft mcp results
kamilio May 4, 2026
920ef35
fix(toolcraft): render rich objects as yaml
kamilio May 4, 2026
f39e7d0
docs: add toolcraft help output QA
kamilio May 4, 2026
6058f06
chore(toolcraft): prepare help renderer release
kamilio May 4, 2026
af6f153
docs: mark toolcraft help task done
kamilio May 4, 2026
9d39d71
docs: archive toolcraft help plan
kamilio May 4, 2026
18be785
feat(task-list): pass markdown dir open options
kamilio May 4, 2026
2d1f3b6
feat(task-list): support single-list markdown dirs
kamilio May 4, 2026
d30936a
feat(task-list): support passthrough markdown frontmatter
kamilio May 4, 2026
5caa5f1
fix(task-list): repack prefixes after archive
kamilio May 4, 2026
349617b
feat(agent-harness-tools): add plan helpers
kamilio May 4, 2026
31a399b
fix(agent-harness-tools): export plan types separately
kamilio May 4, 2026
49f0a05
fix(pipeline): use shared plan archive flow
kamilio May 4, 2026
2570d92
fix(ralph): use shared plan discovery
kamilio May 4, 2026
3fdcd43
refactor: use shared plan discovery for experiments
kamilio May 4, 2026
8223426
refactor(superintendent): reuse shared plan discovery
kamilio May 4, 2026
11b9d0c
chore: prefix active harness plans
kamilio May 4, 2026
68411bc
docs: update zharness plan status
kamilio May 4, 2026
bac6821
feat: add pipeline dry run support
kamilio May 4, 2026
f31623c
docs: archive zharness task-list plan
kamilio May 4, 2026
39636c1
feat(task-list): add ignoreMalformed flag to markdown-dir
kamilio May 4, 2026
c4b6092
feat(agent-harness-tools): tolerate malformed plan files
kamilio May 4, 2026
d7e2108
chore(docs): drop stale lock for archived zharness plan
kamilio May 4, 2026
da7bce3
refactor(spawn): remove unconfigured-service confirmation prompt
kamilio May 4, 2026
c201022
feat(spawn): show spinner during runtime boot/sync phases
kamilio May 4, 2026
abceaac
feat: add spawn session support
kamilio May 4, 2026
40dd854
docs: drop superseded plan files
kamilio May 4, 2026
d1be5b6
fix(agent-harness-tools): use plain * for task-list workspace dep
kamilio May 4, 2026
ef7dffe
fix(bundle): skip dynamic imports in undeclared-dep check
kamilio May 4, 2026
8a3c4e2
docs: flesh out plan-browser default + reordering implementation
kamilio May 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .github/workflows/e2b-runner-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: E2B Runner Integration
on:
workflow_dispatch:
schedule:
- cron: "17 9 * * *"
jobs:
e2b-runner-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run test:integration -w @poe-code/runner-e2b
env:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
10 changes: 10 additions & 0 deletions .poe-code/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM e2b/claude-code

RUN apt-get update \
&& apt-get install -y --no-install-recommends git ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*

RUN npm i -g poe-code

RUN poe-code install codex \
&& poe-code install opencode
3 changes: 3 additions & 0 deletions .poe-code/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"ralph": {
"plan_directory": "docs/plans"
},
"runtime": {
"from_template": "e2b/claude-code"
}
}
2 changes: 2 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ However, it is imperative that all configuration can be done also via cli args

Defaults are only accepted when --yes

Any action that theoretically takes longer than 700ms, shold use spinner, use your judgement, this is a soft guideline.

### Example <agent>

`$ poe-code configure`
Expand Down
43 changes: 0 additions & 43 deletions docs/big-picture.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,191 @@
---
$schema: https://poe-platform.github.io/poe-code/schemas/plans/plan.schema.json
kind: plan
$schema: https://poe-platform.github.io/poe-code/schemas/plans/pipeline.schema.json
kind: pipeline
version: 1

tasks:
- id: scaffold-package
title: Create package scaffold
prompt: |
Create the package skeleton for `packages/agent-human-in-loop/`.
Files to create:
- `packages/agent-human-in-loop/package.json`: name `@poe-code/agent-human-in-loop`,
type `module`, exports `./dist/index.js`, types `./dist/index.d.ts`,
no runtime dependencies, devDependencies mirror `agent-mcp-config`.
- `packages/agent-human-in-loop/tsconfig.json`: extends the workspace root
tsconfig, outputs to `dist/`.
- `packages/agent-human-in-loop/src/index.ts`: empty placeholder export
so the build succeeds.
Verify: `npm run build --workspace agent-human-in-loop` and
`npm run test --workspace agent-human-in-loop` both pass with no tests.
status:
implement: open

- id: define-types
title: Define public types
prompt: |
In `packages/agent-human-in-loop/src/types.ts` define:
```ts
export interface ApprovalRequest {
message: string;
declineInputPrompt?: string;
}
export type ApprovalResult =
| { outcome: "approved" }
| { outcome: "declined"; reason?: string };
export interface HumanInLoopProvider {
readonly id: string;
requestApproval(request: ApprovalRequest): Promise<ApprovalResult>;
}
```
No runtime code, no class, no zod. Pure TypeScript interfaces only.
If no existing workspace package exports a lightweight `UserError`,
also define one here: `export class UserError extends Error {}`.
status:
implement: open

- id: mock-provider
title: Implement mock provider with tests
prompt: |
TDD: write tests first, then implement.

Test file `packages/agent-human-in-loop/src/providers/mock.test.ts`:
- value form: `mockProvider({ outcome: 'approved' })` returns the same
result on every call.
- thunk form: thunk is called once per `requestApproval` call; a counter
closure can produce a sequence.
- thunk returning a Promise resolves correctly.

Implementation `packages/agent-human-in-loop/src/providers/mock.ts`:
```ts
export function mockProvider(
answer: ApprovalResult | (() => ApprovalResult | Promise<ApprovalResult>)
): HumanInLoopProvider;
```
The provider id is `"mock"`. Types come from `../types.js`.
status:
implement: open
test: open

- id: request-approval-fn
title: Implement top-level requestApproval with tests
prompt: |
TDD: write tests first, then implement.

Test file `packages/agent-human-in-loop/src/request-approval.test.ts`
using `mockProvider` from `./providers/mock.js`:
- delegates to provider.requestApproval and returns its result verbatim.
- strips `provider` from args before calling provider.requestApproval
(the provider's own method must not receive `provider` in its argument).

Implementation `packages/agent-human-in-loop/src/request-approval.ts`:
```ts
export function requestApproval(
args: ApprovalRequest & { provider: HumanInLoopProvider }
): Promise<ApprovalResult> {
const { provider, ...request } = args;
return provider.requestApproval(request);
}
```
No branching on provider.id. Types from `./types.js`.
status:
implement: open
test: open

- id: osascript-script-helpers
title: Implement AppleScript helpers with tests
prompt: |
TDD: write tests first, then implement.

Test file `packages/agent-human-in-loop/src/providers/osascript-script.test.ts`:
- `escapeAppleScriptString`: message with `"` and `\` round-trips correctly;
backslash escaped before quote.
- `buildScript` without declineInputPrompt: emits one-line form with
`{"Decline","Approve"}` buttons and escaped message+title.
- `buildScript` with declineInputPrompt: emits two-stage AppleScript with
`APPROVED`/`DECLINED:` outputs; prompt and message both escaped.
Use snapshots for both script shapes.
- `parseStdout`:
- `"Approve\n"` → `{ outcome: "approved" }`
- `"Decline\n"` → `{ outcome: "declined" }`
- `"APPROVED\n"` → `{ outcome: "approved" }`
- `"DECLINED:because\n"` → `{ outcome: "declined", reason: "because" }`
- `"DECLINED:\n"` → `{ outcome: "declined" }` (no reason field)
- unknown string → throws UserError

Implementation `packages/agent-human-in-loop/src/providers/osascript-script.ts`:
- `escapeAppleScriptString(value: string): string` — replace `\` then `"`.
- `buildScript(request: ApprovalRequest, title: string): string`
- `parseStdout(out: string): ApprovalResult`
No shelling out anywhere in this file.
status:
implement: open
refactor: open
test: open

- id: osascript-provider
title: Implement osascript provider with tests
prompt: |
TDD: write tests first, then implement.

Test file `packages/agent-human-in-loop/src/providers/osascript.test.ts`.
Use an injected fake `binary` that records its argv and returns canned stdout.
No real osascript is invoked.

Cases:
- without declineInputPrompt: stdout `"Approve\n"` → approved; `"Decline\n"` → declined.
- with declineInputPrompt: stdout `"APPROVED\n"` → approved;
`"DECLINED:because\n"` → declined with reason; `"DECLINED:\n"` → declined no reason.
- ENOENT from execFile → UserError("osascript not found …").
- non-zero exit with unrecognized stdout → UserError with stderr content.
- empty declineInputPrompt (`""`) is treated as set; two-stage script rendered.

Implementation `packages/agent-human-in-loop/src/providers/osascript.ts`:
```ts
export interface OsascryptProviderOptions {
title?: string; // default "Approval needed"
binary?: string; // default "osascript" — test seam only
}
export function osascryptProvider(options?: OsascryptProviderOptions): HumanInLoopProvider;
```
Provider id is `"osascript"`. Uses `buildScript`/`parseStdout` from
`./osascript-script.js` and `node:child_process` execFile (promisified).
No `if (provider.id === …)` anywhere.
status:
implement: open
test: open

- id: public-exports-and-docs
title: Wire public exports, README, QA doc, and example
prompt: |
Finalize `packages/agent-human-in-loop/src/index.ts`:
```ts
export type { ApprovalRequest, ApprovalResult, HumanInLoopProvider } from "./types.js";
export { requestApproval } from "./request-approval.js";
export { osascryptProvider } from "./providers/osascript.js";
export { mockProvider } from "./providers/mock.js";
```

Write `packages/agent-human-in-loop/README.md` with sections:
Overview, API (requestApproval, osascryptProvider, mockProvider),
Providers, Env vars (explicitly: none in v1),
AppleScript-escaping note (only `"` and `\` need escaping).

Write `packages/agent-human-in-loop/QA.md` as a markdown checklist (not a script):
- approve path returns approved
- decline without prompt returns declined
- decline with prompt → reason populated; cancel on second dialog → declined no reason
- message containing quotes renders correctly
- two concurrent calls show two stacked dialogs (macOS native behavior)

Write `packages/agent-human-in-loop/example.ts` with two calls:
one simple approval, one decline-with-reason. Not part of CI.

Run `npm run test`, `npm run lint`, `npm run typecheck` from the repo root.
Verify `grep -r "provider.id ===" packages/agent-human-in-loop/src` is empty.
Verify `grep -r "execFileSync\|spawnSync" packages/agent-human-in-loop/src` is empty.
status:
implement: open
---

# agent-human-in-loop
Expand Down
Loading
Loading