Skip to content

Add Amp session support#20

Merged
nahime0 merged 4 commits intoillegalstudio:mainfrom
iamgp:feat/add-amp-support-upstream
Mar 31, 2026
Merged

Add Amp session support#20
nahime0 merged 4 commits intoillegalstudio:mainfrom
iamgp:feat/add-amp-support-upstream

Conversation

@iamgp
Copy link
Copy Markdown
Contributor

@iamgp iamgp commented Mar 28, 2026

Summary

  • add an Amp provider that discovers and parses local thread JSON files from ~/.local/share/amp/threads/*.json
  • wire Amp into provider selection, config defaults, CLI agent flags, and UI badges/detail labels
  • document Amp support in the README

Verification

  • go test ./internal/amp ./internal/core ./internal/claude ./internal/pi ./internal/api
  • verified against a real local Amp install by parsing local thread data and confirming session discovery through lazyagent --agent amp --api

iamgp and others added 4 commits March 28, 2026 18:16
Parse thread JSON files concurrently with worker pool.
Enrichment and cache updates remain sequential.
Add parallel multi-file discovery test.
- Use offset from GetIncremental to allow incremental re-parsing of
  grown thread files instead of always returning stale cached sessions
- Skip threads with zero messages to avoid displaying empty sessions

Amp-Thread-ID: https://ampcode.com/threads/T-019d43e2-6b8d-7700-80f0-ad991fd32706
Co-authored-by: Amp <amp@ampcode.com>
@nahime0 nahime0 merged commit 9df93e8 into illegalstudio:main Mar 31, 2026
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.

2 participants