Skip to content

chore(deps): adopt TinyAgents 3.0 - #119

Merged
senamakel merged 25 commits into
tinyhumansai:mainfrom
senamakel:epic-8088-final-rollup
Oct 24, 2026
Merged

senamakel merged 25 commits into
tinyhumansai:mainfrom
senamakel:epic-8088-final-rollup

Conversation

@senamakel

@senamakel senamakel commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Updates TinyJuice to the TinyAgents 3.0 harness and refreshes its dependency locks and examples for the current APIs.

This is part of tinyhumansai/openhuman#8088. The OpenHuman rollup consumes this module update.

Must land first: tinyhumansai/tinyagents#566, which carries the TinyAgents 3.0 rollup upstream.

Validation:

  • cargo check --manifest-path Cargo.toml -p tinyjuice -p tinyjuice-cli -p tinyjuice-module
  • cargo test --manifest-path Cargo.toml -p tinyjuice -p tinyjuice-cli -p tinyjuice-module
  • cargo clippy --manifest-path Cargo.toml -p tinyjuice -p tinyjuice-cli -p tinyjuice-module --all-targets -- -D warnings
  • cargo fmt --manifest-path Cargo.toml --all -- --check

Summary by CodeRabbit

  • Compatibility
    • The minimum supported Rust version is now 1.88.
  • Examples
    • Updated the example to configure its agent model and register its payload tool using the current setup.

senamakel and others added 22 commits October 20, 2026 08:43
Updates the subproject commit hash for tinyagents to the latest version. This ensures the dependency is using the most recent code.

Auto-committed-on: dragonfly
This updates the version of the tinytools dependency to 0.6. This change ensures consistency by pinning the version used by the optional adapter and harness.

Auto-committed-on: dragonfly
Regenerates the examples lockfile after version bumps across the workspace and the tinystoragedrivers dependency moving to v1.0.0. The new tinystoragedrivers release pulls in cap-std, rustix, ulid and zstd, which accounts for most of the added entries.

Auto-committed-on: dragonfly
This updates the version of the tinytools dependency in the lock file to reflect the latest changes.

Auto-committed-on: dragonfly
This updates several dependencies in Cargo.lock and Cargo.toml to align with newer or specific versions, including changes to `getrandom` and `uuid`.

Auto-committed-on: dragonfly
This updates the version of the tree-sitter crate and adds regex-syntax to the dependencies for the examples.

Auto-committed-on: dragonfly
This updates the version of the tree-sitter-language dependency in the examples Cargo.lock file to resolve a dependency conflict.

Auto-committed-on: dragonfly
chore(deps): align TinyTools and restore Rust 1.88 builds
Updates the subproject commit hash for tinyagents to the latest version. This ensures the dependency is using the most recent code.

Auto-committed-on: dragonfly
Updates the subproject commit hash for tinyagents to the latest version. This ensures the dependency is using the most recent code.

Auto-committed-on: dragonfly
The agent model registration in the main example has been updated to use `with_model_resolver` instead of direct `register_model`. This change aligns the example with the newer API structure for managing model resolution.

Auto-committed-on: dragonfly
This change updates the import path for AgentHarness in the example main function to reflect the correct module structure. This ensures the example compiles correctly with the current library layout.

Auto-committed-on: dragonfly
Updates the subproject commit hash for tinyagents to the latest version. This ensures the dependency is using the most recent code.

Auto-committed-on: dragonfly
refactor(examples): adopt the harness model resolver API
Update the tinyagents submodule and the example crate's lockfile to the
3.0.0 release, which also moves tinyinference to 0.5.0. The harness
dependency now pins an explicit version alongside its path so the
examples track the vendored release.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
…lease

build(examples): require TinyAgents 3.0
Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	vendor/tinybus
Move the standalone CLI and host binaries out of the root package into
dedicated crates, adding tinyjuice-cli and tinyjuice-host to the workspace
members and default-members. The root manifest drops the bin and test
targets along with the cli-disk-tier and host features, and the uuid
dependency moves to the new host crate.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The examples crate now pins tinyagents-harness to 3.0.0 and picks up the
corresponding 3.0.0 and 0.5.0 releases of the vendored tinyagents and
tinyinference crates in the lockfile.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Walkthrough

The change adjusts Rust and dependency versions, directs selected Cargo dependencies to vendored sources, advances the TinyAgents submodule, and updates the example harness dependency and model configuration.

Changes: Dependency and harness updates

Layer / File(s) Summary
Dependency resolution
Cargo.toml, vendor/tinyagents
The minimum Rust version changes to 1.88, and the optional tree-sitter version changes to 0.26. Cargo patches resolve TinyBus and TinyTools from vendored paths. The TinyAgents submodule reference advances.
Example harness configuration
crates/tinyjuice-examples/Cargo.toml, crates/tinyjuice-examples/src/main.rs
The tinyagents-harness path dependency declares version 3.0.0. The example uses FixedModelResolver::named("agent", ...) and registers the payload tool separately.

Priority: Pending latest changes

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: tinysweeper

Merge Risk: Moderate · up to a65a0

The example cannot build, and the root package cannot build on its declared minimum Rust version. Fix the dependency resolution and version declaration before merging.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

🔧 Clippy (1.99.0)

Clippy execution failed

A rabbit checks the cargo trail,
Where vendored paths now set the rail.
The agent model gets its name,
The payload tool joins the game.
Soft paws celebrate the change.

Comment @coderabbitai help to get the list of available commands.

