Understand the codefetch output format
mainThe generated markdown follows a specific structure designed for AI context:
- Project Structure: A tree view of the codebase (respecting
.gitignore,.codefetchignore, and filters). - File Contents: Each file is presented with syntax highlighting and optional line numbers.
- Token Count: A summary of total tokens used.
- Metadata: Timestamps and configuration details.
Example Structure:
Project Structure:
├── src/
│ └── index.ts
└── package.json
src/index.ts:
```typescript
1 | export const main = () => {};Project Structure: ├── src/ │ ├── index.ts │ └── utils/ │ └── helpers.ts └── package.json
src/index.ts:
1 | import { helper } from './utils/helpers';
2 |
3 | export function main() {
4 | console.log('Hello, world!');
5 | }