Skip to content

Codex/Windows cleanup leaves .graphify_* intermediate files under graphify-out #464

Closed

Description

@Userchenentao5

Summary

When running the Graphify Codex skill on Windows, the final cleanup step leaves many intermediate .graphify_* files under graphify-out/.

This appears to be a skill workflow cleanup issue rather than a graph generation failure. The final outputs are generated correctly, but intermediate files remain in the output directory.

Environment

  • Package: graphifyy
  • Version: 0.4.23
  • Platform: Windows
  • Shell: Windows PowerShell 5.1
  • Assistant integration: Codex skill workflow

What happens

After running Graphify on a private codebase, graphify-out/ contains final artifacts plus many intermediate files, for example:

graphify-out/.graphify_detect.json
graphify-out/.graphify_extract.json
graphify-out/.graphify_ast.json
graphify-out/.graphify_semantic.json
graphify-out/.graphify_semantic_new.json
graphify-out/.graphify_analysis.json
graphify-out/.graphify_labels.json
graphify-out/.graphify_uncached.txt
graphify-out/.graphify_chunks.json
graphify-out/.graphify_dispatch_started
graphify-out/.graphify_chunk_*.json
graphify-out/.graphify_chunk_*_files.txt
graphify-out/cache/*.tmp

The expected final files are present, for example:

graphify-out/graph.json
graphify-out/graph.html
graphify-out/GRAPH_REPORT.md
graphify-out/manifest.json
graphify-out/cost.json
graphify-out/cache/*.json

Expected behavior

After a successful run, the skill should remove intermediate .graphify_* files and stale cache .tmp files, while preserving final outputs and semantic cache .json files.

Suspected cause

The Codex/Windows cleanup steps do not appear to match the actual file locations and generated artifact set.

In the current workflow, most intermediate files are written under graphify-out/.graphify_*, but some cleanup instructions target .graphify_* in the current working directory instead of graphify-out/.graphify_*.

Additionally, the cleanup list does not cover all files produced by the Codex parallel chunk flow, such as:

graphify-out/.graphify_chunk_*.json
graphify-out/.graphify_chunk_*_files.txt
graphify-out/.graphify_chunks.json
graphify-out/.graphify_dispatch_started

On Windows, graphify-out/cache/*.tmp can also remain next to a successfully written matching .json cache entry.

Suggested fix

Update the Codex/Windows cleanup step to target graphify-out/ consistently and include all chunk artifacts. For PowerShell, something like:

Remove-Item -Force `
  graphify-out\.graphify_detect.json,
  graphify-out\.graphify_extract.json,
  graphify-out\.graphify_ast.json,
  graphify-out\.graphify_semantic.json,
  graphify-out\.graphify_semantic_new.json,
  graphify-out\.graphify_analysis.json,
  graphify-out\.graphify_labels.json,
  graphify-out\.graphify_cached.json,
  graphify-out\.graphify_uncached.txt,
  graphify-out\.graphify_chunks.json,
  graphify-out\.graphify_dispatch_started,
  graphify-out\.graphify_chunk_*.json,
  graphify-out\.graphify_chunk_*_files.txt,
  graphify-out\cache\*.tmp `
  -ErrorAction SilentlyContinue

The Bash cleanup should similarly target graphify-out/.graphify_* paths instead of root-level .graphify_* files.

Privacy note

This report intentionally avoids including any project names, repository paths, source filenames, or domain-specific data. The issue is reproducible from the generic generated filenames and cleanup behavior above.

Activity

  1. safishamsi commented on Apr 21, 2026

    @safishamsi
    Member

    Fixed in v0.4.24: .graphify_chunk_*.json files are now cleaned up in Step 9 across all skill files.

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

Metadata

Metadata

Assignees

No one assigned

    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