Skip to content

Conversation

@cdxiaodong
Copy link

No description provided.

Added a log command to display log files and open the log directory in the file manager based on the operating system.
Added performance tracking for each step in the agent's execution.
AkairoDev added a commit that referenced this pull request Jan 14, 2026
Step Execution Timing (agent.py):
- Track individual step execution time with perf_counter()
- Show cumulative total time for the entire run
- Display timing info after each step completion

Log Management (cli.py):
- Add /log command in REPL to show log directory
- Add /log <filename> to read specific log files
- Add 'mini-agent log' CLI subcommand
- Cross-platform file manager integration (macOS/Windows/Linux)
- Show recent log files sorted by modification time
- Display API tokens used in session statistics
- Update /help with new commands

Improvements over PR #40:
- Extracted common log functions to avoid code duplication
- Added total elapsed time tracking
- Cleaner error handling
@AkairoDev
Copy link
Collaborator

Thanks for your PR! I've implemented these features based on your ideas with some improvements:

Step Execution Timing:

  • Added step timing in agent.py
  • Shows both individual step time AND cumulative total time

Log Management:

  • Added /log command in REPL and mini-agent log CLI subcommand
  • Key improvement: Extracted common log functions to avoid code duplication (~60 lines saved)
  • Cross-platform file manager support (macOS/Windows/Linux)

Also included:

  • Updated /help with new commands
  • Added API tokens display in /stats

See commit: e388bf7

Really appreciate your contribution! 🙏

@AkairoDev AkairoDev closed this Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants