Skip to content

[agentbricks] [2/2] Run local agents and chat UI without the Apps CLI - #925

Draft
jamesbxwu wants to merge 1 commit into
codex/agentbricks-local-process-supervisionfrom
codex/agentbricks-native-dev
Draft

jamesbxwu wants to merge 1 commit into
codex/agentbricks-local-process-supervisionfrom
codex/agentbricks-native-dev

Conversation

@jamesbxwu

Copy link
Copy Markdown
Contributor

agentbricks dev currently delegates local execution to the Apps CLI. Launch the project command directly so the same local agent loop and chat UI can be used when production execution moves to MAR.

Stack 2/2, based on #924.

  • New scaffolds write [dev].command = ["uv", "run", "start-server"] to agent.toml; existing projects fall back to app.yaml. Custom commands and both framework templates use the selected local HOST/PORT.
  • Prepare and reuse the project's .venv, load local credentials/settings, forward the selected profile, and retain local tracing, readiness output, and process cleanup.
  • Keep the existing invocation/SSE contracts. Update the CLI reference, README, and bundled workflow guidance.

Validation: 3,712 unit tests passed, 26 skipped. Five failures reproduce on unchanged origin/main in the same test environment: Claude usage conversion, three optional model-upgrade dependency checks, and terminal table wrapping. Real subprocess checks serve the shipped chat UI and stream an invocation through the existing runtime with no Databricks CLI on PATH, then verify shutdown releases the port. Ruff, affected-file type checks, and wheel build/content checks passed.

Try locally from this branch:

uv sync --project integrations/agentbricks
uv run --project integrations/agentbricks agentbricks -p <profile> init /tmp/local-agent
uv run --project integrations/agentbricks agentbricks -p <profile> dev --source /tmp/local-agent
# Open http://localhost:8000; Ctrl-C stops the agent and local tracing.

The generated project's SDK uses its normal released dependency; see CONTRIBUTING.md for a local SDK source override. Local HTTP/UI/SSE checks use a deterministic handler; live model/tool calls and native Windows console behavior are unvalidated.

Size: L.


This PR was created with GitHub MCP.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant