Skip to content

Terminal tool#1

Merged
teknium1 merged 6 commits into
mainfrom
terminal
Jul 26, 2025
Merged

Terminal tool#1
teknium1 merged 6 commits into
mainfrom
terminal

Conversation

@hjc-puro

@hjc-puro hjc-puro commented Jul 26, 2025

Copy link
Copy Markdown
Contributor
image
python run_agent.py \
  --query "search up the latest docs python 3.13 and write me an example using the new jit compiler that's not in the docs. profile its performance and present the results in a beautiful markdown table right in the terminal." \
  --max_turns 20 \
  --model claude-sonnet-4-20250514 \
  --base_url https://api.anthropic.com/v1/ \
  --api_key $ANTHROPIC_API_KEY

@hjc-puro hjc-puro requested a review from teknium1 July 26, 2025 04:52
@teknium1 teknium1 merged commit 1dacd94 into main Jul 26, 2025
@teknium1

Copy link
Copy Markdown
Contributor

How do I do the setup?

@lee-b lee-b mentioned this pull request Feb 27, 2026
teknium1 added a commit that referenced this pull request Mar 6, 2026
Copy an image to clipboard (screenshot, browser, etc.) and paste into
the Hermes CLI. The image is saved to ~/.hermes/images/, shown as a
badge above the input ([📎 Image #1]), and sent to the model as a
base64-encoded OpenAI vision multimodal content block.

Implementation:
- hermes_cli/clipboard.py: clean module with platform-specific extraction
  - macOS: pngpaste (if installed) → osascript fallback (always available)
  - Linux: xclip (apt install xclip)
- cli.py: BracketedPaste key handler checks clipboard on every paste,
  image bar widget shows attached images, chat() converts to multimodal
  content format, Ctrl+C clears attachments

Inspired by @m0at's fork (https://github.com/m0at/hermes-agent) which
implemented image paste support for local vision models. Reimplemented
cleanly as a separate module with tests.
JasonOA888 added a commit to JasonOA888/hermes-agent that referenced this pull request Mar 8, 2026
Fixes NousResearch#633

Problem:
- Sequential numbering gaps (e.g., NousResearch#1, NousResearch#2, NousResearch#5, NousResearch#8) confuse users
- 200 char truncation too aggressive
- Tool messages completely hidden with no indication

Fix:
1. Use separate counter for displayed messages only
2. Skip tool messages but show count at end
3. Skip system messages
4. Increase truncation to 300 chars
5. Display 'N tool messages hidden' summary

Impact:
- Consistent numbering: NousResearch#1, NousResearch#2, NousResearch#3, NousResearch#4
- Users know when tool calls occurred
- More context visible per message
Bitstreamono pushed a commit to Bitstreamono/hermes-agent that referenced this pull request Mar 9, 2026
Three bugs fixed in gateway fallback chain:

1. _load_fallback_chain() called build_auto_chain() which scanned env vars
   without primary provider context, causing the active provider to appear
   in its own fallback list and triggering API mode switches mid-conversation
   (anthropic_messages -> chat_completions) on transient errors.
   Fix: return None when no explicit config exists.

2. Fallback notify callback captured asyncio event loop inside run_sync()
   which runs in a thread pool via run_in_executor. Python 3.11+ raises
   RuntimeError('no running event loop') in worker threads.
   Fix: build the callback in the async _run_agent context after
   loop = asyncio.get_event_loop(), before run_in_executor call.

3. When no fallback chain was configured, AIAgent.__init__ auto-built one
   from env vars (same bug as NousResearch#1 but inside the agent).
   Fix: always pass explicit FallbackChain(entries=[], enabled=False)
   when gateway has no chain configured.
@dyllisLev

Copy link
Copy Markdown

Audit completed. The database on asura confirms 21 items are correctly indexed in the 'offline_cache' table with active statuses. The perceived mismatch likely stems from the source filter counts in the dropdown being calculated without considering the active search query (q). I have patched 'app/main.py' to make these counts reactive to the current search query and deployed the fix to asura.

Please verify if the list and counts now match your expectations.

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.