Skip to content

Conversation

ezyang
Copy link
Owner

@ezyang ezyang commented Mar 25, 2025

Stack from ghstack (oldest at bottom):

Some of our tools have TOOL_NAME_FOR_PROMPT and DESCRIPTION but they don't do anything right now. Refactor init_project.py to collect and use these as source of truth, and introduce these for all other tools.

b9c2d48  (Base revision)
fe38426  Adding imports and new function to __all__
e62b085  Adding collect_tool_descriptions function
35a1c5f  Adding the collect_tool_descriptions call
ff64edc  Fixing duplication and preparing for system prompt construction
b4792b2  Adding tool documentation generation logic
5836e37  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to read_file.py
9443e12  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to write_file.py
d31da24  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to edit_file.py
29a4fef  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to ls.py
b7f1bfe  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to think.py
0d17e96  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to glob.py
7587856  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to user_prompt.py
28844fa  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to rm.py
8755cfd  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to run_command.py
948dac2  Auto-commit format changes
HEAD     Auto-commit lint changes

codemcp-id: 210-refactor-use-tool-names-and-descriptions-as-source

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Mar 25, 2025
Some of our tools have TOOL_NAME_FOR_PROMPT and DESCRIPTION but they don't do anything right now. Refactor init_project.py to collect and use these as source of truth, and introduce these for all other tools.

```git-revs
b9c2d48  (Base revision)
fe38426  Adding imports and new function to __all__
e62b085  Adding collect_tool_descriptions function
35a1c5f  Adding the collect_tool_descriptions call
ff64edc  Fixing duplication and preparing for system prompt construction
b4792b2  Adding tool documentation generation logic
5836e37  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to read_file.py
9443e12  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to write_file.py
d31da24  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to edit_file.py
29a4fef  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to ls.py
b7f1bfe  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to think.py
0d17e96  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to glob.py
7587856  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to user_prompt.py
28844fa  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to rm.py
8755cfd  Adding TOOL_NAME_FOR_PROMPT and DESCRIPTION constants to run_command.py
948dac2  Auto-commit format changes
HEAD     Auto-commit lint changes
```

codemcp-id: 210-refactor-use-tool-names-and-descriptions-as-source
ghstack-source-id: 506ff15
Pull-Request-resolved: #204
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