---
name: codebase-investigation-and-task-tracking
description: "Inspects software repositories, debugs runtime errors, and tracks multi-step implementation progress using targeted scripts and local database notes. Use when a person asks for codebase investigation, debugging, or ongoing engineering task tracking."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Database, GitHub."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/codebase-investigation-and-task-tracking/"
  kind: skill
  hermes:
    tags: ["codebase", "debugging", "terminal", "refactoring"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Codebase investigation and task tracking

Analyze repository files and logs with targeted scripts while maintaining session history

## When to use

Inspect software repositories, debug runtime errors, and track multi-step implementation progress. Instead of loading entire file trees or verbose logs directly, run focused shell or runtime scripts to distill relevant metrics, record key findings into a local database, and keep ongoing engineering tasks organized across sessions.

## Inputs

- `investigation_task`: The codebase investigation, repository exploration, or debugging task to perform.
- `repository_context`: Repository files, logs, or runtime error details relevant to the investigation.
- `task_history` (optional): Existing notes or session history needed to keep multi-step engineering tasks organized across sessions.

## Steps

1. When you ask: Receive code investigation task (A person asks the agent to investigate a codebase, debug a runtime error, or track implementation progress.)
2. Run filtered script analysis
3. Present findings and saved session state

## Instructions

When tasked with repository exploration or debugging, write and execute targeted scripts via the terminal to filter data before reading it. Log critical milestones, architectural decisions, and open issues into the local database. Always ask for user confirmation before modifying source files, running git write commands, or deleting any files or records.

## Approvals

- Modifying source files requires user confirmation before any change is made.
- Running git write commands requires user confirmation before execution.
- Deleting files or database records requires user confirmation before deletion.

## Output

Findings from the script analysis plus saved session state and tracked task progress. (format: chat_message)

## Source

Summarized in our own words from [context-mode: Context window optimization for AI coding agents. Sandboxes tool output (98% reduction), persists session memory, and   enforc](https://github.com/mksglu/context-mode) (GitHub, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/codebase-investigation-and-task-tracking/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
