{"id":50922192,"url":"https://github.com/dbtlr/saga","last_synced_at":"2026-06-16T19:30:44.461Z","repository":{"id":362300216,"uuid":"1257790374","full_name":"dbtlr/saga","owner":"dbtlr","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-03T13:14:13.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T15:08:54.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbtlr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-03T02:30:01.000Z","updated_at":"2026-06-03T13:16:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dbtlr/saga","commit_stats":null,"previous_names":["dbtlr/saga"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dbtlr/saga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbtlr%2Fsaga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbtlr%2Fsaga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbtlr%2Fsaga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbtlr%2Fsaga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbtlr","download_url":"https://codeload.github.com/dbtlr/saga/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbtlr%2Fsaga/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34421324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-16T19:30:43.342Z","updated_at":"2026-06-16T19:30:44.434Z","avatar_url":"https://github.com/dbtlr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Saga\n\n**A workflow orchestrator for agentic coding sessions.** Saga teaches an agent to run a coherent working **Session** — the narrative layer that strings a body of work into a single through-line, from session start to session log.\n\nSaga owns neither knowledge nor work. It threads the two domain-owning tools beneath it into and out of the session.\n\n## The three-tool split\n\nSaga is one part of a three-tool ecosystem founded on the distinction **knowledge vs. work**:\n\n- **Norn** — *knowledge.* A generic query/validation/repair layer that keeps the Vault consistent. Enforces the rules it is given; has no native concept of a Workspace.\n- **Mimir** — *work.* An opinionated project tool that natively owns the work model (projects, initiatives, tasks, release planning).\n- **Saga** — *orchestration.* Threads Norn and Mimir into and out of a Session. Owns neither.\n\nThe test each tool must pass is to state its purpose without \"and\": *Norn keeps knowledge. Mimir holds work. Saga weaves them into a session.*\n\n\u003e Norn and Mimir are forthcoming. Saga's Phase 1 stands on its own against a markdown knowledge vault; the Norn/Mimir seams are Phase 2.\n\n## The five skills\n\nSkill names are prefixed/descriptive so they stay unambiguous when installed\nstandalone (the Claude Code plugin also namespaces them as `saga:\u003cname\u003e`).\n\n| Skill | What it does |\n| --- | --- |\n| `start-session` | Saga's entry point. Assembles the **Session Primer** (User Profile + Shared Memory + Workspace Brief) and routes the work. |\n| `initialize-saga` | Binds a project to a vault Workspace and scaffolds or self-heals it. |\n| `grill-me` | Breaks a subject down by relentless interrogation, stress-testing a plan against the workspace glossary and decisions and writing both as clarity lands. |\n| `write-session-log` | At a work boundary, writes the merged **Session Log** memorializing what happened — decisions, deviations, and Consolidation Candidates. |\n| `consolidate-sessions` | Lifts Consolidation Candidates out of frozen Session Logs into maintained context — durable knowledge to the workspace, follow-ups to tasks, user observations to the partner-model log. |\n\n## Install\n\nSaga ships as a Claude Code plugin served from this repo via a local `directory` marketplace (`saga-dev`). From a Claude Code session:\n\n```\n/plugin marketplace add /path/to/saga\n/plugin install saga@saga-dev\n```\n\nBecause the marketplace `source` is the repo directory itself, the installed plugin is served in place — `${CLAUDE_PLUGIN_ROOT}` resolves to the repo root, so the installed skills *are* the repo files (no copy to keep in sync).\n\nOnce installed, a primary session starts with:\n\n```\n/saga:start-session\n```\n\n### Codex (and other agents)\n\nThe verified install path is the cross-harness **`skills` CLI**, which fetches\nfrom GitHub and installs into `~/.agents/skills/` — read by Codex, Cursor,\nGemini CLI, opencode, and others:\n\n```bash\nnpx skills add dbtlr/saga --skill '*'\n```\n\nThis is confirmed working: the skills load in Codex. Codex does **not**\nread skills from the working directory, and its native `plugin marketplace add`\nflow expects plugins nested under `plugins/\u003cname\u003e/` (Saga is a root plugin), so\nthe `skills` CLI is the supported route. Codex **App** users can also add Saga\nvia the Plugins UI — the repo ships `marketplace.json` (github self-reference)\nand `.codex-plugin/plugin.json` for that (App path not verified headlessly).\n\n## How it fits together\n\nA **Session** is bounded by a body of work, not by a single context window. `start-session` builds the Session Primer that re-loads on each resumption, keeping the through-line across compactions and new windows. At a work boundary, `write-session-log` freezes what happened; `consolidate-sessions` later lifts the durable parts into maintained context. `initialize-saga` keeps the underlying Workspace well-formed.\n\n## Repository layout\n\n- `skills/` — the five skill sources (`start-session`, `initialize-saga`, `grill-me`, `write-session-log`, `consolidate-sessions`), discovered by both harnesses and the cross-harness `skills` CLI.\n- `skills/start-session/build_primer.py` — resolves Project Binding → Vault Registry → vault root and merges the Active Context. Ships **inside** the skill so it travels in every install model (plugin or bare `npx skills add`).\n- `resources/`, `templates/` — shared skill resources and document templates.\n- `tests/` — primer-merge tests.\n- `.claude-plugin/` — Claude Code plugin manifest and the local `saga-dev` marketplace.\n- `.codex-plugin/` — Codex plugin declaration (`plugin.json`), pointing at `skills/`.\n- `marketplace.json` — cross-harness marketplace manifest (github self-reference to `dbtlr/saga`).\n- `codex.json` — Codex config (instructions, allowed tools).\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbtlr%2Fsaga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbtlr%2Fsaga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbtlr%2Fsaga/lists"}