Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
# AGENTS.md

Guidance for coding agents working in Numlang.
Guidance for AI coding agents working in **numlang**.

## Project overview

Numlang is an esoteric stack-based language with an in-progress C++20 compiler that emits C. The historical Python compiler is retained as a reference implementation while C++ feature parity is rebuilt.

- Language: C++
- Primary executable: C++20 compiler `numlangc`, emitting C source.
- `numlang/` is the retained Python reference compiler, not the C++ implementation.
- The C++ port currently supports a limited core subset; see `docs/cpp-compiler-status.md`.
- Default branch: `main`.
- Default branch: main

## Working rules

- Inspect the README, manifests, CI workflows, and nearby code before editing.
- Preserve existing architecture, naming, formatting, and error-handling conventions.
- Use project scripts for validation; never claim checks you did not run.
- Keep changes scoped and update tests or documentation when behavior changes.
- Use feature branches and pull requests.
- Treat generated files, credentials, deployment configuration, and release metadata as sensitive.
- Inspect README.md, CMakeLists.txt, tests, and CI before editing.
- Keep C++ feature claims, tests, and capabilities.json synchronized.
- Fail closed for unsupported opcodes and source syntax.
- Do not claim the C++ port is feature-complete because the Python reference supports a feature.
- Keep build outputs and temporary compiler artifacts out of version control.
- Use feature branches and pull requests; never claim checks that were not run.

<!-- allowed-agents -->
## Allowed agents

Only **Claude** (Anthropic) and **Mistral** (Mistral AI) may be used as coding agents in this repository. This rule supersedes any earlier agent-attribution guidance in this file.
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<p align="center">
<a href="https://github.com/ewanc26/numlang/actions/workflows/ci.yml"><img src="https://github.com/ewanc26/numlang/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
<a href="LICENSE"><img src="https://img.shields.io/github/license/ewanc26/numlang?label=licence" alt="Licence"></a>
<a href="https://github.com/sponsors/ewanc26"><img src="https://img.shields.io/github/sponsors/ewanc26?logo=githubsponsors&logoColor=white&label=sponsors" alt="Sponsor"></a>
</p>

# Numlang compiler

Numlang is an esoteric stack-based language with an in-progress C++20 compiler that emits C. The historical Python compiler is retained as a reference implementation while C++ feature parity is rebuilt.
Expand Down Expand Up @@ -664,3 +670,11 @@ If you find this project useful, consider supporting its development:
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=ewanc26/numlang&type=date&legend=bottom-right" />
</picture>
</a>

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for the workflow and the checks required before opening a pull request.

## Licence

See [LICENSE](LICENSE) for the licence terms.
Loading