[PR #12] [MERGED] TUI history and cleaner CLI summary rendering #14

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

📋 Pull Request Information

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

Base: mainHead: tui-cli-cleanup


📝 Commits (1)

  • c821cef ui: TUI history + CLI summary rendering (exclude prompt changes)

📊 Changes

2 files changed (+148 additions, -9 deletions)

View changed files

📝 pentestagent/interface/cli.py (+99 -8)
📝 pentestagent/interface/tui.py (+49 -1)

📄 Description

This PR improves the user experience in the TUI and CLI.

Key changes:

  • TUI: Adds per-session command history with Up/Down navigation, and updates Help to show keys.
  • CLI: Prefers parsed JSON and unescapes nested/double-encoded strings, pretty-prints results, and renders the summary field as Markdown for human-readable output.

Scope:

  • Only pentestagent/interface/tui.py and pentestagent/interface/cli.py are modified in this branch; prompt templates are unchanged.

Motivation:

  • Cleaner output and smoother iteration in the terminal without enforcing response format in prompts.

Testing:

  • Verified Up/Down recalls prior inputs; help modal reflects shortcuts.
  • CLI displays summaries cleanly when present, and falls back gracefully for raw outputs.

No breaking changes.


🔄 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/12 **Author:** [@giveen](https://github.com/giveen) **Created:** 1/9/2026 **Status:** ✅ Merged **Merged:** 1/9/2026 **Merged by:** [@GH05TCREW](https://github.com/GH05TCREW) **Base:** `main` ← **Head:** `tui-cli-cleanup` --- ### 📝 Commits (1) - [`c821cef`](https://github.com/GH05TCREW/pentestagent/commit/c821cef719b92743bc7566ecd88c80a29a6e8abf) ui: TUI history + CLI summary rendering (exclude prompt changes) ### 📊 Changes **2 files changed** (+148 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `pentestagent/interface/cli.py` (+99 -8) 📝 `pentestagent/interface/tui.py` (+49 -1) </details> ### 📄 Description This PR improves the user experience in the TUI and CLI. Key changes: - TUI: Adds per-session command history with Up/Down navigation, and updates Help to show keys. - CLI: Prefers parsed JSON and unescapes nested/double-encoded strings, pretty-prints results, and renders the `summary` field as Markdown for human-readable output. Scope: - Only `pentestagent/interface/tui.py` and `pentestagent/interface/cli.py` are modified in this branch; prompt templates are unchanged. Motivation: - Cleaner output and smoother iteration in the terminal without enforcing response format in prompts. Testing: - Verified Up/Down recalls prior inputs; help modal reflects shortcuts. - CLI displays summaries cleanly when present, and falls back gracefully for raw outputs. No breaking changes. --- <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:10 -05:00
yindo closed this issue 2026-02-27 13:59:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yindo/pentestagent#14