You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,8 @@ Viewer-only JavaScript, CSS, copy, or documentation changes still use hosted CI,
119
119
120
120
Validation effort follows the risk and accumulated blast radius. The detailed policy lives in [the tiered validation strategy](docs/validation-strategy.md).
121
121
122
+
Before running tests, the contributor MUST state the selected validation level, the changed boundary, and the planned focused commands. Level 2 MUST NOT be used as a generic confidence ritual: run it only when a trigger below applies, and name that trigger in the progress or handoff report. When Level 1 evidence is green and no escalation trigger applies, stop testing and continue development.
123
+
122
124
### Level 0: documentation and non-runtime metadata
123
125
124
126
Use Level 0 only when runtime code, package contents, workflows, schemas, and user-facing behavior are unchanged.
@@ -134,6 +136,7 @@ Examples include a pure helper extraction, a narrow Viewer renderer change, or a
134
136
135
137
- Run syntax/type checks and the smallest deterministic contract or integration smokes that cover the changed path.
136
138
- Viewer interaction changes SHOULD include the narrowest representative browser scenario.
139
+
- Prefer one direct contract plus the nearest integration boundary; do not expand to unrelated subsystem or full-profile tests without an explicit escalation trigger.
137
140
- Commit the change when focused evidence is green; do not defer focused tests until the batch ends.
138
141
- After three consecutive Level 1 code commits since the last successful full host-platform profile, run Level 2 before starting a fourth code commit or pushing the batch.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,21 @@ All notable changes to peekMyAgent are documented in this file. The project foll
5
5
6
6
## [Unreleased]
7
7
8
+
## [0.1.0-alpha.4] - 2026-07-31
9
+
10
+
### Added
11
+
12
+
-`pma observe` adds a process-local OpenAI/Anthropic capture bridge for custom Harnesses.
13
+
-`pma codebuddy` adds exact capture and native session reuse for CodeBuddy Code 2.130.0.
14
+
15
+
### Fixed
16
+
17
+
- CodeBuddy keeps provider credentials in `models.json`; translation reuses the captured model instead of Viewer credentials.
18
+
19
+
### Changed
20
+
21
+
- Validation now declares risk and focused scope before escalating to a full host profile.
22
+
8
23
## [0.1.0-alpha.3] - 2026-07-30
9
24
10
25
### Fixed
@@ -18,6 +33,7 @@ All notable changes to peekMyAgent are documented in this file. The project foll
18
33
-`pma codex` now opens Codex Desktop for the current project, exposes a waiting Source immediately, and binds that stable Source to the next new workspace thread without copying rollout history into peekMyAgent SQLite.
19
34
- Codex XML-like Harness blocks now use a conservative tag registry for runtime, capability, policy, lifecycle, internal, and subagent presentation, with multilingual block translation through the shared cache pipeline.
20
35
-`pma opencode` now starts one OpenCode CLI/TUI process behind an exact, reversible proxy overlay, preserves native session attribution, and reuses the shared Trace, tool-loop, subagent, command-injection, compaction, and same-Harness translation pipeline.
36
+
-`pma observe` now gives custom Harness authors a child-process-only OpenAI/Anthropic base-URL bridge with exact request/response capture, protocol auto-detection, redacted authentication evidence, direct Trace links, and deterministic cleanup without a Harness-specific adapter.
21
37
22
38
### Changed
23
39
@@ -50,7 +66,8 @@ All notable changes to peekMyAgent are documented in this file. The project foll
50
66
- Node.js 24 or newer is required.
51
67
- Claude Code and OpenClaw are the primary integrated Agents. Provider-specific model and reasoning options may still affect Agent behavior independently of capture fidelity.
All examples below use `pma`. The full `peekmyagent` command remains available and behaves the same.
119
119
120
+
## Observe Your Own Harness
121
+
122
+
If a custom Harness already reads an OpenAI- or Anthropic-compatible base URL from an environment variable, PMA can capture it without a Harness-specific adapter:
123
+
124
+
```bash
125
+
# OPENAI_BASE_URL should contain the real upstream URL, commonly ending in /v1.
126
+
pma observe --name my-agent --base-url-env OPENAI_BASE_URL -- my-agent run
`pma observe` reads the original URL before launch, creates a fresh exact-capture watch, and overrides only the named variable in the child process. API-key variables, authentication headers, stdin/stdout, signals, and the child exit code are preserved. The original base path is retained, so an OpenAI `/v1` URL still forwards `/responses` to `/v1/responses`. PMA prints a direct Trace link but omits all child arguments from its own startup output.
133
+
134
+
Use `--conversation-id <id>` to attach a stable non-secret test identity, or `--target-base-url <url>` when the named environment variable is intentionally unset. Upstream URLs containing credentials, query parameters, or fragments are rejected.
135
+
136
+
This generic bridge auto-detects and organizes OpenAI Responses/Chat and Anthropic Messages fields. It does not infer private Harness behavior such as permission policy, commands, compaction, or parent/child Agent relationships; those require a fixture-backed adapter. If the Harness cannot override its base URL per process, follow the [new Harness adaptation playbook](docs/new-harness-adaptation-playbook.md) instead.
137
+
120
138
## Quick Start With Claude Code
121
139
122
140
Open the dashboard:
@@ -241,6 +259,27 @@ PMA only overrides the wrapped process's `baseURL`; it does not change config, r
241
259
242
260
For `-c/--continue` and `-s/--session`, PMA resolves OpenCode's public session identity and offers to append to the matching existing recording. Press Enter to reuse it, choose option 2 for a separate recording, or use `pma --reuse opencode -c` to skip the prompt. `--fork` always starts a new recording because OpenCode creates a new session identity.
243
261
262
+
## Quick Start With CodeBuddy Code
263
+
264
+
Install CodeBuddy and provide its upstream credential in the shell. PMA deliberately does not read or copy OpenCode authentication:
265
+
266
+
```bash
267
+
npm install -g @tencent-ai/codebuddy-code
268
+
export CODEBUDDY_API_KEY='<your-provider-key>'
269
+
cd<your-project>
270
+
pma codebuddy
271
+
```
272
+
273
+
By default PMA maps CodeBuddy's main, lite, reasoning, and subagent model slots to the current OpenCode model and OpenAI-compatible endpoint. Only the wrapped CodeBuddy process receives the proxy and model environment overrides; user configuration files remain unchanged.
274
+
275
+
```bash
276
+
pma codebuddy --continue
277
+
pma --reuse codebuddy --continue
278
+
pma codebuddy --resume <session-id>
279
+
```
280
+
281
+
The current adapter is verified against CodeBuddy 2.130.0 and OpenAI Chat Completions. See the [CodeBuddy adaptation evidence](docs/codebuddy-code-adaptation-plan.md) for exact scope and limitations.
282
+
244
283
## Full-Permission Modes
245
284
246
285
These switches and settings belong to the underlying harness. PMA passes them through or uses the named isolated OpenClaw profile; it does not grant itself additional permissions.
@@ -257,6 +296,12 @@ Claude Code can bypass its permission checks for one captured process:
257
296
pma claude -c --dangerously-skip-permissions
258
297
```
259
298
299
+
CodeBuddy Code can bypass its permission checks for one captured process:
300
+
301
+
```bash
302
+
pma codebuddy --dangerously-skip-permissions
303
+
```
304
+
260
305
OpenCode can auto-approve requests that would otherwise ask:
0 commit comments