Add Prompts and Tools tabs to debug page
Backend:
- GET /agents/prompts — returns full built system prompt for every
  profile, broken into sections (persona / profile / profiles block)
  with char/token counts; mirrors Agent._build_system_prompt() exactly
- GET /agents/tools — now includes parameters schema alongside name
  and description

Debug page:
- Tab bar: Context / Prompts / Tools
- Prompts tab: profile sidebar + collapsible sections per prompt part
  (persona, profile prompt, profiles block), togglable tools list
- Tools tab: searchable list of all tools with description and
  parameter table (name, type, description, required marker)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4bba9fb commit d8ce61ac9bbc58f726fa0e930c7c069adc9eaac9
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 17 Apr
Showing 2 changed files
View
debug/index.html
Too large (Show diff)
View
navi/api/routes/agents.py