[PR #16] [MERGED] TUI Token diagnostics restyle, help updates, env example cleanup, and token tracking #18

Closed
opened 2026-02-27 13:59:19 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/GH05TCREW/pentestagent/pull/16
Author: @giveen
Created: 1/11/2026
Status: Merged
Merged: 1/11/2026
Merged by: @GH05TCREW

Base: mainHead: more-tui-tweaks


📝 Commits (3)

  • 4619e43 tui: show Target under header + live Memory Diagnostics
  • 567e25e - Restyle Token Usage diagnostics to match Memory panel (block bars, aligned labels)
  • b916503 - Record LLM token usage via tools/token_tracker (best-effort, persisted)

📊 Changes

5 files changed (+604 additions, -44 deletions)

View changed files

📝 .env.example (+42 -5)
📝 pentestagent/agents/base_agent.py (+7 -0)
📝 pentestagent/interface/tui.py (+411 -39)
📝 pentestagent/llm/llm.py (+17 -0)
pentestagent/tools/token_tracker.py (+127 -0)

📄 Description

  • Restyle Token Usage diagnostics to match Memory panel (block bars, aligned labels)
  • Document /token and align all help entries via two-column layout
  • Increase help modal height so Close button remains visible (no scroll)
  • Update .env.example: remove unused LLM_PROVIDER, prefer OLLAMA_BASE_URL, add embeddings/debug/context budgeting examples, pricing vars, and daily token limit
  • Record LLM token usage via tools/token_tracker with JSON persistence (loot/token_usage.json)
  • Add terminal tool fallback in BaseAgent when requested tool is not registered

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/GH05TCREW/pentestagent/pull/16 **Author:** [@giveen](https://github.com/giveen) **Created:** 1/11/2026 **Status:** ✅ Merged **Merged:** 1/11/2026 **Merged by:** [@GH05TCREW](https://github.com/GH05TCREW) **Base:** `main` ← **Head:** `more-tui-tweaks` --- ### 📝 Commits (3) - [`4619e43`](https://github.com/GH05TCREW/pentestagent/commit/4619e43d626ec07adefaee460f52832a0ee53ecc) tui: show Target under header + live Memory Diagnostics - [`567e25e`](https://github.com/GH05TCREW/pentestagent/commit/567e25ed8cd397c56708f47f7d93e783fc2a1034) - Restyle Token Usage diagnostics to match Memory panel (block bars, aligned labels) - [`b916503`](https://github.com/GH05TCREW/pentestagent/commit/b916503d23185b68bb66f6a0d5dfa8e21547be1b) - Record LLM token usage via tools/token_tracker (best-effort, persisted) ### 📊 Changes **5 files changed** (+604 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+42 -5) 📝 `pentestagent/agents/base_agent.py` (+7 -0) 📝 `pentestagent/interface/tui.py` (+411 -39) 📝 `pentestagent/llm/llm.py` (+17 -0) ➕ `pentestagent/tools/token_tracker.py` (+127 -0) </details> ### 📄 Description - Restyle Token Usage diagnostics to match Memory panel (block bars, aligned labels) - Document /token and align all help entries via two-column layout - Increase help modal height so Close button remains visible (no scroll) - Update .env.example: remove unused LLM_PROVIDER, prefer OLLAMA_BASE_URL, add embeddings/debug/context budgeting examples, pricing vars, and daily token limit - Record LLM token usage via tools/token_tracker with JSON persistence (loot/token_usage.json) - Add terminal tool fallback in BaseAgent when requested tool is not registered --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-27 13:59:19 -05:00
yindo closed this issue 2026-02-27 13:59:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yindo/pentestagent#18