Skip to content

[FEATURE]: Handoff skill — save to project directory instead of global temp #36381

Closed as not planned

Description

@Narendarcodes

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem

The handoff skill saves to the OS temp directory (/tmp/ or %TEMP%), which is global across all projects. When working on multiple projects, handoff files get mixed together or overwritten.

Current Behavior

Handoff file saved to: {os_temp}/opencode/HANDOFF.md

Proposed Behavior

Save handoff to the current project directory when in a git repo or workspace:

  • Primary: {project_root}/HANDOFF.md
  • Fallback: {os_temp}/opencode/HANDOFF.md (if no project detected)

Use Case

Working on multiple projects simultaneously. Each project needs its own handoff context for the next session. Global temp loses project-specific state.

Suggested Implementation

  1. Check if CWD is inside a git repo or has a workspace marker
  2. If yes → save to project root
  3. If no → fall back to temp directory
  4. Optionally add config: handoff.location: "project" | "global"

Activity

  1. Narendarcodes commented on Jul 24, 2026

    @Narendarcodes
    Author

    I'd be happy to implement this if no one is already working on it. Please let me know if you'd like me to open a PR.

  2. stefan123t commented on Aug 1, 2026

    @stefan123t

    I think this should be the default. It prevents clutter in the global temp and it keeps project related temp files inside the context.

    I find it difficult / tedious to explain to opencode that it should not use global temp and instead write only to local project temp.

    Also I only have to give execute permissions for the project folder and not beyond, so it kind of prevents escape from the project context.

  3. github-actions commented on Oct 2, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions