npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sisyphus-ai/cli

v0.1.2

Published

Sisyphus is a project that explores the idea of Web5 Crypto AI Agent. It is ported as a CLI tool that can be run in the terminal.

Downloads

412

Readme

Sisyphus is a Web5 Crypto AI Agent Experiment

At the beginning, what I really want to achieve is something like this. But that is a very ultimate goal and is so hard for current open source small models and tech stack to work it out.

In order to achieve this goal, a different phases plan are proposed.

Right now in the first early stage we amis to make Sisyphus a fun-to-play toy that everybody can run in their laptop to communicate in Nostr network and do crypto transactions stuff on CKB blockchain.

In simple terms, you can run Sisyphus in your computer and chat with it. It comes with a built-in function tool that can execute terminal commands on your computer and a simple memory database so it can search information from the previous history.

The "crypto" thing is that, when running Sisyphus, it will generate a private key and can control both Nostr and CKB accounts—publishing short Nostr notes, checking CKB balances, and transferring CKB. We hope it can handle fiber network tasks too. Additionally, we want the AI to build its own tool functions during chat in the future. This might require a standard for tool function runtime and ABI.

Overview

Usage: sisyphus [options] [command]

Sisyphus is a project that explores the idea of Web5 Crypto AI Agent. It is ported as a CLI tool that
can be run in the terminal.

Options:
  -V, --version                   output the version number
  -h, --help                      display help for command

Commands:
  ipc                             Run IPC Bot
  chat [options]                  Chat with user through the command line
  config <action> [item] [value]  do a configuration action
  help [command]                  display help for command

Function Tool

  • [x] get_current_time_from_os
  • [x] call_terminal_simulator
  • [x] search_memory
  • [x] get_my_account_info
  • [x] read_webpage_content
  • [x] get_ckb_balance
  • [x] transfer_ckb
  • [x] publish_nostr_social_post
  • [x] read_social_post_on_nostr_with_filters
  • [x] read_social_notification_message_on_nostr
  • [x] publish_reply_post_to_other_on_nostr
  • [x] update_social_profile_on_nostr

You can config tools in .toml to allow AI to access specific function tools.

[!WARNING] Please Note that running Sisyphus on your computer with call_terminal_simulator function tool might cause unexpected behavior(think like LLM agent can delete your files)

How to Run

1. Install ollama

Sisyphus is based on ollama. Make sure you have download and install it first:

https://ollama.com/download

2. Pull llama3.1 8b

Make sure you have pull the llama3.1 8b model to your computer

ollama pull llama3.1

3. Install Sisyphus CLI tool

npm install -g @sisyphus-ai/cli

4. Install Chroma

Chroma is needed for memory function.

pip install chromadb 

make sure chroma binary is available in your computer command line.

5. Run

Start chatting:

sisyphus --version
sisyphus chat

Privkey

Each prompt file/ MemoId has its own privkey to their Nostr and CKB account.

[!WARNING] The privkey is stored in a plain text file without any encryption for convenient now. Please USE AT YOUR OWN RISK

sisyphus config list

the key file name is .[your-agent-memo-id] under privkey.rootFolder.

Update Prompts

sisyphus config list

Locate the prompt store position from the config and edit the .toml file to update prompts.

Example Prompt Config

Set Logger Level

LOG_LEVEL=info sisyphus chat