Skip to content

FEAT-04: Include ASCII directory tree in output (__tree__ key) #32

@subhan-f

Description

@subhan-f

Include an ASCII file tree of the scanned directory as a reserved __tree__ key in JSON output (or as a preamble section in Markdown mode). This gives LLMs structural context about the project layout without requiring them to infer it from individual file paths.

Example JSON:

{
  "__tree__": "src/\n  cli.ts\n  scan.ts\n  filter.ts\n  export.ts\n  utils.ts\ntests/\n  ...",
  "src/cli.ts": "...",
  ...
}

Priority: Medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions