Inkspect

How Inkspect works

A diff is only
the beginning.

Find the context. Follow the question. Bring back a finding worth your attention.

Follow a review
  1. 01Read the change

    The diff and its intent

  2. 02Gather context

    Related code and rules

  3. 03Search deeper

    The questions that remain

  4. 04Explain the finding

    Evidence and a next step

Context has
more than one source.

Some connections are ready to retrieve. Others emerge as the review asks better questions. Inkspect uses both.

RAG

Start with relevant context.

Retrieval-augmented generation brings related code, tests, and selected team documentation into the review. Semantic matches and exact names help find useful starting points.

Related ruleInvoice access policy
Related functionassertWorkspaceMember
Related testsWorkspace access cases

The change arrives with context behind it.

Dynamic search

Follow what needs an answer.

As questions emerge, Inkspect reads the relevant files, looks up symbols, and follows their references. The next search is guided by what the review still needs to understand.

  1. Where is this handler called?getInvoice
  2. What does the middleware check?requireSession
  3. Where should access be enforced?invoice.workspaceId

Each question gives the next search a purpose.

See the context
change the review.

A new invoice endpoint looks straightforward. Follow the review to see why the surrounding code matters.

A closer look at one pull requestExample review
The pull request

Start with what changed.

A new endpoint returns an invoice by its ID. Inkspect starts with the diff and the surrounding function to understand the behavior being introduced.

Who is allowed to read this invoice?

src/api/invoices.tsNew handler
export async function getInvoice(req) {
  const id = req.params.id;
  const invoice = await db.invoice.findUnique({
    where: { id },
  });
  if (!invoice) throw new NotFoundError();
  return invoice;
}
  • Pull request diffThe new invoice lookup
  • Surrounding functionInputs, query, and return path

Illustrative walkthrough using prepared code and findings.

A closer look.
Within clear boundaries.

The right revision
Findings are tied to the code being reviewed. Retrieved snippets are checked against that revision.
The right scope
Repository access defines where a review can look. Your team chooses the repositories it connects.
An honest conclusion
A finding should explain its evidence. When context is missing or review scope is limited, that limitation belongs in the result.

Context for your whole team

One codebase.
Human and AI teammates.

Find your way around the project. Give your AI assistant the same understanding.

Ask the codebase. Learn the project.

A conversation with your project, grounded in its code.

Inkspectacme / billingExample project
Project questions2 sources connected
You

Where should I check workspace access for an invoice?

Inkspect

Check workspace membership before returning the invoice. A signed-in session identifies the user; it doesn’t grant access to every workspace.

src/auth/membership.tsHelper
await requireWorkspaceMember(
  user.id, invoice.workspaceId
);
Try an example question
Sources includedPrepared answers · interactive demo

Bring context to your AI workflow.

The same project knowledge, ready for your next task.

Context pullCLI concept
acme/billingmain

Add a workspace access check to invoice reads.

Relevant context
src/auth/membership.ts
docs/access-policy.md
Ready for your assistant

Check membership before returning workspace data.

await requireWorkspaceMember(
  user.id, invoice.workspaceId
);
Task + code + source references
Illustrative workflow · no commands are run

A little more
about the process.

Can a new teammate learn the project by asking questions?

Yes. The dashboard lets your team talk to the codebase. A teammate asks a question about the codebase, and RAG retrieves relevant code and documentation to ground the answer, with source references they can explore. Answers should explain when the retrieved context is incomplete instead of guessing.

How does CLI context pull help my AI assistant?

The CLI takes a task description and retrieves relevant project context to pass alongside your AI prompt. This avoids putting the whole repository into every prompt. The repository still needs indexing, and an assistant may need targeted follow-up reads.

Why use both RAG and dynamic search?

RAG gives the review a relevant starting point from indexed code and documentation. Dynamic search follows questions that emerge during the review, using exact symbols, file reads, references, and tests. The two approaches work together to build the context behind a finding.

Does dynamic search mean searching the web?

Here, it means exploring the connected repository as the review progresses. A question about a function can lead to its callers, middleware, or tests. It is targeted code search within the review’s permitted scope.

What happens when the code changes during a review?

The review is tied to a specific revision. Retrieved context is checked against that revision before it supports a finding. A new commit is a new review scope, so findings from an older revision should not be presented as a review of the new code.

Does Inkspect apply the fix or merge the pull request?

Inkspect explains the finding and suggests a next step. Your team evaluates the suggestion, runs its checks, and decides what to apply and merge. A recommendation to add a test does not mean that test has already been run.

The context is clearer.
The call is still yours.

Use Inkspect Cloud or run it on your own infrastructure.