Skip to content
canpsePublic

About

Say what you want in plain language; fa puts the shell command on your prompt to check and run. Any model: Claude/Codex subscriptions, APIs, local.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

fa

Leia em português

Say what you want, in plain language. fa puts the shell command on your prompt, you check it, and press Enter.

AI agent reading this? Follow AGENTS.md.

fa demo: merging PDFs, converting a document and audio, unzipping

$ fa show the 3 biggest files here
fa> find . -type f -printf '%s %p\n' | sort -nr | head -3
$ fa quem está escutando na porta 8080
fa> sudo ss -ltnp 'sport = :8080'

The terminal stops being a pile of tools to memorize and becomes a place where you write what you want. Nothing runs until you press Enter: you can edit the line, or erase it to cancel. Both your request and the command go to your shell history, so you learn the commands as you go.

Install

The recommended way: ask your AI agent. Send this to Claude Code, Codex, or whichever agent you use:

Install this for me: https://github.com/canpse/fala

It reads AGENTS.md, installs fa, hooks it into your shell, picks the subscription it is running on as the model, and checks that it works. Then open a new terminal.

By hand (Python 3.11+, bash or zsh):

pipx install fala          # or: uv tool install fala · pip install --user fala
fa --install claude        # or codex, agy, pi, anthropic, openai, openrouter, groq, ollama

fa --install adds one line to your ~/.bashrc (or ~/.zshrc), saves which model to use, and sends a test request. Open a new terminal and you're done.

Which model

Any of these works. A small, fast model is enough: the job is turning one sentence into one command.

provider what it uses key
claude your Claude subscription, through the official claude CLI already logged in
codex your ChatGPT subscription, through the official codex CLI already logged in
agy your Antigravity login, through the official agy CLI already logged in
pi whatever pi is logged into already logged in
anthropic Anthropic API ANTHROPIC_API_KEY
openai, openrouter, groq their APIs OPENAI_API_KEY, OPENROUTER_API_KEY, GROQ_API_KEY
ollama, compat a local model, or any OpenAI-compatible API (llama.cpp, vLLM, LM Studio) optional

Time per request measured on a 4-core laptop: pi with fa --service 1.6 s, claude (Haiku) 3.1 s, codex (GPT-6 Luna, low) 4.8 s, agy (Gemini 3.8 Flash Low) 6.3 s.

Change it any time: fa --config provider=codex model=gpt-6-luna. Check it: fa --test. API keys stay in environment variables, never in the config file.

About subscriptions: claude, codex and agy run the official program you installed and logged into yourself, once per request, with no tools enabled. That is ordinary personal use of those programs, but each company sets (and has changed) its own terms. For a team, a server or a product, use an API key.

What goes to the model

Each request sends: the fixed instructions, your current folder path, the names of the files in it (two levels deep, up to 80), and the request. File contents are never sent.

fa --scan is optional and makes answers much better: it records your distribution, tools, network interfaces and running services once, in ~/.config/fa/sistema.txt, and that file goes along with every request. It includes your hostname and local IP addresses. Read or edit it before using a provider you don't trust.

Example packs

fa -n <request> adds network examples to the request (fa -h lists the packs). A pack is a text file of request => command lines with a # flag: x line. Put your own in ~/.config/fa/packs/: they are the place to teach fa the hosts, interfaces and habits of your machine.

Commands

fa <request>              command on your prompt, Enter runs it
fa -n <request>           with the network pack
fa --install [provider]   set up shell, provider and test
fa --config key=value     change settings · fa --config shows them
fa --test                 show what's in use and send a test request
fa --scan                 read this machine once, for better answers
fa --service              keep pi open as a systemd user service (provider pi)
fa --translate <request>  only print the command
fa --agent                instructions for AI agents

Status

Early (0.2.0). Tested on Fedora with bash; zsh support is written but not yet tested. Requests work in any language. Messages are in English, or in Portuguese when your system is. The 0.1 Portuguese option names (--instalar, provedor=...) still work. The tests are in testes/.

License

MIT

About

Say what you want in plain language; fa puts the shell command on your prompt to check and run. Any model: Claude/Codex subscriptions, APIs, local.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages