mirror of
https://github.com/bleak-ai/gcontext.git
synced 2026-08-11 13:19:23 +02:00
State changes (from the maat-agent spikes): - run_script runs saved scripts by path with args and params (PARAM_<NAME> env vars), plus ad-hoc code; results start with a status header and a missing-package hint points at connection.yaml deps - commands/ folders in connections and modules register as MCP prompts (<owner>__<command>), surfaced as slash commands; .md and .py formats - instructions.md is pushed at connect through the MCP handshake and declared as ledger pipe G0: one controllable file is what the agent receives at start - read_context/write_context renamed to read_file/write_file; new list_dir and grep tools - stateless HTTP: server restarts no longer strand attached clients Removed: - flows (never met a real use case; modules plus commands cover process needs; design.md records the return condition) - gcontext chat (redundant once the handshake delivers instructions); the controlled claude invocation is documented in the README instead - docs/templates (duplicated README sections) - the ledger's dual chat/mcp mode, collapsed to one Structure: - server.py is only the MCP surface; concerns split into fs.py, exec.py, secrets.py, state.py, ledger.py, commands.py; agent-facing tool text lives in prompts/tools/*.md - read-only web dashboard served at the root: overview, ledger, files, live activity feed (web/ Vite app, bundled into the wheel) - secrets.env is now unreadable through the agent (read guard) 39 tests. Version 0.4.0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
22 lines
963 B
Markdown
22 lines
963 B
Markdown
# Examples
|
|
|
|
Complete agent folders you can serve directly or copy pieces from. `gcontext init` scaffolds a minimal folder; these show what a grown one looks like.
|
|
|
|
## ops-agent
|
|
|
|
An operations agent for a fictional SaaS company. It shows every part of the folder model in use:
|
|
|
|
- `connections/stripe/`, `connections/cloudflare/`: connection config plus API context docs
|
|
- `modules/company/`: a knowledge module (team, infrastructure)
|
|
- `modules/support-workflow/`: a process module with steps, empty playbooks and logs that fill up with use
|
|
- `archive/modules/legacy-audit/`: an archived module, out of every scan but still readable by path
|
|
|
|
Run it:
|
|
|
|
```bash
|
|
cp examples/ops-agent/secrets.env.example examples/ops-agent/secrets.env # fill in real values, or leave placeholders
|
|
gcontext up examples/ops-agent
|
|
```
|
|
|
|
Without real secret values everything still works except `run_script` calls against the live APIs; `gcontext status` shows which secrets are missing.
|