Skip to main content
On this page

shared/input-classifiers/local-path

Source: shared/input-classifiers/local-path.md

input classifier: local path

Patterns

  • Absolute: /Users/.../file.py
  • Relative: ./src/foo.ts, src/foo.ts
  • Glob: src/**/*.py
  • Directory: services/auth/
  • Special: . (current directory)

Extract into context.md

Markdown
### [local-path] <path>type: file | dir | globresolved: <absolute path>exists: yes | nomatched files: <N>  (for glob/dir)language(s): typescript / python / mixedsize summary: <line count, file count>recent edits (git log -1 per file, top 5): <bullet>related test files: <list, if any>

Hints

  • /adk-review with .: review the working tree (uncommitted + staged + branch-vs-baseline).
  • /adk-implement with a dir: the implementation target boundary.
  • /adk-document with a file/dir: regenerate / refresh docs for that scope.

Validation

  • If the path doesn’t exist: ask the user (typo? need to cd?). Don’t guess.
  • If the path is enormous (> 5000 files / > 500k LOC): warn and ask for a narrower scope.
  • If the path is outside the working repo (and outside $ADK_CONFIG_HOME/): refuse without explicit confirmation.