Skip to main content

Project cmdai

Another ChatGPT project. CLI, easy to implement own tools

IMPORTANT

claude-code appeared:

# INSTALL claude-code
  mkdir -p ~/.npm-global
  npm config set prefix '~/.npm-global'
  echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.zshrc
  source ~/.zshrc
# - Install:
  npm install -g @anthropic-ai/claude-code
# CALL
  claude
# --------------- cheatsheet
links  https://github.com/Njengah/claude-code-cheat-sheet

links https://dev.to/holasoymalva/the-ultimate-claude-code-guide-every-hidden-trick-hack-and-power-feature-you-need-to-know-2l45
https://github.com/13rac1/videocapture-mcp
https://github.com/pg-yuly/weather-server
#
#

claude mcp add --transport http hamid-vakilzadeh-mcpsemanticscholar "https://server.smithery.ai/@hamid-vakilzadeh/mcpsemanticscholar/mcp"

# call /mcp  and reauthenticate
claude
###########################  local definition of mcp

~/Downloads/dev_claude_mcp $ cat .mcp.json                                                                                                                 [18:33:12]
{
    "mcpServers": {
    "gitmotion-ntfy-me-mcp": {
                    "authRequired": false,
           "command": "npx",
           "args": ["ntfy-me-mcp"],
           "env": {
            "NTFY_TOPIC": "test"
           }
        }
    }
}

########################
Use emacs with magit (C-c C-m c c) in parallel to claude with shift-tab

New:

  1. 0.3.0 - names are separate, history is always! loaded.

TODO : documentation now


README for version 0.0.8

EXAMPLE

cmd_ai "Jak bude zitra (pouze) ve Stredoceskem kraji?" -u -vcs

cmd_ai -a dalle "Landscape with hills and lakes, photographic quality"

Installation

It should work with pip3 install, not tested yet.

Needs API_KEY for OpenAI in ~/.openai.token , than it creates own copy at ~/.config/cmd_ai/cfg.json

Main Features

  • terminal with gpt4
  • incremental saving conversation to conversations.org
  • pythonista mode
  • shows (keepsrecords) the spent money
  • saves PY/SH code to /tmp and lets it execute with .e
  • PIPE mode

Help

.h      help
.q      quit
.e      execute code
.r      reset messages, scripts
.l      show tokens
.m      show models
.l number ... change limit tokens
________________ ROLES _____________
.a   assistant
.t   translator
.p   python coder
.s   secretary (.g for gmail and calendar)
.d   NO dalle
________________ MODEL
.i   NO use dalle
.v   NO use vision

Assistent

Instructed to be brief and clear, non-repetitive

Secretary

Instructed to be brief and clear, non-repetitive, uses gmail and calendar, checks time everytime.

Pythonista

Be brief, one code block per answer max. Creates a file in /tmp and lets it run with .e{.verbatim}

Piper

Works only from commandline, when pipe (stdin) is detected. No memory, on task/question, asks before runs the code

Dalle

Gets one image, 1024x1024, restricted prompt rewrite

  1. [DONE]{.done .DONE} Commit message example

    git diff | ai 'write a commit message, show it as git commit -a -m "message" command'
    

DOING Function calls / tools

[DONE]{.done .DONE} Weather grab test (needs some tweak to prompt to focus on SCK) {#weather-grab-test-needs-some-tweak-to-prompt-to-focus-on-sck}

  • today or tommorow is understood

WAITING Document upload

  • it costs 0.20$ per 1GB per day....

Images

[DONE]{.done .DONE} Dalle3 {#dalle3}

First attmpt works also in cmdline (-a dalle)

[TODO]{.todo .TODO} Upload for analysis to GPT-v {#upload-for-analysis-to-gpt-v}

That would be interesting from commandline

Dependencies

  • googlesearch-python

Adding TasksAPI

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

Metadata

Release files for cmd-ai 0.7.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmd-ai 0.7.5
File Size Uploaded Provenance Actions
cmd_ai-0.7.5.tar.gz 50.2 kB Without provenance Details for cmd_ai-0.7.5.tar.gz

Release files / cmd_ai-0.7.5.tar.gz

Download URL cmd_ai-0.7.5.tar.gz
Size 50.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8384f1887ddc3bdae63e1592ed70d4b6b41e500e198485208cec0593bc04cede
BLAKE2b-256 checksum
How to use checksums
df4e45febe6e2bf0b55f0b5ad1244899ec2b5268d9e3fd8806ebb52551fe8c7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for cmd-ai 0.7.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page