Artifact b1012a632babccde09526f3332f905a547bc9be6baffa055ac66cdcb59e9a1ae:
- File
README.md
— part of check-in
[ea7e1fa24c]
at
2026-11-19 21:20:10
on branch skills
— Skills, as Pi's
Each folder with a SKILL.md under ~/.pic/skills/ (and, once the workspace is trusted, WORKSPACE/.pic/skills/) is a skill: Pi's frontmatter, validation and discovery rules, symlinks followed (suit places them as links), nothing ever written there. The system prompt lists them in Pi's wording, frozen with the conversation; /skill:name expands to Pi's skill block where templates expand, so ask, chat and the terminal agree, and the slash menu lists them. pic skills [--json] lists them. The frontmatter parser is now shared with prompt templates. (user: dmestas, size: 3409) [annotate] [blame] [check-ins using] [more...]
# pic A durable coding agent in C. pic does what the [Pi](https://github.com/earendil-works/pi) coding agent does (same tools, sessions, compaction, slash commands, JSON events and model catalog), and keeps every turn in a SQLite journal so a crash, a kill or a lost connection never loses work or runs a command twice. - **Durable.** Each request, model reply and tool call is committed to `WORKSPACE/.pic/journal.sqlite` before and after it happens. A run that dies is picked up by the next `pic`; a command that may have run is reported as such, never silently re-run. - **Any model.** Anthropic, OpenAI (Chat Completions and Responses), OpenRouter and any OpenAI-compatible server, with Pi's thinking levels. One conversation can move between providers. - **One binary, no runtime.** C11, built with Make. Its only dependencies are vendored: SQLite with libfossil, zlib and BearSSL. It links libc, libm and pthread, nothing else. - **No state in loose files.** pic's own state lives in SQLite: the journal per workspace and `~/.pic/pic.sqlite` for settings, the model catalog, trust decisions and the conversation lines that ctx archives. ## Build and install ```sh make pic # build/pic/release/pic make install-pic # runs the test suite, then installs to ~/.local/bin/pic ``` API keys come from the environment (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `OPENROUTER_API_KEY`, ...), as in Pi. pic never stores a key. ## Use ```sh pic # the terminal interface in the current directory pic tui -c # continue the latest conversation pic ask "fix the failing test" pic ask -c "now add a regression test" pic chat # a plain line prompt pic --model openrouter/deepseek/deepseek-v4-flash --thinking high ask "..." pic models # models whose provider has a key pic sessions # conversations in this workspace pic skills # skills in ~/.pic/skills (and the trusted workspace's); /skill:name runs one pic --json ask "..." # Pi's JSON events on stdout ``` In the terminal interface: `/` opens the command menu (`/model`, `/settings`, `/thinking`, `/tree`, `/fork`, `/compact`, `/export`, `/share`, `/resume` and the rest of Pi's commands); Ctrl+L picks a model, Ctrl+P cycles models, Shift+Tab cycles thinking levels, Esc stops a reply. `pic --help` lists every command. ## Test ```sh make test-pic # crash, tool, provider, session, TUI and unit suites; ASan/UBSan and release builds ``` CI runs the same suite on every check-in and gates trunk. Changes are also run under [Fil-C](https://fil-c.org), where any memory error is a crash (`tools/remote/`). ## Documents - [Implementation plan](docs/implementation-plan.md): stages, decisions in force, what comes next - [CI](docs/ci.md) and [remote runs](docs/remote-lifecycle.md) - [Credential project](docs/credential-project.md) - Earlier design and qualification notes: [contracts and evidence](docs/README.md), [durability contracts](docs/durability-contracts.md), [provider contracts](docs/provider-contracts.md), [feature map](docs/harness-features.md) `reference/pi.lock.json` pins the Pi revision used as the behavioural reference. Pi's source is not part of this repository. ## License BSD 2-Clause; see [LICENSE](LICENSE). Vendored code and adapted Pi material keep their own licenses; see [NOTICE](NOTICE).