Skip to content
gorbanPublic

About

Open-source agent tooling that makes every change’s effect, failure, timing and cost more human- and agent-visible.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1,031 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-agent

api-agent is a local workbench for building, running and testing API-connected agents.

Define workflows in readable Markdown, inspect their diagrams, and try them in the included Studio chat UI. Use the guided terminal launcher to configure connections, start local services, run tests and inspect failures.

Included

  • Replaceable LLM connections: OpenAI subscription or API-key access, compatible endpoints such as OpenRouter, and Amazon Bedrock Runtime or Mantle with endpoint-appropriate authentication. Anthropic Claude models are supported through Bedrock. Select an included provider or add your own. A Claude Code subscription adapter is not yet included; contributions are welcome.

  • Executable workflows: a small default chat graph plus a separate API demonstration combining LLM and deterministic nodes, a GraphQL MCP tool and a synthetic backend. Extend the declared tools and native adapters for other APIs and protocols.

  • Studio chat UI: run ./launch.sh --tui-mode run-local --run-ui, or save RUN_UI=True and choose Run local. Use or adapt the UI while retaining David Bruck's copyright notice, the license conditions and disclaimer; binary redistributions must reproduce them in accompanying materials. See LICENSE.

  • Selected prerequisites: nested configuration, provider Python packages, provider Node workspaces, tool-contributed mise runtimes and recursive local container dependencies. Add a tool, including one in another language.

  • Inspection and testing: selectable tests, failure details, token/cost accounting, Allure reports, optional OpenTelemetry/GenAI or LangFuse tracing, and retained DEBUG browsers for human or coding-agent inspection.

  • Tracing configuration: the bundled tracing provider contributes disabled, OTEL and LangFuse routes with applicable settings in Review. Custom providers use the same lazy discovery and can declare independent export, dashboard and infrastructure capabilities.

  • Assisted authentication: optional password-manager adapters for supported UI and LLM sign-in steps; some challenges still require human approval.

UI Studio Start UI Studio Prompt Workflow Markdown

Get started

On Unix-like systems with a POSIX shell, mise is always required. Docker or Podman is an optional development dependency required only for certain local services, tools and tests. Either must provide an executable named docker, Compose support and a matching local Docker-compatible API socket. For Podman, see the executable alias example; a shell-only alias docker=podman does not reach launcher subprocesses. Mise supplies this project's Python, uv, Node.js and npm; you do not need to install those separately. Install mise with one of these official commands:

curl https://mise.run | sh

Or, with wget:

wget -qO- https://mise.run | sh

If neither command is available, open https://mise.run in a browser, save the raw installer script, open a terminal in its download directory, and run it with sh. Follow mise's shell setup instructions for your shell's startup file, such as .bashrc or .zshrc, so mise is available in future terminals. The installer cannot change the terminal that started it. For its default installation, make mise available in this terminal now:

export PATH="$HOME/.local/bin:$PATH"
command -v mise
mise --version

For a custom installation location, use that location instead. Download and extract the repository ZIP, or use a Git checkout. Open a terminal in that repository directory, then run:

chmod +x launch.sh # if the downloaded ZIP lost executable permissions
./launch.sh

The launcher prepares Python/uv and its existing base Python environment, then opens the terminal menu. Choose Run local to start the app. Later launches reuse installed tools. Existing command-line options follow ./launch.sh unchanged. Initial preparation needs internet access and writable user storage; a Git checkout is not required. Node/npm and other optional tools are acquired when an operation needs them.

In Review configuration, set RUN_UI=True to launch the connected UI too. For packs offering a managed upstream API, set API_ENDPOINT to a remote URL, or save an explicit blank to launch that API locally alongside the agent. AGENT_DJANGO_URL is the agent's own address, not the upstream API setting. See setup and configuration.

Run local opens one headed browser when RUN_UI=True or DEBUG=True: agent home first, an enabled ready tracing dashboard next, the actual LangGraph flow, and the optional prepared UI last. With both settings false, it prints the home and flow URLs without opening a browser or authenticating an LLM. To use the same operation without the TUI:

./launch.sh --tui-mode run-local --no-std-in

Press Ctrl+C to stop the terminal operation; use Stop or Quit in the TUI. Shutdown waits for owned requests and resources to finish cleanup. Tracing configuration enables a ready Jaeger or LangFuse dashboard; LangFuse dashboard login uses its separately configured admin account. To inspect a managed local collector without starting the app or a provider, run ./launch.sh --tui-mode trace-viewer --no-std-in; the command prints its viewer/CDP URLs and, for LangFuse, the configured dashboard username and password unmasked for login from another browser. Closing its browser leaves the collector available; press Ctrl+C in the terminal to release the collector lease. UI-process logs show safe activity messages rather than arbitrary child output, which may contain credentials even with LOG_CONTENT=True.

