Jido.Amp is an Amp CLI adapter package for Jido.Harness.
It provides:
- Fail-fast streaming compatibility checks for
amp_sdk(--execute --stream-json) - Adapter-focused execution APIs (
run/2,execute/2) - Runtime diagnostics tasks (
mix amp.install,mix amp.compat)
defp deps do
[
{:jido_harness, github: "agentjido/jido_harness", branch: "main", override: true},
{:jido_amp, github: "agentjido/jido_amp", branch: "main"}
]
endThis repo is currently aligned as part of the GitHub-based harness package set rather than a Hex release line.
Then:
mix deps.get- Elixir
~> 1.18 - Amp CLI installed and authenticated
- Amp CLI support for:
--execute--stream-json
mix amp.install
mix amp.compat{:ok, result} =
Jido.Amp.run("Summarize the failing tests and propose a fix", cwd: "/path/to/project")Jido.Amp.execute("Refactor this module", cwd: "/path/to/project")
|> Enum.each(&IO.inspect/1)mix amp.install- check/install Amp CLI deterministicallymix amp.compat- validate streaming compatibility
mix test
mix qualitySee guides/getting-started.md for walkthrough details.
jido_amp is the Amp CLI adapter for jido_harness, focused on normalized event mapping and adapter/runtime contract compatibility.
- Unit/contract tests:
mix test - Full quality gate:
mix quality - Optional live checks:
mix amp.install && mix amp.compat
jido_amp includes opt-in live tests that run the real Amp CLI through both the compatibility probe and the harness adapter path:
mix test --include integration test/jido_amp/integration/compatibility_integration_test.exs
mix test --include integration test/jido_amp/integration/adapter_live_integration_test.exsThe tests auto-load .env and are excluded from default mix test runs.
Environment knobs:
AMP_API_KEYwhen using env-based Amp authJIDO_AMP_LIVE_PROMPTto override the default promptJIDO_AMP_LIVE_CWDto override the working directoryJIDO_AMP_LIVE_TIMEOUT_MSto extend the per-run timeoutJIDO_AMP_REQUIRE_SUCCESS=1to fail unless the terminal event is successfulJIDO_AMP_CLI_PATHto target a non-default Amp CLI binary