Skip to main content

Backup AI - Archive and browse agentic coding sessions

Project description

Agent Archive

Archive and browse agentic coding sessions. Parses agent session logs and generates a searchable MkDocs static site.

Requirements

  • Python 3.10+

Installation

pip install -e .

For development:

pip install -e ".[dev]"

Usage

agent-archive sync --output ./site

This parses agent logs and generates Markdown files and an MkDocs site in the specified output directory.

Development

Run tests:

PYTHONPATH=src pytest tests/ -v

Project Structure

src/agent_archive/
  __init__.py
  cli.py              # Typer CLI entry point
  models.py            # Pydantic models (Session, Message)
  parsers/
    base.py            # Abstract BaseParser for plugin-style log parsers

Adding a Parser

Subclass BaseParser to support a new agent log format:

from pathlib import Path
from agent_archive.parsers.base import BaseParser
from agent_archive.models import Session

class MyAgentParser(BaseParser):
    def parse(self, filepath: Path) -> list[Session]:
        # Parse your agent's log format and return Session objects
        ...

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

bai_cli-0.1.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

bai_cli-0.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file bai_cli-0.1.0.tar.gz.

File metadata

  • Download URL: bai_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for bai_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4463f70002e0be83f9aedcf0046341ad0cc14cdd0feb373975a56c6b6f846c3a
MD5 67c5e1aebba0fb973cd3a3551f5c524e
BLAKE2b-256 c01eea2aa886a78d88facd6933e9f9a6882720af76c319fca9cff6044f90a153

See more details on using hashes here.

File details

Details for the file bai_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bai_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for bai_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efbe4af4baea341041c80443deb987b73ad1a5633575b9a4d48134dc803acbc3
MD5 441ae432818c9b7bd91b52e1c2a0a181
BLAKE2b-256 ab04efab2a2b9fda30572d6272836f93b674f0e0851e9d68a5e8cd50714effcb

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