Skip to main content

Bookmark, categorize, and restore AI coding sessions with aweswitch profiles.

Project description

aweshelf

aweshelf: AI Agents Session Bookmark Manager aweskill companion

Bookmark, categorize, and restore AI coding sessions with aweswitch profiles.

A lightweight CLI-first tool for Claude Code and Codex session management.

English · 简体中文 · Webioinfo

Version Python

Status pip install Platform PyPI downloads GitHub stars

Bookmark, categorize, and restore AI coding sessions with aweswitch profiles.

aweshelf lets you save your favorite Claude Code and Codex sessions, tag them with categories, and restore them instantly — including the aweswitch profile (API endpoint, model, token) that was active when you bookmarked.

Install

Ask an AI agent

If you are working inside Claude Code, Codex, Cursor, or another coding agent, tell it:

Read https://github.com/Webioinfo01/aweshelf/blob/main/README.ai.md and follow it to install aweshelf for this agent.

The agent will first install the aweshelf CLI, then choose one of two skill management options:

  1. Via aweskill — installs and manages the skill from GitHub with update, projection, and backup support. Requires Node.js.
  2. Direct copy — downloads SKILL.md into the agent's skill directory. No extra dependencies beyond Python, but future updates require copying the file again manually.

pip

pip install aweshelf

Optional: aweswitch

aweshelf saves the active aweswitch profile when you bookmark a session. Install aweswitch to enable multi-profile management — without it, aweshelf works but profile restore on resume is skipped.

With aweswitch, you can resume a session using the original provider (e.g. Claude Code official API) or switch to another configured profile like cc-xiaomi, cc-glm, etc. — each with its own API endpoint, token, and model.

pip install aweswitch

Extensions

Supported by

aweshelf is powered by two companion tools:

  • aweskill — CLI-first skill package manager for AI agents. Handles skill installation, updates, and projection across 47+ coding agents.
  • aweswitch — Agent profile switcher. Lets you launch sessions with different API endpoints, tokens, and models. aweshelf stores aweswitch profiles in bookmarks so sessions restore with the right config.

Usage

AI Agent

Install the aweshelf skill (see Install above), then just tell your agent what to do.

Example requests:

"Bookmark the current session."

"List my bookmarks in the backend category."

"Search for bookmarks related to auth."

The agent uses the SKILL.md to understand all available commands and workflows.

Tip: Resuming a session (aweshelf resume) launches a new agent process, which may conflict with the current one. For resuming, it's best to exit the agent first and use aweshelf browse or aweshelf resume directly in your terminal.

Human

The primary way to use aweshelf interactively is the TUI:

aweshelf browse

The browse view keeps bookmarks grouped by category, with the selected bookmark's details on the right.

aweshelf browse view with category groups

Press e to edit the current cell in place. Title, category, and profile changes can be saved without leaving the TUI.

aweshelf inline edit mode

Press / to filter bookmarks by title, category, session, project, prompt, or profile.

aweshelf search filter

aweshelf browse opens an interactive terminal UI with a sidebar table and detail pane. Browse, search, edit, and resume bookmarks without memorizing commands.

You can also use the VS Code / Cursor extension to browse, search, and resume bookmarks from the sidebar. Search aweshelf-ext in the extension marketplace, or open in Marketplace.

aweshelf VS Code sidebar

You can also use aweshelf as a regular CLI:

aweshelf bookmark                    # bookmark the current session
aweshelf list                        # list all bookmarks
aweshelf resume aweshelf_0001        # resume a bookmark
aweshelf search "auth"               # search bookmarks

See Commands below for the full CLI reference.

Config

Bookmarks are stored at ~/.config/aweshelf/bookmarks.json. Override with AWESHELF_CONFIG env var.

{
  "version": 1,
  "bookmarks": [
    {
      "id": "aweshelf_0001",
      "provider": "claude",
      "session_id": "550e8400-...",
      "title": "Fix auth middleware bug",
      "category": "backend",
      "project_path": "/Users/peng/Desktop/Project/my-app",
      "aweswitch_profile": "cc-glm",
      "bookmarked_at": "2026-05-20T14:00:00Z"
    }
  ]
}

Commands

aweshelf bookmark [SESSION_ID] [-t TITLE] [-c CATEGORY] [--profile PROFILE] [--current] [--verbose]
aweshelf list [-c CATEGORY] [-p PROVIDER]
aweshelf search QUERY              # search title, category, session, project, prompt, profile
aweshelf recent [-n COUNT]
aweshelf show BOOKMARK_ID [--json]
aweshelf edit BOOKMARK_ID [-t TITLE] [-c CATEGORY] [--profile PROFILE]
aweshelf rm BOOKMARK_ID [--force]
aweshelf resume BOOKMARK_ID [--profile PROFILE] [--raw] [--dry-run]
aweshelf browse
aweshelf help [COMMAND]

Browse (TUI)

aweshelf browse opens an interactive TUI with a sidebar table and detail pane. aweshelf bookmark marks already-bookmarked sessions and can update them after confirmation. Use aweshelf bookmark --current to confirm and save the most recent session in the current project without opening the session picker. Interactive bookmarking prompts for title, category, and Claude aweswitch profile; profile selection is skipped when aweswitch is not configured.

Key Action
Enter Resume selected session (with confirmation)
e Inline-edit the current cell (title, category, profile)
r Remove selected bookmark (with confirmation)
y / n Confirm / cancel action
c Toggle between Category-grouped and All view
s Cycle sort order (category+id / id)
/ Filter bookmarks
Esc Clear filter / cancel
[ / ] Shrink / grow sidebar
? Show keyboard shortcuts
q Quit

In edit mode: type to edit the active cell, Delete to clear it, Tab/Right to next field, Shift+Tab/Left to previous, Up/Down to move rows, Enter to save, Esc to exit.

Development

See docs/CONTRIBUTING.md for setup, architecture, testing, and code style.

python -m pytest tests/

Known Risks

aweshelf bookmarks store a session_id reference — they do not copy session content. Resuming a bookmark requires the original session file to still exist on disk.

Risk Claude Code Codex CLI
Auto cleanup Files inactive for 30 days are deleted at startup No auto cleanup today (not a documented guarantee)
Worktree Sessions tied to worktree path; resume may fail if worktree is deleted Same
cleanupPeriodDays Known bugs where the setting is silently ignored N/A

Mitigation: extend cleanupPeriodDays in ~/.claude/settings.json (e.g. 365), but verify it takes effect. For critical sessions, consider backing up the JSONL file manually.

These risks are tracked in docs/todo/session_retention_0529.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aweshelf-0.1.6.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aweshelf-0.1.6-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file aweshelf-0.1.6.tar.gz.

File metadata

  • Download URL: aweshelf-0.1.6.tar.gz
  • Upload date:
  • Size: 40.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for aweshelf-0.1.6.tar.gz
Algorithm Hash digest
SHA256 35c0a7308cc984656807d3d2a9420a6fefa26bc6adf275cfdcf10556c660a161
MD5 d3ce21f4d60a72eaa5b632fc97bc1fcc
BLAKE2b-256 94807564eb9f93251170afed9459c70568cd9fa5fa43e60f25cbded55c77ba1a

See more details on using hashes here.

File details

Details for the file aweshelf-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: aweshelf-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for aweshelf-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b3663622fe3ec19eea0fcd0c1f874947c6bf605fbe281aab280bd920531b5e0c
MD5 2287e7aa8ce312657b9da194bcd997ff
BLAKE2b-256 20bb5341aedf34de63325e927bbdd3f9177d9c9447bf06e327bdfd4aa996550e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page