Skip to content

fix(harness): remove hardcoded filesystem paths for portability#1

Open
sixty4bit wants to merge 1 commit intoworkos:mainfrom
sixty4bit:fix/remove-hardcoded-paths
Open

fix(harness): remove hardcoded filesystem paths for portability#1
sixty4bit wants to merge 1 commit intoworkos:mainfrom
sixty4bit:fix/remove-hardcoded-paths

Conversation

@sixty4bit
Copy link

Summary

  • Replaces all hardcoded /Users/nicknisi/Developer/case references (70+ occurrences across 22 files) with dynamic resolution so the harness works for any user or fork.
  • Shell scripts and hooks now derive CASE_REPO from their own location using the SCRIPT_DIR pattern (matching bootstrap.sh).
  • SKILL.md and agent prompts use ${CASE_REPO} as a variable resolved by the orchestrator at invocation time. Each agent's Input contract now includes CASE_REPO as an explicit parameter.
  • upload-screenshot.sh now requires the CASE_ASSETS_REPO env var instead of defaulting to a specific user's repo, failing fast with clear setup instructions.

Test plan

  • All modified shell scripts pass bash -n syntax check
  • Run /case from a target repo to verify orchestrator resolves CASE_REPO correctly
  • Verify upload-screenshot.sh fails with helpful message when CASE_ASSETS_REPO is unset
  • Verify hook scripts still fire correctly via ${CLAUDE_PLUGIN_ROOT}

🤖 Generated with Claude Code

All references to /Users/nicknisi/Developer/case have been replaced
with dynamic resolution so the harness works for any user/fork.

Shell scripts and hooks now derive CASE_REPO from their own location
using the SCRIPT_DIR pattern (matching bootstrap.sh). SKILL.md and
agent prompts use ${CASE_REPO} as a variable resolved by the
orchestrator at invocation time. Each agent's Input contract now
includes CASE_REPO as an explicit parameter.

upload-screenshot.sh now requires the CASE_ASSETS_REPO env var
instead of defaulting to a specific user's repo, with clear setup
instructions on failure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
nicknisi added a commit that referenced this pull request Mar 17, 2026
- Remove double-written metrics: drop legacy log-run.sh call from
  pipeline.ts, writer.ts is the single path (#1)
- Await retrospective instead of fire-and-forget so process.exit
  doesn't kill it (#3)
- Fix README claiming retrospective applies changes directly — it
  proposes amendments, only learnings are applied directly (#6)
- Document attended-mode retry semantics: maxRetries is per-attempt,
  human can re-enter implement indefinitely (#2)
- Reconcile --worktree docs: removed from flag list, branch isolation
  is handled by skill layer before orchestrator dispatch (#4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant