All authors
tools-only avatar

Claude Skills by tools-only

github.com/tools-only
2,834 skillsA× 2,629B× 118C× 26D× 36F× 2510 installs1,106 views
468 2026 01 16 Panel Width Refactoring 86eace4cA

PR #244 centralized panel width calculations into a single module (`panel_widths.py`) and removed redundant width logic from 9+ tool renderers. This refactoring applies Gate 5 (Indirection Requires Verification) by replacing `expand=True` indirection with explicit `width=` parameters.

code-qualitypythonrust
0
4
469 2026 01 17 Dangling Tool Calls E44184fcA

When a user aborted mid-tool-call (Ctrl+C or tool denial), the conversation history was left with a `ModelResponse` containing tool calls but no corresponding `ToolReturn` messages. The next API request failed because the provider expected tool returns for pending calls.

developmentpythonapi
0
4
470 2026 01 25 Orphaned Retry Prompt On Dangling Cleanup 76d49004A

Fixed a bug where `retry-prompt` parts were left orphaned in message history after their corresponding `tool-call` parts were pruned during dangling tool call cleanup. The fix generalizes the filter to remove ANY part with a `tool_call_id` matching a dangling ID, not just `tool-call` parts.

ai-agentsdebuggingapi
0
4
471 2026 01 26 Boundary Contracts Not Enforced 3ce89fbfA

Boundary contracts between UI, core, and tools are partially implicit: several callbacks and tool entry points are typed as `Any` or use broad protocols, so the contract is not enforced by typing or tests. This makes boundary drift harder to detect and allows accidental coupling across layers.

code-quality
0
4
472 2026 02 02 Esc Handler Extraction Fe702a4eA

Moved the app-level ESC cancellation cascade into a dedicated `ui/esc` module and delegated `action_cancel_request()` to an explicit handler. This isolates ESC logic from app internals and makes the dependency inputs explicit.

developmentshell
0
4
473 2026 02 02 Pruning Token Estimation Optimization 767dd52dA

Reduced redundant token estimation in tool-output pruning while preserving pruning behavior. The pruning loop in `prune_old_tool_outputs()` was estimating token counts twice for pruned parts and recalculating placeholder tokens for every mutation. - Added `PRUNE_PLACEHOLDER_TOKENS` to cache placeholder token counts. - Introduced `get_part_content_text()` to normalize part content before estimation/pruning. - Passed precomputed token counts into `prune_part_content()` to avoid re-estimation. -...

ai-agentsperformance
0
4
474 2026 02 02 Remove Cli Shim Ed299acdA

Removed the temporary `tunacode.cli` package shim so the only supported CLI entrypoint is `tunacode.ui.main`, aligning code and docs on a single import path.

documentationpythondocumentation
0
4
475 2026 02 02 Remove Heuristic Token Counting 9c1ea9ffA

The agent run flow no longer recomputes token totals by iterating over message history. This removes the slow heuristic `update_token_count` path in favor of usage totals as the canonical source for token display.

ai-agentsperformance
0
4
476 2026 02 02 Remove Toolbuffer Shim 9fd2e01cA

Removed the unused ToolBuffer shim from the agent loop and strengthened the system prompt to demand batched read-only tool calls during discovery, aligning the runtime with actual parallel tool execution capabilities.

ai-agents
0
4
477 2026 02 02 Resource Bar Usage Totals 9dc2c823A

The resource bar now reads token totals from accumulated usage metrics rather than heuristic message counts, keeping the UI aligned with provider-reported usage.

researchapi
0
4
478 2026 02 02 Tool Name Normalization Be6723f0A

Tool calls with leading/trailing whitespace in `tool_name` failed to dispatch (e.g., " glob"), resulting in unknown-tool errors instead of retries. We now normalize tool names before registration and dispatch to avoid whitespace-induced failures.

ai-agents
0
4
479 Remove All Exports Use Direct Imports 84d1e4d7A

from tunacode.tools.authorization import ToolHandler __all__ = ["ToolHandler"] from tunacode.tools.authorization.handler import ToolHandler # Direct import ``` The `__all__` export suggests `ToolHandler` should be imported via `tunacode.core`, but nothing actually uses it that way.

code-qualitypythonrefactoring
0
4
480 Remove Global Cache User Config 0914dfe7A

Removed global mutable cache state from the user configuration module. The previous implementation used module-level `_config_fingerprint` and `_config_cache` variables for a fast-path optimization that was likely premature for configuration file handling.

code-qualitydebugging
0
4
481 Usage Total Token Source A59178dbA

The canonical token total for UI display is the accumulated pydantic-ai usage totals (prompt + completion) from `usage.session_total_usage`, not heuristic message counting. This aligns the UI with billed API usage and avoids slow per-message estimation.

ai-agentsapi
0
4
482 No Cargo Cult Fixes 70e178ddA

When extracting changes from a messy PR, I blindly copied a fix to `retry.py` without questioning whether it was needed.

developmentgocode-review
0
4
483 Semantically Dead Code 824ee2a7A

