Open your application project in Codex Desktop or Claude Code and paste this message into the project chat.
Paste into Codex or Claude Code
Follow https://techinceptions.com/products/model-routes/docs/assistant-integration/ in this application project. Install and verify the Model Routes Assistant for this host using the exact 0.4.0 npm release. Then find where the app calls models, and integrate the supported calls with Model Routes Runtime in my development environment. Preserve the app’s current model choices and behavior.
Carry out the integration, run the app’s tests, and check the integrated features in the development app. Use the project and our conversation to resolve questions as you go. Once you’ve verified the app, tell me what worked and finish. If I ask to try it myself, give me the exact launch command that worked for you.
If your coding agent can’t open the link, select Copy instructions on this page and paste them into the same chat.
The prompt covers setup, review, and integration. The coding agent exercises the integrated features when it can and reports what worked. If it needs your help, it asks you to use the app as usual and say what you see. For a four-step walkthrough, see the coding agent guide.
In our Daily Greeter trial, a small app with two model calls using a local test provider, the coding agent took about 7 minutes in Codex and 8 minutes in Claude Code from prompt to final report with the plugin ready. The Claude Code run took about 12 minutes when setup required opening a fresh chat after installing the plugin. Your project may take longer if the coding agent needs to set up the development environment, trace more model calls, or run a larger test suite.
Use the exact 0.4.0 Assistant for your host and the matching Runtime and contracts 0.4.0 in your application.
Work in the client’s application repository. Use this guide for Model Routes behavior, the application’s code and effective settings for how each call works today, and the developer’s project instructions and conversation for scope and intent. Carry setup, discovery and integration through to a testable development build. Resolve routine implementation choices yourself. If a missing permission or a choice that changes application behavior needs the developer, explain the specific decision and continue with the calls you can integrate.
Keep chat updates brief. Name the feature, what you verified, and any decision or action the developer needs to take. Save a diagnostic report under the project’s .local-ai/diagnostics/ with the setup checks, selected build, library, catalog revision, and qualification results. Omit credentials, environment values that may contain secrets, prompts, model responses, and raw command output. If a check is blocked, state what succeeded, the smallest action needed, and where to find the report. The developer decides whether to share it.
Model Routes lets an application use a saved model configuration when a feature makes a request. A Route specifies the primary model, its settings, any ordered backup models, and the policy for trying them. A Route set groups Routes that the app can load together. A single Route is enough for a set. The app maps each integrated call to the stable ID of a Route in that set.
The Assistant is the plugin you use to inspect the project and author Routes. Its bundled Advisor can compare models and recommend settings for a call. Its default heuristic mode uses a model catalog and requires no provider credential. A catalog describes models and their known capabilities. Check account access and actual behavior separately.
The Runtime is the SDK in the application that makes the model request and returns the result and an execution receipt. The app supplies its instructions, input, provider connection, credentials, and tool handlers. The integrated app can run with the coding agent closed.
In the active host, check Node.js 20.19 or newer, npm, registry access, and permission to register the plugin. Keep an exact lockfile and disable npm lifecycle scripts. Use host-supported scoped approvals when needed. In Claude Code, also check that Git is visible to that session and the application has a valid commit and tracked source for discovery.
0.4.0. For new setup, install @techis/ai-codex-plugin@0.4.0 under .local-ai/tools in the profile’s persistent model-routes-assistant directory outside application checkouts. Use the installed onboarding/initialize.mjs with --codex for the current Desktop executable, --project-root for the absolute open application and --installation-root for the shared directory. This merges the marketplace there. Use the selected ai-enablement skill and that registration’s server. See the shared installation guide for commands.@techis/model-routes-claude-assistant@0.4.0 under .local-ai/tools. Merge the techis-model-routes entry pointing to the installed package into the existing project .claude-plugin/marketplace.json, keeping its name, owner and other entries. Register the absolute project root with claude plugin marketplace add, then run claude plugin install techis-model-routes@MARKETPLACE_NAME --scope local using that file’s marketplace name. Open the same project and select /techis-model-routes:assistant. See the per-project installation guide for the template and session-only terminal option.For this integration request, run the selected package’s onboarding/setup-diagnostics.mjs from the application root with --integration codex begin or --integration claude begin as soon as the package is present, before a refresh or new chat. If the host requires a fresh chat, reopen the same trusted project and paste the continuation below.
Finish verifying Model Routes in this project.
Run the same helper with --integration codex resume or --integration claude resume. Reuse the selected installation and the recorded integration checkpoint. Resume at the pending check.
In this conversation, invoke the selected server’s list_route_sets. Match the active skill, server, executable, Assistant version and bundle SHA-256 to the chosen installation. For the default Local library, match the absolute path to .local-ai/authoring under the open project. For an explicitly selected library, verify its intended path or Connected service identity and grants. An empty list from the intended library is a successful read. Report a missing tool, denied approval or store error at its own stage.
Call check_published_catalog separately. Record the verified sequence, delivery hash and facts catalog SHA-256. This public read checks catalog facts independently of the library. If retrieval fails, record the failed stage and the packaged revision available for offline advice. Before any import, verify the exact application catalog in the selected library.
Ask Codex to “Install the Assistant in project isolation for this test.” Install @techis/ai-codex-plugin@0.4.0 or the supplied techis-ai-codex-plugin-0.4.0.tgz under the application’s .local-ai/tools. Run the installed initializer from the application root with --codex, --project-root and --project-isolated. Keep the shared registration enabled. Use the isolated skill and server in the chat and verify their build and library.
Run the existing tests to establish a baseline. Retain their original fixtures, assertions, provider response shapes, and user-interface checks for the post-integration run. Record unrelated existing failures separately. If a required check is missing or worsens, resolve it before qualifying the affected feature. Use the plugin’s installed onboarding/README.md for discovery commands. Trace each finding from a recognizable feature, API endpoint or background job through wrappers to the request that actually leaves the app. Check saved user choices, request overrides and environment defaults to establish which model and settings take effect. Record credential references only.
For each confirmed call, identify its feature and source location, provider and exact model ID, transport, sign-in method, inputs, expected output, and requirements such as tools, streaming, session state, timeouts, retries and cancellation. Follow the response and error paths back to the caller. If the Runtime cannot preserve a feature’s connection or behavior, leave it on its existing path and explain why. If this applies to every call, finish with the compatibility findings. Distinguish confirmed calls from test fixtures, unreachable code and dynamic choices you could not resolve.
Use the installed CLI's route-review-digests command with the reviewed inventory.json and application root to populate the execution review's inventory and source hashes. Derive Routes in preserve-configuration mode. Share one Route when the effective model, settings, retry policy and feature requirements match. Keep distinct saved choices selectable. If the developer asks for model advice, run advise_route even when the local library is empty. Show the current model and settings beside the proposed primary, backups, settings, and rationale. Ask whether to save. On acceptance, save the exact reviewed configuration and read it back. On decline, leave the Route library and the app’s model configuration untouched. When the developer requested only a review, finish at that decision.
Before previewing an import, verify the catalog revision and digest for the intended application namespace in the selected Local store.
Public catalog retrieval and the copy packaged with the Assistant can supply facts for advice. If the project needs a private snapshot,
follow the installed application-catalog registration procedure. The project's own .local-ai/authoring library uses project file permissions
for the reviewed snapshot. Verify the returned source and digest in that library before resuming. Use configured grants for restricted libraries
and Connected Management.
preview_route_import, check the models, settings and destination, then pass that data and its acceptedAuthoringHash to apply_route_import. Keep the import UUID. If the reply is lost, recover it with get_route_import before retrying. Import the assignments into the app using the returned stable Route IDs, Route-set snapshot and content digest.@techis/ai-runtime@0.4.0 and @techis/ai-contracts@0.4.0 and update its lockfile. Use the app’s existing provider connections and credential resolver. Load the imported Route set with createRouteAIClient and capture the workflow with captureWorkflow(). At each integrated call, look up its assigned ID and call workflow.startRun({ routeId, systemInstructions }). Send the original input through the run’s matching API, such as run.responses.create or run.chat.completions.create. Adapt results, streaming events and errors to the interface the feature already uses.Reuse the app’s diagnostic logging or receipt store. If it has neither, use the Runtime’s onExecutionReceipt callback to record the receipt ID, Route ID, model attempts and status alongside the app’s request or job identifier. Keep prompts and credentials out of that log.
For exact import, activation and SDK examples, use the application integration guide. For request shapes, outcomes and receipts, use the Runtime API guide. If a check fails, report the feature, failing step, evidence and what would unblock it. Continue testing other independent features.
After activation, exercise each integrated feature through the normal app in the development environment when you can. Check the visible result and match that same request to its Runtime receipt internally. Record the evidence in project diagnostics and close the integration checkpoint in the same chat with --integration codex finish or --integration claude finish before reporting which features worked, which keep their original path and what remains blocked. Distinguish controlled-provider checks from live checks.
If you cannot run a feature, ask the developer to try it and say whether they saw the expected result. Handle the diagnostic check yourself. Once you have verified the app, end with the result. If the developer asks to try it, give the exact launch command you tested, the working directory, and any runtime or environment setup needed to reproduce your run in their shell. Share receipt lookups and log commands when the developer asks for diagnostic details.