Skip to main content
Glama

Why Ajia Harness?

  • Official-CLI Compliant: Calls local codex / claude CLIs directly with your own login—no credential scraping, no relay proxy, no ToS bypass.

  • Worktree isolation. Each write task runs in its own Git worktree until its changes are merged.

  • Contract Guardrails: Host-enforced allowed_paths, forbidden_paths, and trusted verify_commands—auto-rework on violations.

  • Merge policy. The default coder role enables automatic review. Low-risk changes that pass the configured checks and AI review can merge without a click. Changes escalated for human approval wait for your decision in the control tower.

  • Zero-Config Plugin: Auto-bootstraps venv & daemon on first use, zero telemetry.


Related MCP server: aico

Key Features & Inspirations

  • Worktree Bootstrap (inspired by T3 Code): .worktreeinclude + on_worktree_create hooks for .env & ignored deps.

  • Round Checkpoints (inspired by T3 Code): Private Git ref snapshots (refs/ajia-checkpoints/...) with one-click rollback.

  • Incremental Prechecks (inspired by OpenCode): Changed-file-only static checks (py_compile, ruff, tsc) before full tests.

  • Live Activity Stream (inspired by OpenCode): Real-time timestamped reads, edits, commands, and review steps.

  • Token & Cache Ledger (inspired by DeepSeek Harness): Per-round Coder/Reviewer token usage, cache hit rate, and stage duration.

  • Review pipeline. Path checks, hooks, prechecks, Git commit hook preflight, host verification, and read-only AI review feed the merge decision.


Quick Start

Requirements: Python 3.11+ (uv optional) · Git · Authenticated codex or claude CLI

Read-only tasks and automatic AI review require Codex. Claude supports write tasks in an isolated worktree.

agy plugin install https://github.com/TsaiWinky/ajia-harness

To review a write task yourself and require your approval before merge, pass auto_review: false to start_cli_task:

{"role": "coder", "auto_review": false, "repo_root": "/path/to/repo", "prompt": "Add a test for empty input"}

Customization: Copy agents.example.json to ${PLUGIN_DATA}/agents.json for custom models, repo_verify_commands, repo_prechecks, or hooks. Override defaults via AJIA_HARNESS_PORT, CODEX_BIN, or CLAUDE_BIN.


Development & License

  • Tests: pytest -v · node web/tests/goals_inline.cjs

  • Build UI: cd mcp_app && pnpm install --ignore-scripts && node build.mjs

  • License: MIT · Third-party notices in THIRD_PARTY_NOTICES.md

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables coordinating Claude Code and Codex across separate Git worktrees with shared issue ownership, file reservations, messages, and explicit handoffs.
      84 PyPI
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude Code, Codex, and Cursor to delegate self-contained coding tasks to one another on the user's own subscriptions, with each task isolated in a git worktree and sandbox, usage tracked, budgets enforced, and results returned for review.
      35 npm
      3
      Apache 2.0