grep -n "_gitignore_patterns" src/tunacode/tools/glob.py ``` If all references are writes, it's dead.

code-qualitybashgit
0
4
484 Task 01 Canonical Messaging Adoption 3352bc6cA

| Phase | Status | Branch | |-------|--------|--------| | P1 (Messaging) | ✓ Complete | `types-architect` | | P2 (Tooling) | ✓ Complete | `types-architect` |

ai-agentspython
0
4
485 Quality Gates 2a64c6eaA

These are another layer to prevent slop, not pre-commit hooks.

developmentpythonshell
0
4
485 Quality Gates B5725d8cA

These are another layer to prevent slop, not pre-commit hooks.

toolspythonshell
0
4
486 Map 65421a7eA

**Generated:** 2026-01-04 **Project:** TunaCode - TUI Code Agent **Source Directory:** src/tunacode/ **Version:** 0.1.20 **Python Version:** 3.11-3.13 ---

code-qualitypythonshell
0
4
487 Architecture Refactor Plan 03853015A

**Status**: Draft **Created**: 2026-01-25 **Branch**: `claude/refactor-tunacode-architecture-Ox6gl` ---

testingpythongo
0
4
487 Architecture Refactor Plan 4665a52dA

**Status**: Draft **Created**: 2026-01-25 **Branch**: `claude/refactor-tunacode-architecture-Ox6gl` ---

testingpythongo
0
4
488 Message Flow Map 308463faA

This document traces message handling from entry to exit, documenting the single source of truth pattern.

ai-agentspythonbash
0
4
489 Design Philosophy E6d2bd4aA

The Tunacode TUI (Terminal User Interface) is built upon a strong design philosophy heavily inspired by the classic **NeXTSTEP** operating system. This is not merely an aesthetic choice, but a functional one aimed at maximizing user clarity and control.

designpythonapi
0
4
490 Nextstep Panels Dd31ca7eA

**Date:** 2025-12-06 **Scope:** UI / Tooling **Status:** Canonical

designpythonshell
0
4
491 Tool Renderers 334d2bcbA

**Date:** 2026-01-07 **Scope:** UI / Renderers **Status:** Canonical

testingpythonbash
0
4
492 2026 01 28 Decoupled Tools E6c92b6eA

Removed direct dependencies on `pydantic-ai` from the `src/tunacode/tools/` directory (specifically `ModelRetry`). Tools now raise a domain-specific `ToolRetryError`, which is intercepted by the tool decorator and translated to `ModelRetry` for the framework. Previously, 8 tool files imported `ModelRetry` from `pydantic_ai.exceptions`. This coupled the business logic of the tools directly to the specific agent framework we are using. - **Added `ToolRetryError`** to `src/tunacode/exceptions.py...

code-qualitybash
0
4
493 2026 01 27 21 50 00 Tickets 3737d872A

**Date:** 2026-01-27 **Branch:** lsp-index-cleanup **Start commit:** b4e34261 **End commit:** 690c4760

documentationbashdocumentation
0
4
494 2026 01 26 14 30 00 Planning Feature Deletion D3530f3cA

**Remove the planning feature entirely from tunacode.** The feature (a read-only mode restricting agent to information gathering before code modifications) is not actively used and adds maintenance burden across 9 layers.

testinggorefactoring
0
4
495 2026 01 26 17 11 28 Single Md Prompt Migration Ad0c46beA

uv run python -c " from pathlib import Path from tunacode.core.agents.agent_components.agent_config import load_system_prompt prompt = load_system_prompt(Path('src/tunacode')) assert '{{USER_INSTRUCTIONS}}' in prompt assert '{{CWD}}' not in prompt # Should be resolved print('OK') " ``` - `tests/unit/core/test_prompting_engine.py` - KEEP, tests `resolve_prompt()` which is unchanged - No new tests needed for simple file read operation ---

developmentpythongo
0
4
496 2026 01 26 17 15 00 Research Subagent Deletion 19281463A

Delete the disabled `research_codebase` sub-agent feature completely from the codebase. This is a cleanup task—the feature is already disabled in production (commented out in agent_config.py).

code-qualitygorefactoring
0
4
497 2026 01 27 17 41 42 Insert Before Stream Fix 52612d98A

self.mount(widget, before=self._current_stream) elif self._insertion_anchor is not None: self.mount(widget, before=self._insertion_anchor) else: self.mount(widget) if self._auto_scroll: self.scroll_end(animate=False) ``` **Acceptance Test:** Tool panel arriving after `end_stream()` appears before the finalized agent response, not at bottom. **Dependencies:** Task 1 **Milestone:** M2 --- **Summary:** Reset anchor when starting a new stream to prevent stale positioning. **Files:** `src/tunacode...

devopspythongo
0
4
498 2026 01 27 17 59 28 Issue 313 Core Utils Layer Violation 85f32bc2A

**SINGULAR FOCUS:** Eliminate all 24 direct imports from `tunacode.utils` in `tunacode.core` by either: 1. Moving modules to foundation layers (`configuration/`, `types/`) 2. Inlining tiny utilities 3. Re-routing through Layer 2 (`tools/`)

code-qualitygonode
0
4
499 2026 01 27 21 30 00 Issue 314 Lateral Coupling 1a381dfeA

Eliminate all lateral coupling violations between Layer 2 peer modules (`tools`, `indexing`, `lsp`, `infrastructure`). These modules should only depend downward to foundation layers (`utils`, `types`, `configuration`), never sideways to each other.

testinggogit
0
4
500 2026 01 27 21 45 00 Delete Indexing System 0cf944c0B

grep -r "from tunacode.indexing" src/tunacode/ grep -r "CodeIndex" src/tunacode/ grep -r "IndexingService" src/tunacode/ uv run pytest grep -r "indexing" docs/ | grep -v ".git" ```

