mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-07-25 02:35:23 -04:00
[PR #13] [CLOSED] perf(startup): lazy-load LLM & RAG, defer UI imports to speed startup #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/GH05TCREW/pentestagent/pull/13
Author: @giveen
Created: 1/10/2026
Status: ❌ Closed
Base:
main← Head:patch-1📝 Commits (6)
dd58fd6Merge tui-cli-cleanup into fork mainde964famcp: make DiscoveredServer.tools Optional[List[Dict[str, Any]]] to satisfy type check42f6b94startup: lazy-import run_cli/run_tui to reduce startup timedbe2b79llm: lazy-init litellm on first use (async guard)0734c9erag: lazy-load serialized index and background rebuild if stale49dde17rag: load serialized index non-blocking (background rebuild) in CLI and TUI📊 Changes
6 files changed (+180 additions, -37 deletions)
View changed files
📝
pentestagent/interface/cli.py(+6 -1)📝
pentestagent/interface/main.py(+8 -2)📝
pentestagent/interface/tui.py(+13 -4)📝
pentestagent/knowledge/rag.py(+99 -0)📝
pentestagent/llm/llm.py(+51 -27)📝
pentestagent/llm/memory.py(+3 -3)📄 Description
Summary: Reduce application cold-start time by deferring heavy initialization and running expensive work in background.
Key changes:
Measured impact:
Behavior notes:
Tests performed:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.