Code Repo Summary Generator
Project description
How it works
- Chunk code using custom code chunker (stolen from Moatless)
- Generate dep graph (partly stolen from Bloop)
- Cluster chunks together using multi-level graph clustering algo (basically identifies local communities that are more related amongst each other than they are with outside nodes)
- Recursively generate summaries from leaf to root
What the clusters represent are functional groupings of code that inter-depend on each other (ie. Web Content Scraping and Integration Feature).
Generation is relatively cheap, fraction of the cost of the ingesting the whole repo
Install
OPENAI_API_KEY must be set in the env to use
pip install rtfs
Get text output to console
rtfs chunk-graph tests\cowboy-server\
...
# accept the summarization charge (we are not summarizing over every single file)
The summarization will cost $0.023670999999999998 and use 23671 tokens. Do you want to proceed? (yes/no): yes
Get json output
rtfs chunk-graph tests\cowboy-server\ --output-format json --output-file json-
Sample output
Chat Interaction and Summarization Handler 0:12
Keywords: Coder, ChatSummary
Summary: This set of code is responsible for managing chat interactions with AI models, including sending messages, handling responses, and summarizing chat content. The `Coder` class handles the flow of sending messages to the models, managing partial responses, logging the interactions, and processing interruptions. It also checks for file mentions within the messages and handles them appropriately. The `ChatSummary` class focuses on summarizing chat content by compiling user and assistant messages and then interacting with AI models to generate a concise summary. Utility functions like `send_with_retries` and `simple_send_with_retries` ensure robust and retriable communication with the AI models.
ChunkNode: coders/base_coder.py#38.63
ChunkNode: aider/history.py#167.25
ChunkNode: aider/sendchat.py#249.48
File Content Replacement and Editing 0:17
Keywords: do_replace, EditBlockFunctionCoder
Summary: This feature provides functionality for text replacements and bulk edits within files. The `do_replace` function handles the core logic of replacing text within a file, either by creating a new file if it doesn't exist or updating the content by replacing a specified text chunk with new content. The `EditBlockFunctionCoder` class manages bulk edit operations by parsing arguments, validating edit requests, and invoking the `do_replace` function to perform the content replacements. It ensures that file paths are allowed for editing and handles exceptions for missing or incorrect parameters using the `get_arg` function. This feature is primarily used for automating text updates in multiple files while maintaining file integrity.
ChunkNode: coders/editblock_coder.py#60.19
ChunkNode: coders/editblock_func_coder.py#69.47
Chat History Analysis and Patch Application 0:4
Keywords: main, map_patches
Summary: This feature encompasses several utility functions and classes to analyze chat history markdown to generate diffs and apply patches to texts. The `main` function reads a markdown file containing chat history and identifies patches by analyzing diffs between the states. Functions like `map_patches`, `dmp_apply`, and `dmp_lines_apply` manage the application of these patches to ensure accurate mapping and transformation of text changes. There are also utility functions for dealing with general patch management, such as `find_diffs`, and `show_stats` for statistical analysis and visualization. Additional code sections cover the creation of graphical representations of the results and handling exceptions during such operations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rtfs-0.1.1.tar.gz
(153.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rtfs-0.1.1-py3-none-any.whl
(168.4 kB
view details)
File details
Details for the file rtfs-0.1.1.tar.gz.
File metadata
- Download URL: rtfs-0.1.1.tar.gz
- Upload date:
- Size: 153.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
734bfb3e6c1b619d6978f7bb46e4e5be49bd9500e26003a1f3dbd7198958807d
|
|
| MD5 |
1710ab2f141a6979aa6295919b922436
|
|
| BLAKE2b-256 |
62ad3f339cc534dfbbd0f3608c52819880341cf7637b37b3ec001f34796feeaf
|
File details
Details for the file rtfs-0.1.1-py3-none-any.whl.
File metadata
- Download URL: rtfs-0.1.1-py3-none-any.whl
- Upload date:
- Size: 168.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a179684aff8d790dc24d24454d2fdda68dabac32186f2ca12a98a0b3b2fbe4b
|
|
| MD5 |
819c6887c7da3d27dd9b833d47b34102
|
|
| BLAKE2b-256 |
25d1be88a59705d44f3a4df66191e135b1d60f486ae5c8e0c11f94c52f6807c7
|