Skip to content

Add Rust Hello World package#1

Merged
theahura merged 6 commits into
mainfrom
rust-hello-world
Nov 6, 2025
Merged

Add Rust Hello World package#1
theahura merged 6 commits into
mainfrom
rust-hello-world

Conversation

@theahura
Copy link
Copy Markdown
Contributor

@theahura theahura commented Nov 6, 2025

Summary

  • Added Rust toolchain (rustc 1.91.0, cargo 1.91.0) to the system
  • Created a simple Rust Hello World binary package
  • Added .worktrees/ to .gitignore for git worktree support

Test Plan

  • Rust toolchain installed successfully (rustc --version and cargo --version work)
  • Package builds successfully (cargo build)
  • Package runs and prints "Hello, world!" (cargo run)
  • Tests pass (cargo test)
  • Formatter runs cleanly (cargo fmt)
  • Linter passes (cargo clippy)

🤖 Generated with Claude Code

theahura and others added 6 commits November 5, 2025 19:00
Created a basic Rust binary package that prints Hello, world!
Includes standard cargo project structure with Cargo.toml and src/main.rs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Adds automated checks for:
- Code formatting (cargo fmt --check)
- Linting (cargo clippy -D warnings)
- Tests (cargo test --verbose)

Runs on push to main and all pull requests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- pr-ci.yml runs on pull_request events only
- main-ci.yml runs on push to main only
- Removes unified rust-ci.yml workflow

This allows future differentiation between PR checks (fast feedback)
and main branch checks (comprehensive validation + deployment)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@theahura theahura merged commit 746e98d into main Nov 6, 2025
3 checks passed
CSRessel pushed a commit that referenced this pull request Nov 19, 2025
CSRessel pushed a commit that referenced this pull request Jan 15, 2026
Agent wouldn't "see" attached images and would instead try to use the
view_file tool:
<img width="1516" height="504" alt="image"
src="https://github.com/user-attachments/assets/68a705bb-f962-4fc1-9087-e932a6859b12"
/>

In this PR, we wrap image content items in XML tags with the name of
each image (now just a numbered name like `[Image #1]`), so that the
model can understand inline image references (based on name). We also
put the image content items above the user message which the model seems
to prefer (maybe it's more used to definitions being before references).

We also tweak the view_file tool description which seemed to help a bit

Results on a simple eval set of images:

Before
<img width="980" height="310" alt="image"
src="https://github.com/user-attachments/assets/ba838651-2565-4684-a12e-81a36641bf86"
/>

After
<img width="918" height="322" alt="image"
src="https://github.com/user-attachments/assets/10a81951-7ee6-415e-a27e-e7a3fd0aee6f"
/>

```json
[
  {
    "id": "single_describe",
    "prompt": "Describe the attached image in one sentence.",
    "images": ["image_a.png"]
  },
  {
    "id": "single_color",
    "prompt": "What is the dominant color in the image? Answer with a single color word.",
    "images": ["image_b.png"]
  },
  {
    "id": "orientation_check",
    "prompt": "Is the image portrait or landscape? Answer in one sentence.",
    "images": ["image_c.png"]
  },
  {
    "id": "detail_request",
    "prompt": "Look closely at the image and call out any small details you notice.",
    "images": ["image_d.png"]
  },
  {
    "id": "two_images_compare",
    "prompt": "I attached two images. Are they the same or different? Briefly explain.",
    "images": ["image_a.png", "image_b.png"]
  },
  {
    "id": "two_images_captions",
    "prompt": "Provide a short caption for each image (Image 1, Image 2).",
    "images": ["image_c.png", "image_d.png"]
  },
  {
    "id": "multi_image_rank",
    "prompt": "Rank the attached images from most colorful to least colorful.",
    "images": ["image_a.png", "image_b.png", "image_c.png"]
  },
  {
    "id": "multi_image_choice",
    "prompt": "Which image looks more vibrant? Answer with 'Image 1' or 'Image 2'.",
    "images": ["image_b.png", "image_d.png"]
  }
]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant