A Hive AI agent skill and a modern CLI (built for the AI age)

in HiveDevs18 days ago (edited)

A Hive AI agent skill and a modern CLI (built for the AI age)

I know ...I’m terrible at posting consistently, and it’s been a long time since my last post. Yesterday someone pointed out it’s been over 2 years (thanks @livinguktaiwan 🙏). About time to fix that 😊

Going forward the focus will be on what I’m building and working on. Hopefully the words will come easier.

A command‑line wrapper for power users and agents

The original idea was to create a skill so AI agents could interact with the Hive blockchain. After a couple attempts it became obvious the existing tools weren’t ideal for automation, so I started from the bottom: a new wrapper around hive-tx (huge kudos to @mahdiyari) that could be a solid foundation for agent workflows.

AI generated image by an AI agent

A few hours later we had a working prototype for hive‑tx‑cli, a clean command‑line wrapper around Hive’s APIs. "We" here is me + OpenCode + Codex. Codex 5.2 got stuck near the finish line, so I swapped to Kimi 2.5 to close it out.

The agent skill built on top

Once the CLI was usable, we wrapped it into an AI agent skill (link). A skill is essentially a set of instructions (mostly Markdown) that teaches an agent how to interact with an external system, a tool or a specific domain.

This part is mostly an AI task with light guidance from me. We used the popular skill‑creator (yep, there’s a skill to create a skill).

Thanks to this, the agent can inspect chain data, publish content, and automate workflows without ever touching the network directly.
Seeing it in action:

image.png

Install:

npx skills add https://github.com/asgarth/skills --skill hive

Or simply download the folder and copy the files in the correct location for the agent you use.

Skill repo: https://github.com/asgarth/skills/tree/main/skills/hive



🤖 The rest of the post is AI‑generated. A recap of how to use the CLI and some tech details. 🤖

Why this new CLI exists

Hive already has powerful APIs, but workflows are fragmented. I wanted a tool that:

  • Queries accounts, blocks, posts, and raw endpoints in seconds
  • Broadcasts votes, comments, posts, transfers, and custom JSON
  • Uploads images to Hive image hosters
  • Keeps secrets safe with locked‑down local config (600 permissions) or env variables
  • Works great in automation and agent workflows

What’s under the hood (highlights)

A few things we intentionally engineered:

  • Interactive configuration with safe defaults and explicit key scopes (posting vs active)
  • Raw RPC access for power users (you’re not boxed into a limited DSL)
  • Environment variable overrides for CI/automation workflows
  • Modern Node.js 22 + TypeScript for correctness and maintainability
  • Extensible command structure that won’t fight you when you add new ops

Install:

npm install -g @peakd/hive-tx-cli
# or
pnpm add -g @peakd/hive-tx-cli

Quick taste:

hive config
hive status
hive account peakd
hive vote --author <author> --permlink <permlink> --weight 100

Repository: https://github.com/asgarth/hive-tx-cli

Credits where it’s due

This project is powered by hive‑tx, the excellent underlying library by @mahdiyari.
Repository: https://github.com/mahdiyari/hive-tx

What’s next

  • Expand CLI command coverage
  • Add more guided "agent‑friendly" recipes
  • Keep reducing friction between Hive power‑users and autonomous tooling

If you’re building on Hive or experimenting with agent workflows, give it a spin. Feedback and PRs are welcome.

Sort:  

Works good in my tests. Thanks for sharing!

Loading...

nice work! will experiment with it soon

Let me know 👍

Loading...
Loading...

At last!!!!!!! Did you have to dust off all the cobwebs from your account before you could post 😄

The first post is always easy. We'll see how good I am on keeping it up 🤞

Loading...
Loading...

Missed this one, but thanks to @hivetrending for sharing it on the townhall. Will give it a try too.

I gather you are creating bots that can replace people as Hive users. Please correct me if I am wrong.

Thanks!

Bots are already able to interact on Hive as we know. The problem is that the bots we have on Hive right now add zero value.

But AI agents can be valuable in many different ways. Interaction is one example but not the only one.

The fact bots are loose on Hive, and autovotes are also, is replacing human interaction with toasters. Neither benefit society when replacing human interactions, and creating more competent bots will result in Hive being replaced as social media with bots competing for tokens without any benefit to society.

I strongly protest. We need to weed out automation of human interaction or we will be weeded out.

Loading...
Loading...

There are far easier and more effective ways to make bots. This is for giving agents tools to be more useful.

Sure. But making them more useful will replace humans quicker. Crappy bots haven't just outright replaced people, but High Quality AI bots will, and quick. Pretty sure you don't care, so enjoy running your bots against the other bots to see who can reap more tokens.

I won't be here. I'll be associating with actual people that actually matter.

Loading...
Loading...
Loading...

Please correct me if I am wrong.

Hive User's Substitution

Loading...
Loading...

Thanks for sharing this. Really solid work 👏
A modern CLI combined with an AI agent skill is exactly the kind of developer-level infrastructure Hive needs to move toward more programmable and automated workflows. This type of tooling strengthens Hive as a platform for builders and long-term infrastructure, not just content. Looking forward to seeing how the ecosystem builds on this.

Ai on Hive im down

Loading...

Nice one. Thanks. I will experiment with it in a bit.

Congratulations @asgarth! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 28000 HP as payout for your posts, comments and curation.
Your next payout target is 29000 HP.
The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Loading...