Skip to content

Exclude gitignored files from session metadata tracking #13

@jcleira

Description

@jcleira

Description

When capturing file modifications in a session, skip files that are matched by the repo's .gitignore rules. Gitignored files (build artifacts, node_modules, secrets, local config) should never appear in checkpoint metadata or session transcripts, reducing noise and preventing accidental capture of sensitive local-only files.

Source

Target Repos

  • cli

Acceptance Criteria

  • File modifications to gitignored paths are excluded from session metadata
  • Gitignore rules are evaluated using the repo's .gitignore (and nested ignore files)
  • Global gitignore (core.excludesFile) is also respected
  • Exclusion is verified by a test that adds a file matching a gitignore pattern and confirms it is absent from the checkpoint
  • No performance regression for repos with large gitignore rule sets

Context Hints

  • cli/internal/session/
  • cli/internal/checkpoint/
  • cli/internal/git/

Comment /minion build or add the minion-approved label to begin implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions