-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
area: coreLogic for Indexer, Parser, Graph, or Generator.Logic for Indexer, Parser, Graph, or Generator.featNew feature or request (e.g., config file, depth control).New feature or request (e.g., config file, depth control).priority: mediumNormal priority; adds value but not urgent.Normal priority; adds value but not urgent.
Description
Problem
Currently, amdb generate fetches the entire dependency graph relative to the focus file.
For complex projects, this creates an excessively large context file filled with distant dependencies, which adds noise when uploaded to AI tools.
Proposed Solution
- Add a
--depthargument to thegeneratecommand (default: 1).0: Focus file only.1: Focus file + immediate dependencies.2: Focus file + nested dependencies.
- Modify
ContextGeneratorinsrc/core/generator.rsto stop graph traversal at the specified depth.
Definition of Done
-
amdb generate --focus main.rs --depth 0outputs onlymain.rs. - Users can control the granularity of the generated context.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: coreLogic for Indexer, Parser, Graph, or Generator.Logic for Indexer, Parser, Graph, or Generator.featNew feature or request (e.g., config file, depth control).New feature or request (e.g., config file, depth control).priority: mediumNormal priority; adds value but not urgent.Normal priority; adds value but not urgent.