Documentation
DocsBuild with AppJet

Work with your codebase

Use AppJet to understand, debug, refactor, and document an existing GitHub codebase. Follow practical prompts and verify changes before merging.

Use AppJet to understand, debug, refactor, and document an existing GitHub codebase. The AI agent reads project files, edits code across files, and runs supported checks. You keep the repository and review the changes before merging.

Code understanding

Open your repository and ask for a map of the application:

Analyze this repository. Identify the framework, entry points, API routes, data models, and authentication flow. Reference the files that implement each part.

Then trace a specific feature or dependency:

  • Where does the app connect to Postgres, and which environment variables does it use?
  • How are users authenticated, and where are permissions checked?
  • Which functions export data to S3?

Search your code

Find the files and functions behind a behavior:

Find the API route, request handler, and storage code used when a user uploads a file. Explain how they connect.

Include a route, error message, function name, or user action to narrow the search.

Fix bugs

Give AppJet the error and the steps that reproduce it. Ask for a fix and a check that exercises the failing behavior:

Uploading a file returns 404 from POST /api/uploads. Trace the request from the form to the server route, fix the cause, and verify the upload flow. Report the files changed and the check results.

Review the code and check results, then reproduce the workflow in the app. See tasks and verification for saved progress and follow-up work.

Refactor your code

Use AppJet to update dependencies, replace deprecated APIs, and restructure code. Specify the target version or behavior you need to preserve:

Refactor the database connection code into one module. Preserve the existing environment-variable names and query behavior. Update the callers and run the relevant tests.

For a version upgrade, ask AppJet to identify breaking changes and verify compatibility with the project’s dependencies.

Comment functions and create documentation

Generate documentation from the code in your repository, including projects created outside AppJet:

Write a README covering setup, required environment variables, local development, tests, and deployment. Check the commands against the repository and identify any missing configuration.

Ask for focused comments where a function’s behavior or constraints need explanation. Review generated instructions against the code and working commands.

Compare branches

Ask AppJet to compare the files and behavior changed between branches:

Compare the appjet branch with the default branch. Summarize the changed features, API behavior, configuration, and tests to review before merging.

Check the selected branch before making changes. AppJet normally works on the appjet branch; review and merge changes into your default branch when ready.