apfel/demo at main · Arthur-Ficial/apfel · GitHub
A collection of practical shell scripts that use apfel and Apple Intelligence for offline, on-device developer assistance. The demos turn natural-language requests into commands, explanations, project summaries, naming suggestions, and system insights.
apfel/demo at main · Arthur-Ficial/apfel · GitHub
Author: Arthur-Ficial | Published: Unknown | Generated: 2026-04-03 | Domain: github.com Tags: ‘#apple-intelligence’ ‘#on-device-ai’ ‘#cli’ ‘#shell’ ‘#developer-tools’ ‘#macos’
TLDR
The
apfeldemo directory provides shell utilities powered by Apple Intelligence through theapfelCLI, running locally on Apple Silicon Macs with no API keys or cloud dependency. The scripts cover common developer workflows—generating shell commands and pipelines, explaining errors, summarizing projects and Git history, suggesting names, inspecting ports, and humorously narrating system state. They are designed for small, fast interactions within the runtime-detected Foundation Models context window: 4,096 tokens on macOS 26 and 8,192 on macOS 27.
Key Takeaways
- Offline natural-language shell assistance:
cmdtranslates requests such as “find all .log files modified today” into executable shell commands; it can copy results or execute them after confirmation. - Pipeline generation:
onelinerspecializes in composing commands with tools such asawk,sed,find,xargs,sort,uniq,grep,jq, and more. - Project and repository context:
wtdinspects directory metadata—including README files, common package manifests, Git branch, and the latest commit—to identify a project’s purpose, language, and likely build/run command;gitsumsummarizes recent commits in plain English. - Developer explanation and naming tools:
explainaccepts commands, errors, code, clipboard content, or piped input;namingproposes conventional names for functions, variables, classes, and files. - Local-install caveat: Demo scripts are deliberately excluded from
brew install apfelandmake installbecause names such ascmd,port, andexplainare too generic. Users can createapfel--prefixed symlinks in~/.local/binto avoid$PATHcollisions. - Platform requirements: Requires
apfelonPATH, Apple Intelligence enabled, macOS 26 or later, and Apple Silicon.
Images & Media
None present in article.
Referenced Links
- apfel repository — Source repository for the on-device Apple Intelligence CLI and OpenAI-compatible server.
- Demo README — Documentation and usage examples for the demo scripts.
- Latest demo-directory commit — Documents dynamically detected context windows, including 8,192 tokens on macOS 27.