senamakel and others added 2 commits October 23, 2026 09:15
The tinybus-module and tinytools patch.unused entries were swapped in Cargo.lock, with no change to the pinned versions.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@senamakel
senamakel marked this pull request as ready for review October 24, 2026 06:58
@tinysweeper

tinysweeper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Tiny Sweeper review

⏳ Reviewing a8587a9280a5 now. The last completed report, when available, remains below until this pass finishes.

Previous completed report

Tiny Sweeper review

Reviewed head: a65a00dc445a06c4e7eb4652e0ae47e67137a46c

Verdict: Ready for maintainer review · Priority: none
Coverage: Reviewed 3 of 6 files; not reviewed: Cargo.lock, crates/tinyjuice…, and 1 additional unreviewed files.
Pull request purpose (title): chore(deps): adopt T…

Diagnostics and supporting details

Full summary

Pull request purpose (title): chore(deps): adopt TinyAgents 3.0. This pull request adopts the TinyAgents 3.0 harness, migrating the example crate from the legacy `register_model`/`set_default_model` chain to `with_model_resolver(FixedModelResolver::named(...))` and pinning the harness at version 3.0.0. The root manifest lowers `rust-version` to 1.88, downgrades the optional `tree-sitter` dependency to 0.26, and adds `[patch]` sections redirecting the TinyBus, TinyTools, TinyBus module, and TinyBus macros crates to vendored checkouts.

Unreviewed paths

  • Cargo.lock
  • crates/tinyjuice-examples/Cargo.lock
  • vendor/tinyagents

Review snapshot

Change surface Files Review signal Count
Production 1 Active findings 0
Tests 0 Noted findings 0
Documentation 0 Resolved findings 0
Configuration 2 Pending checks/questions 0

Completeness: Complete
Test assessment: No supported feature-to-test mapping was available; this does not mean tests are absent or passed.

What changed

The example crate now constructs its model resolver through the TinyAgents 3.0 harness API: the prior `register_model("agent", ...)`, `set_default_model("agent")`, and `register_tool(...)` chain is replaced by `harness.with_model_resolver(Arc::new(FixedModelResolver::named("agent", Arc::new(OpenAiModel::new(...)...))))` followed by a separate `harness.register_tool(...)` call, with the imports updated to bring in `FixedModelResolver`. The example manifest pins `tinyagents-harness` to `version = "3.0.0"` alongside its path dependency. The root manifest lowers `rust-version` from 1.90 to 1.88, changes the optional `tree-sitter` dependency from 0.27 to 0.26, and adds `[patch."https://github.com/tinyhumansai/tinybus"]`, `[patch."https://github.com/tinyhumansai/tinytools"]`, and `[patch.crates-io]` entries resolving tinybus, tinybus-module, tinybus-macros, and tinytools to vendored paths. `Cargo.lock`, `crates/tinyjuice-examples/Cargo.lock`, and the `vendor/tinyagents` submodule are also updated per the pull-request file list.

Features

None identified with supported citations.

Tests

No supported feature-to-test mapping was produced. Test execution is not inferred.

Findings

No active actionable findings.

Before merge

None.

Agent review details

critique

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: Reviewed 3 files; 0 findings. _The code index is behind this pull request (indexed at `30d6ce6fd82a`), so retrieved context may be out of date._

security

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: Reviewed 3 files; 0 findings. _The code index is behind this pull request (indexed at `30d6ce6fd82a`), so retrieved context may be out of date._

tests

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: The diff is an example-crate migration (model registration moved to `FixedModelResolver::named` on the harness) plus manifest pinning (rust-version, tree-sitter version, vendor patches). The example crate is its own workspace excluded from the root build, it has no test suite, and nothing in the index exercises `main`; the resolver swap maps one-to-one onto the old default-model registration, so there is no regression to pin with a test. No test file was needed, and I have no findings. _The code index is behind this pull request (indexed at `30d6ce6fd82a`), so retrieved context may be out of date._

commits

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: No sensitive content in committed files. _The code index is behind this pull request (indexed at `30d6ce6fd82a`), so retrieved context may be out of date._

description

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: The change adopts the TinyAgents 3.0 harness in the example crate, swaps the old `register_model`/`set_default_model` chain for `with_model_resolver(FixedModelResolver::named(...))`, and adds vendored-source `[patch]` entries to the root manifest. The API used matches the vendored harness (`with_model_resolver` takes `&mut self` and returns `&mut Self`, `FixedModelResolver::named` takes a name and an `Arc<dyn ChatModel<State>>`), and the diff is consistent with the description; I found no defect worth reporting. _The code index is behind this pull request (indexed at `30d6ce6fd82a`), so retrieved context may be out of date._
Evidence and run details
  • Models: ladder/vectors-oai3, deepseek-v4.1-flash
  • Spend: $0.001279
  • Tokens: 444234 input · 8246 output · 64000 cached · 161 embedding
  • Updated: 2026-10-24T07:00:01Z
Head State Pass summary
a65a00dc445a ready for maintainer review 0 active finding(s), 0 resolved finding(s) (at 2026-10-24T07:00:01Z)

tinysweeper 0.1.2

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-24T07:00:09.869312Z
We couldn’t complete this review. Comment @codex review to try again.
a65a00d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tinysweeper tinysweeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tinysweeper found nothing blocking. Approving.

Diagnostics

Total spend: $0.0013

@tinysweeper tinysweeper Bot added the priority: p3 Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect. label Oct 24, 2026
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@senamakel
senamakel merged commit da7b06b into tinyhumansai:main Oct 24, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: p3 Whenever. Cosmetic, a nicety, or a cleanup with no user visible effect.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant