Add Goose agent mode#606
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Deploying maple with
|
| Latest commit: |
daeb20e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1085a443.maple-ca8.pages.dev |
| Branch Preview URL: | https://codex-goose-maple.maple-ca8.pages.dev |
|
Follow-up refactor pushed. What changed:
Validation:
Notes for Goose team discussion:
|
|
Pushed a CI fix for the frozen Bun lockfile failure. Cause: after removing Fix: regenerated Validation:
|
|
Follow-up pushed in d75780e to keep Goose desktop-only across CI and frontend surfaces. What changed:
Validation:
|
|
Follow-up pushed in
Useful local logs on macOS while testing: tail -n 200 ~/.config/maple/agent/logs/goose-embedded.log
ls -lt ~/Library/Logs/cloud.opensecret.maple
tail -n 200 ~/Library/Logs/cloud.opensecret.maple/*.log
cat ~/.config/maple/agent/config.json
cat ~/.config/maple/proxy_config.json # contains local API key; don't paste publiclyValidated locally: cd frontend && nix develop -c bun run typecheck
cd frontend && nix develop -c bun run format:check
cd frontend && nix develop -c bun run lint # 13 existing warnings, 0 errors
nix develop -c cargo fmt --manifest-path frontend/src-tauri/Cargo.toml --check
nix develop -c cargo check --manifest-path frontend/src-tauri/Cargo.toml --locked
git diff --check |
|
Follow-up pushed in
For debugging the underlying Goose/tool issue locally, useful commands on macOS: tail -n 200 ~/.config/maple/agent/logs/goose-embedded.log
ls -lt ~/.config/maple/agent/sessions
LATEST_SESSION="$(ls -t ~/.config/maple/agent/sessions/*.jsonl | head -1)"
echo "$LATEST_SESSION"
tail -n 200 "$LATEST_SESSION"If LATEST_SESSION="$(ls -t ~/.config/maple/agent/sessions/*.jsonl | head -1)"
jq -r '
select(.event.type == "sessionUpdate")
| .event.update
| select(.sessionUpdate == "tool_call" or .sessionUpdate == "tool_call_update")
| {kind: .sessionUpdate, id: .toolCallId, title, status, rawInput, rawOutput, content, meta: ._meta}
' "$LATEST_SESSION"Validated locally: cd frontend && nix develop -c bun run typecheck
cd frontend && nix develop -c bun run format:check
cd frontend && nix develop -c bun run lint # 13 existing warnings, 0 errors
git diff --check |
|
Updated Agent Mode diagnostics and token cap handling. Changes:
Validation:
Goose upstream note: |
|
Added Agent Mode LLM request logging. What changed:
Where to inspect after the next Agent Mode model call:
These JSONL files include the outgoing OpenAI-compatible payload under input plus streamed provider message chunks, usage, and errors. They will not exist for already-completed runs before this commit. Validation:
|
Summary
goose serve, configures Goose for Maple's local OpenAI-compatible proxy, and exposes project-root/config/session-log commands to the frontendMAPLE_GOOSE_BINARYor the@aaif/goose-binary-*platform packagesValidation
nix develop -c bun run typechecknix develop -c cargo checknix develop -c bun run buildVITE_OPEN_SECRET_API_URL=http://127.0.0.1:3000 VITE_MAPLE_BILLING_API_URL=http://127.0.0.1:36503 nix develop -c bun tauri build --bundles app --config '{"bundle":{"createUpdaterArtifacts":false}}'Maple.appand confirmed it spawned bundledgoose serveMaple Goose smoke test responseand Goose returned exactly that0600permissionsDraft because this is ready for hands-on product/runtime testing today.