{"id":51831412,"url":"https://github.com/aisk/paimon","last_synced_at":"2026-07-22T15:34:15.007Z","repository":{"id":369444665,"uuid":"1281318580","full_name":"aisk/paimon","owner":"aisk","description":" The best travel companion ever! ","archived":false,"fork":false,"pushed_at":"2026-07-17T13:39:24.000Z","size":240,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-07-17T15:22:50.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aisk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2026-06-26T12:39:23.000Z","updated_at":"2026-07-17T13:40:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aisk/paimon","commit_stats":null,"previous_names":["aisk/paimon"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aisk/paimon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fpaimon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fpaimon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fpaimon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fpaimon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aisk","download_url":"https://codeload.github.com/aisk/paimon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aisk%2Fpaimon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35768236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-22T02:00:06.236Z","response_time":124,"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-07-22T15:34:13.851Z","updated_at":"2026-07-22T15:34:14.927Z","avatar_url":"https://github.com/aisk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paimon\n\nA minimal terminal code agent built on **litellm** (LLM access) and **textual** (TUI).\n\n## Features\n\n- Streaming agent loop: LLM + tool calls until the task is done\n- Six tools: `read_file`, `write_file`, `edit_file`, `glob`, `bash`, `write_todos`\n- Live streaming output + reasoning display in a Textual UI\n- Automatic context compaction that summarizes old history and keeps recent messages verbatim\n- Confirmation prompt before dangerous actions (`bash`, `write_file`, `edit_file`)\n- Guided login (provider/model picker sourced from litellm's catalog), reachable from the command palette (`Ctrl+P`)\n\n## Setup\n\nOn first launch (no config yet) Paimon walks you through provider → model → API base → API key. The choices and selected theme are stored in `~/.config/paimon/config.json` (override the directory with `PAIMON_CONFIG_HOME`). Re-run the flow anytime via the command palette (`Ctrl+P` → \"Login / switch provider\").\n\n## Run\n\n```bash\nuv run paimon        # or: uv run main.py\nuv run paimon -c     # continue the most recent session for this directory\nuv run paimon --yolo # run commands and file changes without confirmation\n```\n\nSessions are appended as JSONL under `~/.local/share/paimon/sessions/` (or\n`$XDG_DATA_HOME/paimon/sessions/`) and separated by working directory. Override\nthe data directory with `PAIMON_DATA_HOME`. Use “New session” from the command\npalette to leave the current history and start fresh.\n\nWhen a model's known context window has fewer than 16,384 tokens left, Paimon\nautomatically creates a checkpoint summary and keeps roughly the most recent\n20,000 tokens unchanged. The full pre-compaction history remains in the JSONL\nsession file. Custom models that are not in LiteLLM's catalog can configure the\nwindow and thresholds in `config.json`:\n\n```json\n{\n  \"compaction\": {\n    \"enabled\": true,\n    \"context_window\": 128000,\n    \"reserve_tokens\": 16384,\n    \"keep_recent_tokens\": 20000\n  }\n}\n```\n\n## Layout\n\n| File | Role |\n|------|------|\n| `paimon/config.py` | load/save `config.json` |\n| `paimon/compaction.py` | context sizing, cut selection, and checkpoint summaries |\n| `paimon/login.py`  | login flow screens |\n| `paimon/tools.py`  | tool schemas + execution |\n| `paimon/agent.py`  | UI-agnostic agent loop (yields typed events) |\n| `paimon/ui.py`     | reusable UI components |\n| `paimon/app.py`    | Textual TUI |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Fpaimon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faisk%2Fpaimon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faisk%2Fpaimon/lists"}