What do you want to do?
3 use cases
-
Control your phone by texting a Telegram bot
Run a background Telegram listener so text commands like flashlight or battery status run on your phone.
- Needle
- Personal productivity
- Intermediate
View prompt
Using the Needle repo at <repo path>, set up the Termux environment, then start the Telegram listener with python3 app.py --model 3 --telegram <bot token>. Send the bot the message "turn on the flashlight" and report the reply. Verify that the reply confirms the torch action and that /model returns the current model.
-
Find contacts by meaning with a local semantic search
Ask the Needle 3 model to search your contacts for a concept like doctor or emergency.
- Needle
- Personal productivity
- Intermediate
View prompt
In the Needle repo, start python termux_needle.py --model 3 and send the prompt "semantically search contacts for doctor or emergency". Return the matched contacts as a list. Verify that each result actually matches the requested role before reporting it.
-
Pull structured contact fields out of messy text
Use Needle 3 structured extraction to turn a sentence into fields like name, phone, and email.
- Needle
- Personal productivity
- Intermediate
View prompt
In the Needle repo, run python termux_needle.py --model 3 and submit "extract contact info from: <text>" with the target text. Expect structured contact fields with name, phone, and email. Verify that each field appears verbatim in the input text before using the result.
How to use Needle
- Check you have what it needs: An Android phone with Termux and the Termux:API app installed; Python and git available in Termux, with the Ubuntu PRoot environment set up as the README describes; A Telegram bot token if you want remote control.
- Open AbuZar-Ansarii/Needle on GitHub and read the README and license.
- In Termux, run
pkg update && pkg upgrade, thenpkg install termux-api python git,pkg install proot-distro,proot-distro install ubuntu, andproot-distro login ubuntu. - Inside Ubuntu, run
apt update && apt upgrade -yandapt install git python3 python3-pip python3-venv ca-certificates -y. - Run
git clone https://github.com/AbuZar-Ansarii/Needle.git, thencd Needle,python3 -m venv myenv,source myenv/bin/activate, andpip3 install -r requirements.txt. - Start the listener with
python3 app.py --model 3 --telegram YOUR_BOT_TOKEN, replacing YOUR_BOT_TOKEN with your token.
These steps come from our top use case, Control your phone by texting a Telegram bot, which also has a copy-paste agent prompt.
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeNeedle alternatives · Best AI repos for Personal productivity
About this repo
- Who it is forAndroid users comfortable with Termux and a bit of Python who want to run a phone assistant locally and control it from a web page, the terminal, or Telegram.
- Why it is hot
- LanguagePython
- Sourcegithub.com/AbuZar-Ansarii/Needle · Back to Hot repos
Requirements
- An Android phone with Termux and the Termux:API app installed
- Python and git available in Termux, with the Ubuntu PRoot environment set up as the README describes
- A Telegram bot token if you want remote control
Add this badge to your README
Maintain Needle? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/abuzar-ansarii-needle/?utm_source=github&utm_medium=badge&utm_campaign=AbuZar-Ansarii-Needle)
HTML
<a href="https://dedupedai.com/use-cases/abuzar-ansarii-needle/?utm_source=github&utm_medium=badge&utm_campaign=AbuZar-Ansarii-Needle"><img src="https://dedupedai.com/badge/AbuZar-Ansarii/Needle.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Needle
What is Needle?
A local, lightweight agentic assistant for Android/Termux that controls phone hardware and runs plain English commands through Cactus Needle 2 or Needle 3 models. It is an open-source project on GitHub: https://github.com/AbuZar-Ansarii/Needle.
Who is Needle for?
Android users comfortable with Termux and a bit of Python who want to run a phone assistant locally and control it from a web page, the terminal, or Telegram.
What can I do with Needle?
3 use cases so far, for example: Control your phone by texting a Telegram bot; Find contacts by meaning with a local semantic search; Pull structured contact fields out of messy text. Each has steps and a copy-paste agent prompt.
What do I need to run Needle?
An Android phone with Termux and the Termux:API app installed; Python and git available in Termux, with the Ubuntu PRoot environment set up as the README describes; A Telegram bot token if you want remote control.
What are alternatives to Needle?
Other hot AI repos in Personal productivity: Graybox, Pocket Strike, Lossless Memory, Hermes Bot Forge, Nosis.
Is Needle safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.