feat(functions): add qc quick-chat wrapper around aichat #70
No Reviewers
Labels
Clear labels
Area/CI
Area/Completions
Area/Components
Area/Config
Area/Docs
Area/Functions
Area/Integrations
Area/Prompt & Theme
Area/Scripts
Area/Tests
Compat/Breaking
Kind/Bug
Kind/Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Refactor
Kind/Security
Kind/Testing
good first issue
help wanted
.github/workflows and repository automation
completions/ - tab-completion scripts
The opinionated-component system (C1-C6)
config.fish and conf.d/ - startup and environment
docs/manual/ and the generated manual, man page, and site
functions/ - user-facing functions and helpers
integrations/ - third-party tool wiring
themes/ and prompt appearance
scripts/ - standalone helper scripts
tests/ - the syntax lint and functional suite
Breaking change that won't be backward compatible
Something is not working
Tooling, dependencies, and housekeeping
Documentation changes
Improve existing functionality
New functionality
Makes existing behavior faster or lighter
Restructures code without changing behavior
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Well-scoped and self-contained; a good place to start
Maintainer is looking for someone to pick this up
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
rootiest (Rootiest)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rootiest/fish-config#70
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Why: Provide a fast, terminal-friendly LLM helper (
qc= quick-chat) that wrapsaichatbut defaults to a system prompt tuned for concise CLI-appropriate output.What:
functions/qc.fish:aichatis installed (if type -q aichatguards the whole definition).$XDG_CONFIG_HOME(falls back to~/.config), and on first use installs the bundled role by symlinkingscripts/cli-agent.md→roles/cli.md.--role cli, but forwards untouched if the user passes--role/-r/--role=….--wraps aichatso it inherits every aichat flag and tab-completion.-h/--helpprints a boxed banner explaining the wrapper, then dumpsaichat --helpwithaichatrewritten toqc.scripts/cli-agent.md: the bundled "cli" role system prompt.### qctodocs/fish-config.md§5.12 andqc/quick-chat/aichatkeywords todocs/fish-config.index.Also includes an unrelated one-line fix (separate commit):
fix(ls)passes--hyperlink=autotoezafor consistent OSC 8 hyperlink behavior.Manual Verification
aichatinstalled, open a new shell and runqc "say hi in one line"— confirm it responds and that~/.config/aichat/roles/cli.mdnow exists as a symlink toscripts/cli-agent.md.qc --help— confirm the boxed banner renders with aligned borders and that the forwarded help showsUsage: qc [OPTIONS] [TEXT]...(no strayaichat).qc --role coder "hi"(or-r) — confirm it does not inject--role cli(role is respected).<Tab>afterqc— confirm aichat's flag completions appear (inherited via--wraps).set PATH /nonexistentin a throwaway shell,source functions/qc.fish) — confirmqcis not defined.lsstill renders hyperlinked entries correctly after the--hyperlink=autochange.