{"id":33918470,"url":"https://github.com/ut-issl/capsula","last_synced_at":"2026-02-13T09:04:59.140Z","repository":{"id":176893353,"uuid":"657660282","full_name":"ut-issl/capsula","owner":"ut-issl","description":"CLI tool to run pre-run and post-run hooks for capturing and preserving the context of your command executions","archived":false,"fork":false,"pushed_at":"2026-02-09T03:07:04.000Z","size":4974,"stargazers_count":6,"open_issues_count":13,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-09T09:29:50.883Z","etag":null,"topics":["cli","reproducibility","rust","se-team"],"latest_commit_sha":null,"homepage":"https://www.space.t.u-tokyo.ac.jp/capsula/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ut-issl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-23T14:45:47.000Z","updated_at":"2026-02-09T03:07:07.000Z","dependencies_parsed_at":"2024-02-02T02:29:31.183Z","dependency_job_id":"8d131368-95ea-4867-b8f5-c53becc23bc3","html_url":"https://github.com/ut-issl/capsula","commit_stats":null,"previous_names":["shunichironomura/capsula","ut-issl/capsula"],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/ut-issl/capsula","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ut-issl%2Fcapsula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ut-issl%2Fcapsula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ut-issl%2Fcapsula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ut-issl%2Fcapsula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ut-issl","download_url":"https://codeload.github.com/ut-issl/capsula/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ut-issl%2Fcapsula/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29397582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T04:26:15.637Z","status":"ssl_error","status_checked_at":"2026-02-13T04:16:29.732Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","reproducibility","rust","se-team"],"created_at":"2025-12-12T08:23:44.944Z","updated_at":"2026-02-13T09:04:59.132Z","avatar_url":"https://github.com/ut-issl.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capsula\n\n[![Crate Status](https://img.shields.io/crates/v/capsula.svg)](https://crates.io/crates/capsula)\n![Crates.io License](https://img.shields.io/crates/l/capsula)\n[![Test Status](https://github.com/ut-issl/capsula/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/ut-issl/capsula/actions)\n[![codecov](https://codecov.io/gh/ut-issl/capsula/graph/badge.svg?token=BZXF2PPDM0)](https://codecov.io/gh/ut-issl/capsula)\n[![Documentation](https://img.shields.io/badge/docs-capsula-blue)](https://www.space.t.u-tokyo.ac.jp/capsula/)\n\n\u003e [!WARNING]\n\u003e This project is in early development. The CLI interface and configuration format may change in future releases.\n\nCapsula is a command-line tool that automatically captures and saves information about your command executions. It records what happened, when it happened, and the environment in which it happened.\n\n## What Does Capsula Do?\n\nWhen you run a command with Capsula, it:\n\n1. **Records the environment** - Captures git state, environment variables, file contents, and system information\n2. **Runs your command** - Executes your command normally, capturing its output\n3. **Saves everything** - Stores all captured data in an organized directory structure\n\n## Quick Example\n\nCreate a `capsula.toml` file:\n\n```toml\n[vault]\nname = \"my-project\"\n\n[[pre-run.hooks]]\nid = \"capture-git-repo\"\nname = \"my-project\"\npath = \".\"\n\n[[post-run.hooks]]\nid = \"capture-file\"\nglob = \"output.txt\"\nmode = \"copy\"\n```\n\nRun your command:\n\n```bash\ncapsula run python train_model.py\n```\n\nCapsula creates an organized directory:\n\n```\n.capsula/my-project/2025-01-09/143022-happy-river/\n├── _capsula/\n│   ├── metadata.json      # What ran, when, and where\n│   ├── pre-run.json       # Environment before\n│   ├── command.json       # Command output\n│   └── post-run.json      # Results after\n└── output.txt             # Your output file\n```\n\n## Why Use Capsula?\n\n- **Reproducibility** - Capture the exact environment and inputs for every run\n- **Traceability** - Know which code version produced which results\n- **Auditing** - Generate complete execution records\n- **Debugging** - Understand what went wrong by reviewing the complete context\n\n## License\n\nLicensed under either of:\n\n- MIT License ([LICENSE-MIT](LICENSE-MIT))\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fut-issl%2Fcapsula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fut-issl%2Fcapsula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fut-issl%2Fcapsula/lists"}