Skip to main content
Glama

Coador

Give AI agents a map of your Android project before they start reading the code.

Coador scans an Android repository locally and deterministically - without an LLM - and builds a structured, evidence-backed knowledge base covering the project architecture, Gradle configuration, test infrastructure, UI selectors, CI/CD, and other high-value context.

Agents query that knowledge first, then inspect only the files required for the task.

Faster context. Less repeated discovery. Lower token usage.

Coador turns an Android repository into a local knowledge base that AI agents can query instead of repeatedly re-reading and rediscovering the entire project.

The key idea behind Coador is simple: the scanning itself does not use AI or an LLM.

Coador deterministically analyzes an Android project, extracts the information most useful for development and test automation, and stores it in a structured form: architecture signals, Gradle configuration, modules and dependencies, test infrastructure, UI selectors, deep links, CI/CD, test runners, fixtures, dependency-injection overrides, and other project-level knowledge.

As a result, an AI agent does not need to rediscover a large repository from scratch for every new task - searching for the right Gradle files, reconstructing the module structure, identifying the test framework, or figuring out how UI tests are organized.

Instead, the agent can query an already prepared knowledge base and retrieve a compact answer focused only on the part of the project it currently needs.

This reduces repeated repository discovery, lowers the amount of source code that has to enter the model context, and reduces unnecessary token consumption.

Why no AI in the scanner?

Coador deliberately separates fact extraction from AI interpretation.

The repository is scanned locally by specialized deterministic detectors. They do not generate architectural descriptions and do not try to guess how the project is designed. Coador records only signals that can be supported by source files, Gradle configuration, or repository structure.

For example, instead of claiming:

This project uses Clean Architecture.

Coador may report:

domain, data, and feature modules were found, together with the observed dependencies between them.

The agent receives evidence rather than a pre-generated interpretation and can reason about that evidence itself.

Whenever possible, Coador also preserves the provenance of each finding: the source file and exact source lines, a file-level observation, or a value obtained from the configured Gradle model.

Related MCP server: context-atlas

How it works

Coador scans an Android repository and builds a structured local profile of the project. The analysis covers nine main areas:

Layer

What it covers

Project overview

Repository identity, structure, applications and UI signals

Gradle and build

Build system, SDKs, variants, tasks and configuration

Architecture

DI, networking, persistence, navigation, state and concurrency

Modules

Module inventory, types and observed dependencies

Configuration

Environments, build config, resources, secrets and feature flags

Dependencies

Libraries and versions grouped by stack

Testing

Unit and instrumentation tests, runners, fixtures and test tasks

UI testing

Frameworks, screen objects, selectors, deep links and components

CI/CD

Pipelines, devices, reports, artifacts, retries and notifications

The complete catalogue currently contains 84 detectors and is generated in docs/detectors.md.

The resulting knowledge is stored locally and can be consumed both by developers and by AI tools. Developers get a CLI and human-readable Markdown views. AI agents get an MCP interface for reading the project overview, searching for information, and retrieving individual sections with supporting evidence.

Android repository
        ↓
Coador scan
        ↓
structured local knowledge base
        ↓
AI agent queries only the information it needs
        ↓
agent opens specific source files only when required

Coador produces two kinds of findings. A signal reports an observed capability and samples its evidence. An inventory retains collected values such as deep links, exported components and literal UI test selectors. Inventories declare whether they are complete, incomplete or unknown within their documented collection boundary.

The default scan reads repository text and needs no Android toolchain. An optional --gradle pass asks a trusted project's configured build for facts that static text cannot resolve, such as variants declared by convention plugins. Every section says whether its source is heuristic or gradle.

Practical example

Suppose an AI agent needs to add a new Android UI test.

Without Coador, the agent may first need to discover:

  • where instrumentation tests are located;

  • which test runner is used;

  • whether a shared base test exists;

  • how screen objects or robots are structured;

  • whether the project uses Espresso, Kaspresso, or Compose testing;

  • how authentication is handled in tests;

  • which selectors already exist;

  • whether test DI or fake dependencies are available;

  • how the test is executed locally and in CI.

In a large repository, answering these questions can require inspecting dozens of files before the actual task even begins.

With Coador, much of that information has already been collected and structured. The agent can query only the test infrastructure, selectors, or CI configuration it needs and then open a small number of specific source files required for the implementation.

For example, connect an agent to the recorded Now in Android revision and ask:

You: How do I add and run an instrumentation UI test in this project?

Agent: Put the test beside the existing app tests under app/src/androidTest. Follow their Hilt/Compose setup: @HiltAndroidTest, HiltAndroidRule first, then createAndroidComposeRule<MainActivity>(). The app selects NiaTestRunner, which starts HiltTestApplication. Shared fakes replace production bindings through @TestInstallIn. CI runs the observed task ./gradlew connectedDemoDebugAndroidTest. That task is a source-backed reference, not a complete Gradle task enumeration.

