mufeedvh / mufeedvh/code2prompt

Function headers in source tree.

Open
#148 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted wontfix
Dominant language
Rust
Stars
7.7k
Forks
447
Avg merge
2h 35m
Merged PRs (30d)
2

Description

Hi is it possible to add function headers in the source tree.
By function headers i mean only the first line of the function with contains the name, arguments and return type.
This will utilize less tokens and help give the LLM an overview of the source code.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that generates the source tree and read how it currently represents source files. Define which languages and function signatures are supported, then verify that the output retains each function's first line with its name, arguments, and return type while reducing token use.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.