Skip to content

Create the agent and tools#3

Open
matthew-jin wants to merge 1 commit intohex-inc:mainfrom
matthew-jin:feat/sql-agent-tools-and-index
Open

Create the agent and tools#3
matthew-jin wants to merge 1 commit intohex-inc:mainfrom
matthew-jin:feat/sql-agent-tools-and-index

Conversation

@matthew-jin
Copy link

Create the agent and tools

Build an in-memory AgentIndex at startup that scans all 76 DB schemas
(tables, columns, sample rows) and maps 16 markdown guide files to their
schemas via dynamic title parsing. Add 5 new tools backed by this index:
list_schemas, list_tables, describe_table (instant, index-backed),
run_query (live DB), and get_business_rules (index-backed). Enhanced
system prompt with mandatory workflow, efficiency rules, DuckDB tips,
no-ROUND rule, and output verification. Added context compression,
per-worker tool dedup caches, iteration-15 nudge, and malformed tool
call recovery.

Results: 78.1% easy (50/64), 48.4% hard (31/64).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant