Skip to content
This repository was archived by the owner on Nov 9, 2026. It is now read-only.
team-poemPublic archive

About

This has been moved to https://github.com/team-poem/stoa

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KLEOS — deeds vanish; the record endures. Agent session provenance.

kleos

Deeds vanish; the record endures.

Agent session provenance. When AI agents write most of your code, the why lives in the conversation, not the commit message. Kleos collects your agent sessions (Claude Code transcripts first), maps them to repos/commits/PRs, redacts secrets, and lets your team jump from any commit or PR straight to the original conversation that produced it.

Status

M1 — indexer is working:

$ kleos init
archive ready at ~/.kleos/archive

$ kleos index --all
scanned 55 transcripts in 0.3s — indexed 55, commits 19, errors 0

$ kleos show 4db5188
commit 4db5188 was produced by:
  9f3c327c-...   title: setting up the dev environment
                 repo: github.com/... branches: main
                 commits: 4  prompts: 28
  • kleos index [--all] — scan ~/.claude/projects/**.jsonl, build one manifest.json per session (commits via bash-output evidence, PRs, files touched, token usage, time range) plus a global index. Incremental by mtime; --all forces a full rescan.
  • kleos show <session|sha> — reverse lookup: which session produced this commit?

Originals never leave your machine. Only redacted copies will ever sync (M3).

Install

go install github.com/team-poem/kleos@latest

Single static binary, standard library only. Go >= 1.25 to build.

Team store

kleos sync uploads only redacted.jsonl + a path-masked manifest.json, and refuses to upload anything it cannot prove was redacted with the current rules. Two backends:

kleos init --store file:///Volumes/team/kleos-archive
kleos init --store 's3://team-archive/kleos?region=ap-northeast-2'

Then anyone on the team can read it:

kleos serve --store          # the configured store
kleos serve --store 's3://team-archive/kleos?region=ap-northeast-2'

The viewer serves the same routes over a team store as over your own archive, so a /c/<sha> link pasted into a PR opens for whoever clicks it. Sessions in a store carry no index — it is rebuilt from the shared manifests on the fly — and the conversation shown is the redacted copy, never the original.

The S3 backend speaks plain SigV4 against any S3-compatible store — add ?endpoint=https://minio.internal:9000 for MinIO, R2 or Ceph (path style is assumed there; &pathStyle=false switches to virtual-host style). Credentials come from AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY or a ~/.aws/credentials profile (AWS_PROFILE) — kleos never stores them itself.

In a pull request

$ kleos pr-comment 159 --post

posts the sessions behind the PR, each linking into the viewer:

kleos — agent sessions behind this PR

Printing is the default; --post publishes through the gh cli. The PR page itself lives at /pr/<org>/<repo>/<n>.

New teammate? docs/team-onboarding.md.

Roadmap

  • M1 indexer ✅ retroactive indexing, manifest + triple-evidence commit join (bash-output / time-window / Agent-Session trailer)
  • M2 local viewing ✅ kleos show --timeline, web viewer (kleos serve: session list, timeline, /c/<sha> deep links)
  • M3 redaction + sync ✅ pattern/source/PII redaction with audit gate, fail-closed kleos sync to a self-hosted store
  • M4 team pilot — S3-compatible team store ✅, kleos watch ✅, kleos serve --store ✅, PR deep links + kleos pr-comment ✅, onboarding ✅; the pilot itself (2–3 teammates, gate: someone clicks a link to a session that is not theirs) is next

Spec: spec/kleos-mvp-spec.html · PRD: spec/prd.md · Dev log: spec/history.md

About

This has been moved to https://github.com/team-poem/stoa

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages