Skip to main content

Terminal coding agent with a PydanticAI backend and first-party Go TUI

Project description

just-another-coding-agent

read_when: you need the repo overview, scope, or setup commands

Terminal coding agent with a PydanticAI backend and a first-party Go TUI.

This repo preserves the product shape of pi's coding agent while rebuilding it as a clean Python implementation around PydanticAI. It does not inherit pi-mono's monorepo layout, extension ecosystem, or migration burden.

It is intentionally narrow: coding-agent backend first, a thin first-party terminal UI, strict contracts, no fallbacks, and no compatibility glue. PydanticAI should provide as much of the agent machinery as possible; local code exists to define and enforce the coding-agent product contract.

Scope

  • Headless coding-agent runtime
  • Thin first-party terminal UI built on the same runtime
  • File and shell tools
  • Streaming run events
  • Session persistence
  • JSON-over-stdio RPC for non-Python consumers

Non-goals

  • General-purpose agent framework work
  • Backward compatibility layers
  • Legacy migration shims

Project Layout

  • cmd/jaca/ - Go TUI entrypoint
  • internal/jaca/ - Go TUI client, rendering, config, and RPC bridge
  • src/just_another_coding_agent/ - canonical Python package
  • src/just_another_coding_agent/runtime/ - runtime and orchestration entrypoints
  • src/just_another_coding_agent/tools/ - coding tools
  • src/just_another_coding_agent/session/ - session persistence
  • src/just_another_coding_agent/rpc/ - RPC transport
  • src/just_another_coding_agent/contracts/ - public contract helpers and schemas
  • tests/ - unit tests first, e2e later
  • docs/ - scope, architecture, contracts, ADRs, development

Install

For normal use outside a repo checkout, use the published uv tool path:

uv tool install just-another-coding-agent
jaca
uvx --from just-another-coding-agent jaca
  • uv tool install is the persistent daily-use path
  • uvx is the ephemeral no-install path
  • published wheels already bundle jaca-go and jaca-read-only-worker, so normal installs do not require a local Go toolchain
  • installed builds update explicitly with:
uv tool upgrade just-another-coding-agent

JACA does not auto-upgrade or self-reinstall on startup. Installed builds may show a small in-app update chooser when a newer published version is available. The current launch uses cached version info, and JACA refreshes that cache in the background for the next launch so startup stays fast. You can update immediately, snooze the notice for a day, or skip that exact version until something newer is published. /version prints the installed version, the newer published version when one is known, and the exact uv tool upgrade command when the current install supports it.

Repo Setup

uv sync --extra dev --extra test
uv run ruff check .
uv run vulture src evaluations --min-confidence 80
go run honnef.co/go/tools/cmd/staticcheck@v0.6.0 ./...
uv run pytest

Or run the combined lint pass with:

make lint

That default uv sync --extra dev --extra test path is for the Python backend, Terminal Bench flows, and headless evaluation work. It builds the persistent jaca-read-only-worker, but it does not build the packaged jaca-go binary.

If you want to exercise the packaged TUI binary from a repo checkout, rebuild the package explicitly with Go enabled:

JACA_BUILD_TUI=1 uv sync --reinstall-package just-another-coding-agent --extra dev --extra test

Run

Launch the long-lived stdio RPC server with explicit backend configuration:

uv run just-another-coding-agent \
  --model <provider:model> \
  --workspace-root /abs/path/to/workspace \
  --sessions-root /abs/path/to/sessions

The process reads one JSON RPC request per stdin line and writes one or more JSON lines to stdout.

Launch the first-party terminal UI:

uv run jaca

In a repo checkout, uv run jaca is the canonical development launcher. The interactive launcher talks to the Python backend over stdio RPC.

In a live repo checkout, uv run jaca prefers the installed jaca-go binary when it is present, and otherwise falls back to go run ./cmd/jaca when go is available. That keeps normal development unblocked even if the packaged TUI binary has not been rebuilt yet.

Outside a repo checkout, the installed jaca command launches the installed jaca-go binary.

If uv run jaca says the Go TUI binary is missing and go is not available in the repo checkout, rebuild the environment with:

JACA_BUILD_TUI=1 uv sync --reinstall-package just-another-coding-agent --extra dev --extra test

First Run

The TUI keeps non-secret provider, model, and trace preferences in ~/.jaca/config.json. Provider secrets are backend-owned and stored in the local OS keychain by default. When keychain storage is unavailable, JACA stores them in ~/.jaca/auth.json instead and explains why in the auth panel. Environment variables remain the explicit override for headless, CI, and evaluation flows. On Linux/WSL, interactive /login requires a supported OS keychain backend such as Secret Service via gnome-keyring.

On first launch without a usable saved login lane, JACA opens a centered chooser panel before chat. The supported login lanes are:

  • ChatGPT subscription via /login openai-codex
  • OpenAI API key via /login openai
  • Anthropic API key via /login anthropic

If a saved cloud-provider selection is still missing credentials, JACA starts masked auth immediately at startup instead of waiting for the first /login or /model command. When auth starts, JACA opens a centered secure setup panel: provider-specific labeling, masked input, no transcript/history capture for the secret, and backend-owned storage on save. On first run, the prompt footer also tells the user to press Tab to choose a login lane or model directly from the prompt zone.

Inside jaca:

  • /login openai-codex starts ChatGPT subscription login
  • /login openai and /login anthropic prepare ~/.jaca/auth.json if needed and show the exact JSON snippet to paste
  • /login status shows whether each login lane is ready and where the current secret came from
  • /login clear <provider> removes the stored local secret for that provider
  • /model shows runnable models first, marks ready rows with a check, and uses public-style labels such as gpt-5.4 | api and gpt-5.4 | oauth
  • /model <provider:model> switches the active model and aligns provider state to that model
  • /name <text> assigns a durable backend-normalized session name such as auth-store-cleanup and keeps it unique within the current workspace
  • /session shows the current durable session name, opaque session id, and any direct fork parent
  • /trace off disables tracing
  • /trace local stores spans locally under ~/.jaca/traces/
  • /trace logfire exports spans to Logfire

To continue a named or known session later:

jaca resume auth-store-cleanup

If you omit the reference, jaca resume shows the recent sessions from the current workspace, even when there is only one session, caps the picker to the most recent ten, and lets you choose one by number. This picker requires an interactive terminal. Resumed and forked sessions also hydrate a bounded recent-history preview into the transcript instead of trying to render the entire saved session.

To branch a current-workspace session into a new one:

jaca fork auth-store-cleanup --name auth-store-cleanup-followup

If you omit the reference, jaca fork uses the same current-workspace picker as jaca resume. Forked sessions keep durable lineage to their direct parent and start as a new session with copied history instead of mutating the original thread.

Tracing is off by default. Published installs already bundle the tracing dependencies, and repo checkouts get them from the normal uv sync setup. When /trace logfire is not ready yet, JACA tells the user to install Logfire, run logfire auth, run logfire projects use <project>, retry /trace logfire, and use /trace local until Logfire is ready.

If interactive login starts on a machine without a supported OS keychain backend, JACA goes directly to the local secret file flow and explains that it is doing so because keychain storage is unavailable.

For direct Go TUI development, pass the backend command explicitly:

go run ./cmd/jaca \
  --backend-command-json='["uv","run","python","-m","just_another_coding_agent"]'

Docs

  • docs/README.md
  • docs/goal.md
  • docs/tui.md
  • docs/architecture.md
  • docs/contracts.md
  • docs/grounding.md
  • docs/development.md
  • docs/adr/

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

just_another_coding_agent-0.1.24.tar.gz (621.4 kB view details)

Uploaded Source

Built Distributions

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

just_another_coding_agent-0.1.24-py3-none-win_amd64.whl (5.8 MB view details)

Uploaded Python 3Windows x86-64

just_another_coding_agent-0.1.24-py3-none-manylinux_2_17_x86_64.whl (5.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

just_another_coding_agent-0.1.24-py3-none-macosx_11_0_arm64.whl (5.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

just_another_coding_agent-0.1.24-py3-none-macosx_10_12_x86_64.whl (5.3 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file just_another_coding_agent-0.1.24.tar.gz.

File metadata

File hashes

Hashes for just_another_coding_agent-0.1.24.tar.gz
Algorithm Hash digest
SHA256 160bef5b9ad28eb198180a14be1f011751b3cb9085789a69edc4ec100d1a3f34
MD5 f526f944c69d1b56ef0e5bcc052ec4bd
BLAKE2b-256 8b8e09c37e6b41567f1ed5c09f9c59a668d16864f32d299db8a27626def5401f

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_another_coding_agent-0.1.24.tar.gz:

Publisher: release.yml on SahilDahiya/just-another-coding-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file just_another_coding_agent-0.1.24-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for just_another_coding_agent-0.1.24-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 55173e31ebf164e55d84cbe847c93db6b42286c9acb11cbefcc59a69d9215f4f
MD5 2893c3cd5c2ff05b2a0986019f10c935
BLAKE2b-256 195841453151c8d6cce0157dfed310b2929d80cf59203db25948b634813ceec2

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_another_coding_agent-0.1.24-py3-none-win_amd64.whl:

Publisher: release.yml on SahilDahiya/just-another-coding-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file just_another_coding_agent-0.1.24-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for just_another_coding_agent-0.1.24-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 7d8f17ada6ec13ead8d3ba9866815b620714e9c23be69765044a4a33cf00b10b
MD5 83f8df5edff397c1647de4d3bf67fce8
BLAKE2b-256 adcde41260d0d8adb657020cffb476b7348e7e969f241fd4f032543f602bcaa5

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_another_coding_agent-0.1.24-py3-none-manylinux_2_17_x86_64.whl:

Publisher: release.yml on SahilDahiya/just-another-coding-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file just_another_coding_agent-0.1.24-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for just_another_coding_agent-0.1.24-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 916ea200582cb3eba7e8a426aab4a56b63919fafa2dada1d116f01a0041644c3
MD5 d5eb7d9fcc502079a729cfc35d66b50c
BLAKE2b-256 1d225edd73abfd33c306588ff60a62cf85d0d74fe62c11e627b4e62507b6fe95

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_another_coding_agent-0.1.24-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on SahilDahiya/just-another-coding-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file just_another_coding_agent-0.1.24-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for just_another_coding_agent-0.1.24-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e753b1699f94e43999d937a463c60a73b4283dfb925c977d9ee7a1189cafe698
MD5 95919e6d63a2ba0635b0f2f19bfa398b
BLAKE2b-256 00b09259662aa01de78a480e7766d552ece31ccfe601ed00e14f6b3874e16bbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for just_another_coding_agent-0.1.24-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yml on SahilDahiya/just-another-coding-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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