Skip to the content.

Fix Goose CLI projects.json Parse Error

Fix the warning Failed to update project tracker with instruction: Failed to parse projects.json file that can occur after updating Goose CLI, caused by malformed JSON in the project tracker file.

Rules

Do NOT fabricate or invent command output, status, or results. Every report MUST come from actual script or command execution. If a command fails, report the actual error — do not guess.

Do NOT skip steps or combine multiple operations into one step. Execute each step in order and verify before proceeding.

This skill is purely mechanical — no semantic judgment is required. All decisions are made by the repair script.

Workflow

Step 1 — Run the repair script

The agent MUST run the repair script:

bash ~/.agents/skills/goose-cli-fix/scripts/fix-projects-json.sh

The script handles diagnosis and repair automatically. The agent MUST report the script output verbatim. The agent MUST NOT interpret, summarize, or paraphrase the output.

Step 2 — Verify

The repair script performs its own validation. The agent MUST check the script exit code: 0 means success, 1 means repair failed.

If the script exits 0, the fix is complete. If it exits 1, the agent MUST report the script output and stop — do not attempt manual repair.

Output Contract

Verification

Changelog

See CHANGELOG.md for version history.