The answer is compact, but each claim remains connected to evidence that the agent or developer can inspect.

Local and verifiable

By default, Coador works locally. Its standard analysis does not require:

  • an LLM;

  • an embedding model;

  • a vector database;

  • an external API;

  • Docker;

  • uploading repository source code to an external service.

The generated project profile is deterministic: the same repository state and scan configuration are expected to produce the same structured result. This makes the knowledge base suitable for keeping alongside the project, updating it with the codebase, and reviewing its changes like any other generated project artifact.

profile.json is the machine-readable source of truth. Markdown layers are a human projection of that profile. Exact source evidence contains repository-relative paths, one-based ranges and a snapshot digest. File-level and Gradle-model findings use their own provenance forms without fabricated line numbers.

Generated source-derived fields pass through shared sanitization for common secrets, but sanitization is not a guarantee that private output is safe to publish. Review a generated knowledge base before sharing it. The full trust boundary is documented in SECURITY.md.

Coador collects no telemetry from scanned projects. Its default scan does not access the network. Package installation and the explicitly requested Gradle pass have their own network and trust boundaries.

Not a replacement for source code

Coador does not try to eliminate source-code inspection by AI agents. Its purpose is to eliminate repeated broad repository discovery.

When an agent needs to modify a particular feature, it still opens the relevant production and test files. What it no longer needs to do is repeatedly reconstruct the overall architecture, test infrastructure, Gradle setup, and CI workflow from scratch.

Coador acts as a pre-built map of the project: compact, structured, local, and backed by source evidence.

The map has explicit limits:

  • The default pass performs pattern matching rather than compilation. Missing heuristic evidence is not proof that a capability is absent.

  • Convention plugins, generated build logic and dynamically created variants may require the optional Gradle pass.

  • coador scan --gradle executes the target build's configuration and should be used only with a trusted project.

  • Inventory completeness applies to the detector's documented source boundary, not to every value that could exist at runtime.

  • The metadata freshness fast path cannot detect a content change whose path, size and modification time were deliberately preserved; use --force in that case.

  • Coador complements symbol navigation, semantic search, build tools and device automation. It does not replace them.

Installation

Coador requires Python 3.11 or newer. Run version 0.1.0 without a permanent installation through uvx:

uvx --from coador==0.1.0 coador --version

To use the current checkout:

git clone https://github.com/automaticqa/coador.git
cd coador
uv sync --all-extras
uv run coador --version

An editable pip installation is also supported:

python -m pip install -e '.[dev]'

CLI

The CLI exposes six commands:

Command

Purpose

scan

Build or refresh the knowledge base

status

Report whether the stored knowledge is current

layers

List the nine knowledge layers

overview

Show a one-screen project map

search

Search sections with identifier-aware lexical ranking

show

Read one layer or section with its evidence

Run the basic workflow from an Android repository:

coador scan
coador overview
coador search "where do the base URLs come from"
coador show 03_architecture di_framework

Every command supports --json. Use --kb-dir to keep generated output outside the Android checkout. Use coador scan --force when source metadata cannot be trusted. For a trusted project with a JDK and Gradle wrapper, coador scan --gradle adds the configured Gradle model.

By default, generated knowledge lives here:

.coador/
  .refresh.lock
  manifest.json
  profile.json
  layers/

The scanner reads Android source and build configuration without changing them. It writes only to the selected knowledge-base directory and never edits the target repository's .gitignore. The selected destination is excluded from scanning and freshness fingerprints.

The .coador/ directory is designed to be committed when a team wants the project map reviewed and available without a local rescan. Hand-written Markdown above each layer's <!-- GENERATED:BEGIN --> marker survives refreshes.

MCP

coador mcp (also available as coador-mcp) serves one repository over MCP stdio with six kb_* tools and matching kb:// resources. Register an explicit Android repository so the server cannot silently follow an unrelated working directory:

codex mcp add coador -- uvx --from coador==0.1.0 coador mcp \
  --repo "/absolute/path/to/your/android/project"
codex mcp list

Open Codex in the Android project, use /mcp to verify the server, and ask a project question. A useful first prompt is:

How should I add an instrumentation test to this project? Identify the runner, application, observed test tasks, dependency overrides, helper or robot to extend, and useful selectors. Cite the repository evidence for each answer.

Configuration can also use COADOR_REPO and COADOR_KB_DIR. See docs/mcp.md for trusted project-scoped configuration, paths with spaces, multiple repositories, Claude Code and other MCP clients.

Examples