Guides

Developing with a coding agent? Follow setup above and use an agent with terminal access. For browser inspection, configure Chrome DevTools MCP (preferred) or Playwright MCP. See developer setup for prerequisites and connection instructions.

Known issues

  • Managed local LangFuse has known development credentials: admin@local.dev / Local-LF-9vQ7!mR2#xK8@pT4. Anyone who can reach that dashboard can try these defaults. The longer password avoids common-word credential-scrubbing matches; it is still public, not a secret. Keep it local and override them for other use. Existing accounts are not reset by changing initialization settings. The planned safe multi-stage runtime image will clear both admin defaults to empty and require explicit configuration when LangFuse is selected; that image work remains pending.

    • Workaround: set LANGFUSE_ADMIN_EMAIL and LANGFUSE_ADMIN_PASSWORD in .env or the environment before initializing a new managed LangFuse instance. These settings do not change an existing account's credentials.
  • API-key mode needs a configured password-manager entry. Manual key entry is not implemented; the attended-login alternative applies to subscription authentication.

  • Some authentication challenges remain manual; 1Password CLI must already be signed in. See authentication limitations and workarounds for hardware keys, Keeper software passkeys, OAuth refresh and CLI recovery.

Testing

Choose unit, integration, or e2e as <tests_type>:

./launch.sh --tui-mode "<tests_type>"

Integration/E2E reporting requires an explicit storage choice: save S3_USE_LOCALSTACK=True in Review configuration or add --s3-use-localstack=True for managed local history. For external S3, choose False and supply S3_ENDPOINT and a bucket; unit coverage needs neither. Run local starts the same shared LocalStack S3 automatically (S3_USE_LOCALSTACK defaults to True there) and exports its endpoint to the app.

Unit tests start with the active owner's tests selected and measure only that owner's production code. Dependency and base tests remain visible in the TUI. Use --all-unit (or ALL_UNIT=True) to select and measure all composed unit suites. Positional selectors override the default selection. Running from base selects all base units. Integration/E2E retain their existing selection and coverage behavior. Adjust selection in the TUI. Append --no-std-in for terminal automation, or export NO_STD_IN=True for multiple commands. Obtain explicit human approval before using --start=True or --debug for integration, or --start=E2E for E2E. E2E accepts an initial pass immediately; after an initial failure, every configured confirmation must pass (default E2E_RERUNS=2). The bundled selection is:

./launch.sh --tui-mode e2e --no-std-in --start=E2E api-agent::tests/e2e/test_studio_graph.py::test_studio_graph

This selects the launch-admitted simple_chat test graph. External packs run their own declared E2E suites; arbitrary application and private graph acceptance remain separate. These tests may spend tokens. See the bounded E2E scope. With DEBUG=True and more than one distinct integration or E2E test selected, execution asks for literal y before opening browsers, including with --no-std-in. Set DEBUG=False and omit --debug to avoid the prompt. See test controls and automation. Use progressive diagnostics to investigate exact attempts, internal retries and captured evidence before another live run.

View recorded history without menus with ./launch.sh --tui-mode allure --no-std-in. The launcher prints the history URL and browser CDP endpoint. Ctrl+C closes its owned viewer, browser and reporting resources; see Allure viewing. See reasoning and explanation tests for the optional summary graph, browser assertions, provider/model examples and replay limitations.

For the full unit line/branch gate and provider/API/authentication matrix, see test qualification.

Workflow design

The workflow guide covers Markdown declarations, inference-free validation and mandatory route coverage, which needs no calibration baseline. The API demonstration uses its own declared flow; the root remains the small one-call chat example.

Open flow.md.html directly to view the saved declaration and SVG, or run ./launch.sh --tui-mode view-flow --no-std-in for the selected application's managed view. The main menu also offers both viewers; choosing one closes the menu and hands the terminal to the viewer. Press Ctrl+C to stop it and finish owned cleanup. Supply one path, such as ./launch.sh --tui-mode view-flow "demo/contrived/flow.md.html", to inspect another flow; relative paths use the current directory. Diagram maintenance explains markup freshness checks, optional generation prerequisites and staged pre-commit checks.

About

Open-source agent tooling that makes every change’s effect, failure, timing and cost more human- and agent-visible.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages