{% extends "base.html" %} {% block title %}aide - Tools{% endblock %} {% block content %}

Tools

{# --- Tool Usage Bar Chart --- #}

Tool Usage

{# --- Tool Usage Over Time (Stacked Bar, weekly) --- #}

Tool Usage Over Time

{# --- Error Breakdown --- #} {% if error_breakdown %}

Error Breakdown

Error Categories

Most tool "errors" are normal iteration — test failures, lint fixes, and build retries.

{% set category_colors = { "Test": "bg-blue-100 text-blue-700", "Lint": "bg-emerald-100 text-emerald-700", "Build": "bg-amber-100 text-amber-700", "Git": "bg-purple-100 text-purple-700", "Edit Mismatch": "bg-red-100 text-red-700", "File Access": "bg-orange-100 text-orange-700", "Other": "bg-gray-100 text-gray-700" } %} {% set category_descriptions = { "Test": "Test runner failures — normal edit-test-fix cycle", "Lint": "Linter/formatter errors — auto-fixed on retry", "Build": "Package install or build failures", "Git": "Git command errors", "Edit Mismatch": "Edit tool couldn't find target string", "File Access": "File not found or permission errors", "Other": "Uncategorized bash or tool errors" } %} {% for e in error_breakdown %}
{{ e.category }} {{ category_descriptions.get(e.category, "") }}
{{ e.count }} ({{ "{:.0%}".format(e.pct) }})
{% endfor %}
{% endif %} {# --- Most Common Bash Commands --- #} {% if top_commands %}

Most Common Bash Commands

{% for cmd in top_commands %} {% endfor %}
Command Count Errors Error Rate
{{ cmd.command[:100] }}{% if cmd.command|length > 100 %}...{% endif %} {{ cmd.count }} {{ cmd.error_count if cmd.error_count > 0 else "" }} {% if cmd.error_count > 0 %}{{ "{:.0%}".format(cmd.error_rate) }}{% endif %}
{% endif %} {# --- Most Accessed Files Table --- #}

Most Accessed Files

{% for f in top_files %} {% endfor %} {% if not top_files %} {% endif %}
File Reads Edits Writes Total
{%- set parts = f.file_path.split('/') -%} {%- if parts|length > 3 -%} .../{{ parts[-3:] | join('/') }} {%- else -%} {{ f.file_path }} {%- endif -%} {{ f.read_count }} {{ f.edit_count }} {{ f.write_count }} {{ f.total }}
No file access data found.
{% endblock %} {% block scripts %} {% endblock %}