Split override templates into a light index and a per-template detail tool - #4
Merged
Merged
Conversation
Collaborator
Author
92Infinitus92
force-pushed
the
feat/mcp-template-index
branch
2 times, most recently
from
August 12, 2026 12:40
9ecf2de to
3ce7caa
Compare
92Infinitus92
marked this pull request as ready for review
August 12, 2026 12:40
92Infinitus92
force-pushed
the
feat/pump-protocol
branch
2 times, most recently
from
August 17, 2026 08:33
bb33ae4 to
0606ab5
Compare
92Infinitus92
force-pushed
the
feat/mcp-template-index
branch
from
August 17, 2026 08:33
3ce7caa to
21bb8d3
Compare
92Infinitus92
force-pushed
the
feat/mcp-template-index
branch
from
August 19, 2026 06:03
21bb8d3 to
d508ead
Compare
failfmi
approved these changes
Aug 19, 2026
92Infinitus92
added a commit
that referenced
this pull request
Aug 19, 2026
* Add Pump and PumpSwap state-preparation templates * Document pump template fields and expose the migration authority Give every field of the pump-global, pump-amm-pool-state and pump-amm-global-config templates a label and description (they were bare name lists), and add a field reference to both pump READMEs. Expose Global.withdraw_authority so a migrate can be driven on a fork. Trim the bonding-curve llmContext of its redundant worked example and the niche cost formula. * feat(pump): Token-2022 graduation state preparation Prepare a near-complete Token-2022 pump.fun curve so one buy graduates it: a graduation calculator/validator, the pump-token-2022-curve-balance template with a tail-safe Token-2022 amount write, the /v1/scenarios/pump-graduation endpoint and MCP tool, and an ignored buy_v2 -> migrate_v2 -> sell lifecycle harness backed by a frozen snapshot fixture. * feat(pump): add PumpSwap price shock scenario * test(pump): verify scenario-driven lifecycle * fix(pump): guard SOL-only graduation preset * Split override templates into a light index and a per-template detail tool (#4)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
get_override_templatesreturned every template in full: properties, PDA layout, the whole constant catalog, and a ~160KB IDL inlined per template. An agent had to load all of that just to see what was available.This splits it in two:
get_override_templatesnow returns a light index - id, name, description, protocol, account type, tags, and ahasLlmContextflag. No properties, no IDL, no inlined options.get_override_template(templateId)returns one template's full detail, with each constant summarized as{label, description, optionsCount}instead of the raw option list.The flow is index → pick → detail →
search_constant_optionsfor a concrete value →create_scenario, and the guidance text walks the model through that order.Stacked on #3 (base
feat/pump-protocol); I'll retarget todeveloponce that merges.Greptile Summary
The PR splits override-template discovery into a lightweight index and a separate full-detail lookup.
get_override_template(templateId)with validation for unknown IDs.Confidence Score: 5/5
The PR appears safe to merge because no blocking failure remains.
No blocking failure remains.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR A[get_override_templates] --> B[Pick templateId] B --> C[get_override_template] C --> D[search_constant_options] D --> E[create_scenario]Reviews (4): Last reviewed commit: "Split override templates into a light in..." | Re-trigger Greptile