testinggobash
0
4
501 2026 01 27 Chat Container Refactor 26dcdbd2A

- **ONE outcome:** Replace dual-display streaming architecture (RichLog + streaming_output Static) with a unified ChatContainer using individual MessageWidget components that stream in-place.

devopsgoshell
0
4
502 2026 01 28 Pydantic Ai Adapter Layer 39a80dd5A

Remove the direct dependency on `pydantic-ai` from `src/tunacode/tools/`. Tools should raise domain-specific exceptions, not framework-specific exceptions.

code-qualitygobash
0
4
503 2026 02 01 Complexity Refactoring Fcf7f653A

Refactor 4 D-grade complexity hotspots to improve maintainability and reduce cognitive load. Target: reduce McCabe complexity scores below threshold (25) for all functions.

testingpythongo
0
4
504 2026 02 02 13 29 36 Esc Logic Module Extraction C750cf35A

Make ESC handling clearer and more maintainable by extracting ESC logic into a dedicated, independent module under `src/tunacode/ui/esc/`. The ESC node (handler) should be independent of app internals and depend only on explicit inputs passed in.

developmentgoshell
0
4
505 2026 02 02 Sanitize Loop Canonicalization Bottleneck 85c933a3A

Reduce message canonicalization overhead in `run_cleanup_loop()` by caching canonical messages per iteration: 1N conversions when no mutations occur, and 2N conversions in iterations that mutate messages (recompute after mutation).

developmentpythongo
0
4
506 2026 02 02 Token Pruning Efficiency Plan 1aa242a3A

Reduce pruning overhead in `src/tunacode/core/agents/resume/prune.py` by eliminating redundant token estimation, while preserving current pruning behavior.

testinggogit
0
4
507 2026 01 26 17 08 03 Single Md Prompt Migration E938b89cA

**Date:** 2026-01-26 **Owner:** agent **Phase:** Research

developmentpythongo
0
4
508 2026 01 26 17 22 59 Local Mode Removal Research 1ec0dcbfA

**Date:** 2026-01-26 **Owner:** tunacode **Phase:** Research **git_commit:** b6eb3990

ai-agentspythongo
0
4
509 2026 01 26 17 34 12 Permission System Removal Map 88a90d81A

**Date:** 2026-01-26 17:34:12 **Owner:** Claude (research agent) **Phase:** Research **Git commit:** 48071e33c62516b5a9018bfb2b20c42a48215640 **Git branch:** master **Repo:** alchemiststudiosDOTai/tunacode ---

ai-agentsgogit
0
4
510 2026 01 26 18 26 16 Yolo System Removal Verification 59b2e1a0A

**Date:** 2026-01-26 **Owner:** Claude (research agent) **Phase:** Research **Git commit:** 84ce4ff3 **Git branch:** master **Repo:** alchemiststudiosDOTai/tunacode ---

testinggobash
0
4
511 2026 01 26 Planning Feature Deletion Edfb622fA

**Date:** 2026-01-26 **Owner:** Agent **Phase:** Research

ai-agentsgodocumentation
0
4
512 2026 01 27 00 10 38 Issue 311 Core Types Layer Violation 11872dd0A

**Date:** 2026-01-27 **Owner:** claude-agent **Phase:** Research **Issue:** https://github.com/alchemiststudiosDOTai/tunacode/issues/311

businessgogit
0
4
513 2026 01 27 11 53 37 Issue 313 Core Utils Layer Violation 08c040c0A

**Date:** 2026-01-27 **Owner:** Claude (research agent) **Phase:** Research **Issue:** [#313 Layer violation: core → utils (18 imports, skips Layer 2)](https://github.com/alchemiststudiosDOTai/tunacode/issues/313)

developmentpythongo
0
4
514 2026 01 27 13 11 55 Issue 314 Lateral Coupling Tools Indexing Lsp B4e5ee7eA

**Date:** 2026-01-27 **Owner:** claude-agent **Phase:** Research **Git Commit:** 1de46c7bba8a7a322fc00b878eb918cf224bd9ae

code-qualitypythongo
0
4
515 2026 01 27 17 28 01 Lsp Panel Integration 3b5673c8A

**Date:** 2026-01-27 17:28:01 **Owner:** agent **Phase:** Research

developmentpythongo
0
4