Skip to content

Conversation

@salmonumbrella
Copy link
Contributor

Summary

Implements "desire paths" design pattern to make the CLI more intuitive for AI agents by implementing common command patterns agents naturally try to use.

  • Add command aliases: singular forms (user, chat, message, space) and abbreviations (u, c, m, s)
  • Add top-level shortcuts: login, logout, me, whoami, send, search
  • Add name-to-ID resolution: --chat "name" and --to "username" resolve automatically
  • Add flag aliases: --message/--msg for --text, --user for --to
  • Add _meta object to JSON output with pagination info (has_more, next_offset_id, total_in_response)
  • Improve error messages with helpful hints and suggestions

Test plan

  • All tests pass (cargo test - 7/7)
  • Verified aliases work: inline u list, inline c list, inline m list
  • Verified shortcuts work: inline login --help, inline send --help, inline search --help
  • Verified error messages show helpful hints
  • Build succeeds in release mode

🤖 Generated with Claude Code

Implement "desire paths" design pattern to make the CLI more intuitive
for AI agents by implementing common command patterns agents naturally
try to use.

Changes:
- Add singular command aliases (user, chat, message, space)
- Add single-letter abbreviations (u, c, m, s, a, n, t)
- Add top-level shortcuts (login, logout, me, whoami, send, search)
- Add name-to-ID resolution (--chat "name", --to "username")
- Add flag aliases (--message/--msg for --text, --user for --to)
- Add _meta object to JSON output for pagination (has_more, next_offset_id)
- Improve error messages with helpful hints and suggestions
- Update SKILL.md with quick reference for all shortcuts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant