Skip to main content

Local-first repo intelligence and agent fixing for Codna.

Project description

Codna CLI

Codna is a local-first code intelligence and fixing CLI. It maps a repository, builds focused evidence for the agent, applies patches through the local Codna runtime, and reports verification evidence without requiring users to manage a separate local database or engine stack.

Install

pip install codna

Codna supports Python 3.10 and newer on macOS and Linux.

Common Commands

codna doctor
codna doctor --start-stack
codna triage .
codna fix . --issue "describe the failing test or production bug"
codna mcp

codna doctor is read-only by default. codna doctor --start-stack starts the owned local runtime when you explicitly ask for it. Normal fix and benchmark paths use the same runtime contract.

What Codna Runs Locally

The base install includes the local Arrow/Parquet artifact dependency required for repository-intelligence step history. Clean installs include a packaged local repository backend for snapshot, triage, sidecar-backed fix planning, deterministic patch simulation, and explicit local-branch apply.

Codna's normal local product path uses the local Algenta SDK/core in process for repository intelligence. No local Postgres is required. Local runtime state is kept under the user's Codna runtime directory, and the agent sidecar is started only when needed.

MCP

Codna can run as a local MCP server for editors and agents that support MCP:

codna mcp

Use this when Cursor, Claude, or another MCP-compatible client needs Codna's repo understanding as a local tool.

Optional Local Memory

Optional local code-memory support is available through:

pip install "codna[memory]"

The memory extra uses the public Telys SDK for on-device retrieval. It installs public Python dependencies only; the signed native runtime is installed separately:

telys runtime install --file <bundle> --license <license.jwt>

Codna also supports release builds that include signed native Telys runtime artifacts for supported platforms. Source distributions intentionally exclude bundled native runtime artifacts.

Security And Local Files

Codna is designed for local-first operation:

  • Secrets are never required in source control.
  • Local runtime state and logs stay on the user's machine.
  • Generated release artifacts are not included in source distributions.
  • Secrets, local runtime state, logs, .env files, key files, and bundled native runtime artifacts are excluded from source distributions.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codna-0.1.4.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codna-0.1.4-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file codna-0.1.4.tar.gz.

File metadata

  • Download URL: codna-0.1.4.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for codna-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3e6c14421f95913e006c0c19951119efdaf06f4d64beddc3a50378725efd39ec
MD5 e639cf92e659f06324c708e229bec502
BLAKE2b-256 428294e1da7493ce66eecfae255d7a4efdf66e366b3de0b8f6bcba3d08f9a68f

See more details on using hashes here.

File details

Details for the file codna-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: codna-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for codna-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d6d9a4c87fb6359410cd51610478db6d0238e60984f3aabcf0de673fe07ff342
MD5 26335e52e9dd90d1b6d86b4a45ecb59f
BLAKE2b-256 9964dc8eeb4c349b011f8b453023e3c6ee1d7b9e7e81facec5e3834065d006a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page