{"id":50872762,"url":"https://github.com/dwgx/agentscope","last_synced_at":"2026-06-15T07:01:10.461Z","repository":{"id":363038877,"uuid":"1261721298","full_name":"dwgx/AgentScope","owner":"dwgx","description":"Electron desktop console for monitoring local AI coding-agent sessions and safe handoff evidence","archived":false,"fork":false,"pushed_at":"2026-06-14T22:14:31.000Z","size":694,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T23:09:27.538Z","etag":null,"topics":["agent-observability","ai-agent-monitoring","ai-agents","codex","codex-cli","desktop-app","developer-tools","electron","local-first","session-management","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/dwgx.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-07T04:14:22.000Z","updated_at":"2026-06-14T22:14:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dwgx/AgentScope","commit_stats":null,"previous_names":["dwgx/agentscope"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dwgx/AgentScope","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwgx%2FAgentScope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwgx%2FAgentScope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwgx%2FAgentScope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwgx%2FAgentScope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwgx","download_url":"https://codeload.github.com/dwgx/AgentScope/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwgx%2FAgentScope/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34351451,"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-15T02:00:07.085Z","response_time":63,"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":["agent-observability","ai-agent-monitoring","ai-agents","codex","codex-cli","desktop-app","developer-tools","electron","local-first","session-management","typescript"],"created_at":"2026-06-15T07:00:22.813Z","updated_at":"2026-06-15T07:01:10.415Z","avatar_url":"https://github.com/dwgx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AgentScope\n\nWindows-native control and trace layer for local AI coding agents.\n\nAgentScope is a TypeScript/Electron desktop console for identifying, indexing,\nsearching, and explaining local Codex and Claude Code sessions on Windows. It is\nnot a chat UI and not a Kanban board.\n\n## Architecture\n\n```text\napps/desktop        Electron + React desktop shell\npackages/core       Windows process/session indexing core\npackages/shared     Shared models and IPC-safe types\n```\n\nThe desktop app uses the same style of stack as modern desktop agent tools:\nElectron main process for privileged local access, preload IPC for a narrow API,\nand React/TypeScript renderer for the control surface.\n\n## MVP Features\n\n- Enumerates Windows `Win32_Process` rows for Codex, Claude, node, node_repl,\n  app-server, and daemon-like processes.\n- Enriches process rows with start time and `MainWindowTitle` from\n  `Get-Process` when Windows exposes it.\n- Parses Claude session PID files from `%USERPROFILE%\\.claude\\sessions`.\n- Resolves Claude transcripts under `%USERPROFILE%\\.claude\\projects`.\n- Reads Codex `%USERPROFILE%\\.codex\\state_5.sqlite`.\n- Scans Codex rollout JSONL under `%USERPROFILE%\\.codex\\sessions`.\n- Inventories safe Codex control surfaces such as config modes, MCP summary,\n  rules, user skills, archives, memories, browser/computer-use state, and\n  protected auth metadata.\n- Labels Codex-launched MCP helper processes with evidence-backed identities\n  such as Playwright, IDA Pro, or Model Context Protocol package names without\n  reading MCP payloads.\n- Scores process-to-session candidates with evidence from PID, cwd,\n  transcript path, session id, window title, and start/update time.\n- Tracks confidence: `exact`, `indexed`, `heuristic`, `unknown`. Time-only\n  candidates stay `unknown` and are shown as weak evidence, not as matches.\n- Shows evidence for every association.\n- Provides Processes, Sessions, Relations, Doctor, Codex Control, and Settings\n  views plus global `Ctrl+F` search.\n- Uses a flat graphite desktop UI with functional Settings sections for\n  General, Appearance, Indexing, Runtime, and Diagnostics.\n- Supports explicit session backup, safe delete, and AgentScope backup import\n  through the desktop UI. Delete writes a backup and quarantine journal first,\n  applies journaled row-level changes, then moves removable files to quarantine.\n  Claude global history/state references are inspect-only until reversible\n  patch/restore support exists.\n- Supports a Sessions recycle panel for validated quarantine restore.\n- Supports Codex/Claude resume/fork launcher controls when safe launcher\n  evidence is available.\n\n## Commands\n\n```powershell\nnpm install\nnpm run audit:repo\nnpm run lint\nnpm run typecheck\nnpm test\nnpm run i18n:check\nnpm run package\nnpm run dev\n```\n\n`npm run dev` builds the workspace, starts Vite, then launches the Electron\ndesktop shell against the local renderer server. For renderer-only iteration,\nrun `npm --workspace @agentscope/desktop run dev:renderer`.\n\nIf the local Electron package reports that it failed to install correctly after\n`npm ci`, repair the cached Windows binary:\n\n```powershell\nnpm run electron:repair\n```\n\nPackaging smoke test:\n\n```powershell\nnpm run package\n```\n\nPortable-only local release build:\n\n```powershell\nnpm run native:rebuild\nnpm --workspace @agentscope/desktop run build\nPush-Location apps/desktop\nnpx electron-builder --win portable --x64 --publish never --config.directories.output=out-portable --config.extraMetadata.version=0.1.0\nPop-Location\nnpm run native:restore\n```\n\nRelease/prebuild verification:\n\n```powershell\nnpm run check:release\n```\n\n`npm run package` builds the unpacked app for local iteration. `npm run package:pre`\nbuilds the installer, portable executable, portable zip, and prebuild manifest.\n`npm run check:release` matches the CI release path: repo audit, lint,\ntypecheck, i18n check, tests, synthetic smoke, `package:pre`, artifact\nverification, and packaged/portable desktop smoke.\n\nArtifact inspection and cleanup:\n\n```powershell\nnpm run audit:artifacts\nnpm run clean:artifacts\n```\n\n`clean:artifacts` is a dry run by default. Pass `-- --apply` only after checking\nthe listed paths; it is restricted to `apps/desktop/out`.\n\nPortable-only release artifacts can be written to ignored\n`apps/desktop/out-portable/` when the unpacked app in `apps/desktop/out` is\nlocked by a running AgentScope instance.\n\nThe unpacked Windows app is written to:\n\n```text\napps/desktop/out/win-unpacked/AgentScope.exe\n```\n\nCI runs on `windows-latest` and verifies install, repository audit, typecheck,\ni18n, tests, synthetic smoke, production build, prebuild packaging, artifact\nmanifest integrity, and packaged/portable desktop smoke.\n\n## Safety Boundaries\n\nCurrent behavior:\n\n- Does not terminate processes.\n- Does not decrypt hidden/internal vendor state.\n- Only parses local plaintext JSONL, SQLite, PID mappings, path encodings, and\n  index relations.\n- JSONL search only checks safe metadata fields and does not return transcript\n  body excerpts.\n- Backs up sessions under `%USERPROFILE%\\.agentscope\\backups`.\n- Deletes only after backup and quarantine under\n  `%USERPROFILE%\\.agentscope\\quarantine`.\n- Writes `journal.json` for every delete under the quarantine directory,\n  recording backup, file move, patch/inspect, SQLite backup, and SQLite delete\n  steps.\n- Blocks destructive operations against sessions that still have an active PID\n  mapping, high-confidence Codex heuristic process candidate, or indexed child\n  sessions in the current snapshot.\n- Exports Codex row-level SQLite bundles for compatible restore from\n  `state_5.sqlite`, `goals_1.sqlite`, and `memories_1.sqlite`; `logs_2.sqlite`\n  is backed up as summary metadata only and log bodies are not restored or\n  deleted.\n- Never imports or deletes credentials, auth files, global settings, plugins,\n  skills, rules, or full global history as a session side effect.\n- Electron main only opens AgentScope-owned text evidence such as journals,\n  manifests, and redacted exports. Transcripts, histories, logs, executables,\n  scripts, SQLite/DB files, native modules, credentials, auth, config, plugins,\n  skills, and rules are reveal-only or rejected.\n- Snapshot export is redacted by default to reduce accidental sharing of full\n  local paths, commands, titles, and previews.\n\nKnown limits:\n\n- Codex delete spans multiple SQLite databases. AgentScope backs up those\n  databases first and attempts compensating restore from `sqlite-backup` if a\n  later DB step fails, but the journal must still be treated as recovery\n  evidence for any failed delete.\n- Codex row restore requires compatible target SQLite tables and columns; schema\n  drift is rejected instead of partially reconstructing rows.\n- Codex process-to-thread mapping is still partly heuristic because Codex does\n  not expose a reliable PID-to-thread map in the parsed local state.\n\nPlanned later controls:\n\n- richer restore journaling for file plus multi-DB rollback evidence\n- `kill`: terminate only with explicit `--force`\n- explicit child-session delete modes: block, include children, or detach\n- `watch`\n- web/TUI dashboard on the same core library\n\n## Handoff Docs\n\nFuture agents should read:\n\n- `AGENTS.md`\n- `docs/handoff-next-ai.md`\n- `docs/research-local-agent-stores.md`\n- `docs/release-0.1.0-summary-2026-06-15.md`\n\n## Repository Governance\n\nThis repository is maintained as an active project. Avoid committing local credentials, transcript exports, private logs, or machine-specific paths. Public use rights and licensing should be clarified before redistribution beyond repository visibility.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwgx%2Fagentscope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwgx%2Fagentscope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwgx%2Fagentscope/lists"}