Start with the local synthetic example to explore the current profile schema without a network or Android toolchain. For the pinned Now in Android walkthrough, generate the current CLI view outside the downloaded checkout:

git clone https://github.com/android/nowinandroid.git
git -C nowinandroid checkout 12f80da6518e161ed16a06a68e71fb8a873576d6
uvx --from coador==0.1.0 coador scan nowinandroid --kb-dir ../nowinandroid-coador
uvx --from coador==0.1.0 coador show 07_testing instrumentation_runner \
  nowinandroid --kb-dir ../nowinandroid-coador
uvx --from coador==0.1.0 coador show 07_testing test_tasks \
  nowinandroid --kb-dir ../nowinandroid-coador

The relevant output distinguishes evidence from limitations:

$ coador show 07_testing instrumentation_runner nowinandroid --kb-dir ../nowinandroid-coador
Instrumentation Runner (instrumentation_runner)
Detected: Observed: runner: androidx.test.runner.AndroidJUnitRunner, com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner
source: heuristic

  app/build.gradle.kts:38  testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"

  limitation: Static scanning cannot resolve runner configuration supplied only by convention plugins or generated build logic

The evidence-first onboarding recipes add walkthroughs for CI instrumentation, launch targets and selectors, and Android Test Orchestrator isolation across three pinned public repositories.

Project status

Coador 0.1.0 is the first public release (2026-09-17). The package contains 84 detectors across nine layers, a local CLI, an MCP stdio server, optional Gradle probing, deterministic JSON/Markdown output, evidence provenance, inventory pagination, freshness checks and recovery from damaged generated output.

The configured CI matrix targets Linux on Python 3.11–3.13 and Windows/macOS on Python 3.12. Network and real-project Gradle checks remain opt-in.

For development:

uv sync --all-extras
uv run pytest
uv run ruff check src tests
uv run ruff format --check src tests
uv run mypy
uv run python -m coador.registry --check
uv build

COADOR_INTEGRATION=1 uv run pytest -m slow additionally clones pinned public Android repositories; the Gradle case requires a suitable Android/JDK toolchain. Contributors can start with the starter contribution tasks. Optional public usage feedback follows the privacy boundaries in docs/adoption.md.

License

MIT. See LICENSE.

Available Tools

6 tools
kb_get_sectionA
Read-only

Read one section: what was detected, and the facts that prove it. Inventory items are paged; pass next_cursor back as cursor. Section ids come from kb_list_layers, kb_search or kb_overview.

Inputs: layer_id (required), section_id (required), limit, cursor. Returns: object

kb_list_layersB
Read-only

List the layers of the knowledge base and how much each one detected.

Inputs: no named parameters. Returns: result

kb_overviewA
Read-only

What kind of project this is: stack, variants, modules and testing, in one answer. Call this first.

Inputs: no named parameters. Returns: object

kb_refreshA
Idempotent

Rescan the repository. Only needed when kb_status reports the knowledge base as missing or stale; a scan of a large project takes a few seconds.

Inputs: force, evidence_limit. Returns: object

kb_statusB
Read-only

Report whether the knowledge base exists and is current.

Inputs: verify_content. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a distinct role: status checks existence, refresh rescans, overview gives project summary, list_layers shows structural layers, get_section reads detailed sections, and search finds content by query. The descriptions explicitly clarify when to use each, with no overlapping purposes.

    Naming Consistency4/5

    All tools share a consistent kb_ prefix and snake_case style, making them predictable. However, the pattern mixes bare verbs (kb_search, kb_refresh) with noun forms (kb_status, kb_overview) and verb_noun forms (kb_list_layers, kb_get_section), a minor deviation from a uniform convention.

    Tool Count5/5

    Six tools is well-scoped for a read-only knowledge base server. Each tool covers a necessary part of the discovery and retrieval workflow, with no redundant or missing operations.

    Completeness5/5

    The set covers the full lifecycle: checking KB status, refreshing when stale, getting an overview, listing layers, reading sections with paging, and searching. This provides complete coverage for navigating and querying the knowledge base.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides on-demand access to AOSP and Jetpack source code to help AI understand Android framework internals. It features a hybrid architecture using Tree-sitter and LSP for precise code extraction, cross-file navigation, and local source indexing.
      11
      102
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to query a local, versioned knowledge graph of a software project, retrieving overviews, context packs, evidence, and explanations to make informed changes.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI coding agents to build and query local repository memory, returning ranked files, context packs, relationship maps, semantic recall, and feedback-tuned search without uploading code.
      9
      270 PyPI
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to interrogate a local repository deterministically for symbols, dependencies, call paths, routes, tests, and Git impact, returning verified structured evidence with exact line citations instead of requiring the whole codebase to be read.
      56 PyPI
      4
      MIT